[Pas2js] VS Code extensions in Pas2JS
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Dec 29 16:20:58 CET 2020
On Tue, 29 Dec 2020 07:16:20 -0700 (MST)
heliosroots <heliosroots at gmail.com> wrote:
> Ihis is very good.
> I did an extension for vscode, now i'm going to port it to pas2js.
> So i would like to remove some dependencies
> As suggested i'm looking at codetools ....
> I am having a problem with the parse ....
>
> == >>>
> CodeToolBoss.FindDeclaration
>
> <<< ==
> ### TCodeToolManager.HandleException: [20170421195736] "expected ;,
> but to found" at Line = 372 Col = 47 in
> "/home/helio/Documentos/dev/fpc/pas2js/packages/rtl/sysutils.pas"
> Parse error: expected ;, but to found
You must tell codetools to fetch settings from pas2js, instead of fpc.
set env var PP to path of pas2js.
Codetoolboss.SimpleInit(YourCfgFilename);
> Fear some adjustment to make him ignore some warnings and
> continue ????
Mattias
More information about the Pas2js
mailing list