On Thu, 23 Apr 2020 19:37:02 +0700 Ryan Joseph via fpc-pascal <fpc-pascal@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/
pgpwOYYjKhO_Y.pgp
Description: OpenPGP digital signature
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal