[fpc-pascal] Pascal Language Server

Arjan Adriaanse arjan at adriaan.se
Thu Apr 23 15:20:59 CEST 2020


On Thu, 23 Apr 2020 19:37:02 +0700
Ryan Joseph via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:

> You did a nice job structuring it I think and providing a template to
> scale up from. What language(s) are you coming from and why did you
> decide to make a language server for Pascal if you're not a Pascal
> user? Just curious.

Thank you. I am coming from Java/.NET/Python/Haskell and was
introduced to Free Pascal when porting this Delphi game to Linux:
https://github.com/arjanadriaanse/Lemmix [1]

The project was started mainly to get more familiar with the language
and to eventually be less restricted to the use of the Lazarus IDE.

> I'm trying to build this now using lazbuild on macOS and get some
> strange errors including:
> 
> lsp.pas:154:12: error: Identifier not found "specialize"
> 
> How could this be? {$mode objfpc} is declared right at the top.
> 
> Another curios one is:
> 
> lsp.pas:134:33: error: Incompatible types: got "<class method type of
> procedure(TObject;TObject;PPropInfo;TJSONObject;UTF8String;var
> TObject) of object;Register>" expected "<procedure variable type of
> procedure(TObject;TObject;PPropInfo;TJSONObject;UTF8String;var
> TObject);Register>"

Perhaps not all the used generics features are available yet in older
FPC versions.  I use the most recent release candidate from
ftp://ftp.freepascal.org/pub/fpc/beta/3.2.0-rc1/ [2], but will
investigate if older versions also work.

Regards,

Arjan

[1] https://github.com/arjanadriaanse/Lemmix
[2] ftp://ftp.freepascal.org/pub/fpc/beta/3.2.0-rc1/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200423/664c8454/attachment.sig>


More information about the fpc-pascal mailing list