[Pas2js] Fw: where to copy Pas2js units to get it work from lazarus

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Aug 23 21:57:03 CEST 2020

Dear Janusz,

You answered to my address, instead of the mailing list.

What example lpi do you open?


Begin forwarded message:

Date: Sun, 23 Aug 2020 19:36:29 +0200
From: "Mgr. Janusz Chmiel" <janusz.chmiel at volny.cz>
To: "'Mattias Gaertner'" <nc-gaertnma at netcologne.de>
Subject: RE: [Pas2js] where to copy Pas2js units to get it work from

My attempt have been successfull. So now, I Am fightighting with one
unsoft behaviour of Lazarus.
When I use save all menu function, all files are saved to The desired
filder except compiled .js script, which resides in The temporary
Windows folder, so it is necessary to manually move it to The my
desired project output folder.
Console writeln command produces accessible output. Really. I had to
compile The app with included 
  browserconsole, JS, Classes, SysUtils, Web;
Now I will have to build Pas2js from trunk because mixing code of units
from trun release with stable release of Pas2js is very probably not
very good idea and I will very probably get many compilation bugs.

But I Am facing other issue.
When I open The sample project with lazarus, when I open .lpi project
file, Lazarus refuses to display source file and build function in The
run menu do not work, because Lazarus warns that there is no main
source file presented.

I think, that next stable Lazarus release will contain The necessary
modiffication to support Pas2js project so professionally like The
traditional Lazarus projects including compilation and saving all files
to The correct location.

More information about the Pas2js mailing list