Autocomplete fails on FPC's pas2js units.

Issue #101 new
Bee Jay created an issue

Hi,

I'm now playing around with new FPC's project named pas2js that's able to compile Pascal codes into JavaScript codes. It's quite interesting and fun to be able to create browser application using Pascal language. As a pascal back-end developer myself, it's a new opportunity for me to create complete web app using Pascal language both at back-end and front-end side.

However, OmniPascal's autocomplete fails on pas2js units. OmniPascal seems unable to parse pas2js units correctly. It even can't find a class definition which is clearly in the unit. It seems OmniPascal's can't recognize some FPC's syntaxes being used by pas2js. So, writing pas2js project in vs code becomes so slow and unproductive because of this problem. I have to look at each class definition in the source code to know the class' properties and methods.

Here's the screenshot of the problems:

op_pas2js.png

Details:
• vs code v.1.28.2
• omnipascal v.0.16.0
• fpc v.3.0.4
• pas2js v.1.0.2
• macos mojave v.10.14

So, could you please fix this? Thank you.

Regards,

~Bee

Comments (0)

  1. Log in to comment