genericptr / pascal-language-server

LSP server implementation for Pascal
GNU General Public License v3.0
49 stars 12 forks source link

Cannot compile lspprotocol and lspserver #89

Closed LinusDenning2001 closed 1 week ago

LinusDenning2001 commented 1 week ago

Screenshot from 2024-09-06 15-53-46 I wanted to use this lsp for nvim. After downloading Lazarus and fpc-3.2.0 and then following the building steps I get the following compile error.

Identifier not found "jdoIgnoreNulls"

after looking for the declaration I assume is should be in fpjsonrtti, however it cannot be found

mvancanneyt commented 1 week ago

You need to compile this with the trunk version of FPC. The release version of FPC cannot be used to compile the LSP project

LinusDenning2001 commented 1 week ago

Screenshot from 2024-09-11 13-24-10

I'm still having issues when using the trunk resources found in the gitlab

mvancanneyt commented 1 week ago

I was compiling my fork, and that worked. I updated it, and now I can reproduce it, seems to be result of the recent merge. I will look at it.

mvancanneyt commented 1 week ago

I undid the merge. The merged functionality was present in paslsproxy, so nothing is lost.

LinusDenning2001 commented 1 week ago

I am still having an issue compiling PasLS.TextLoop used by lspprotocol with the same issue as before. Could you direct me on how you fixed the issue?

mvancanneyt commented 6 days ago

I removed the code. Line 264 in PasLS.TextLoop no longer exists, as you can check in the repo...

LinusDenning2001 commented 6 days ago

I have now managed to compile the lsp

One thing to note is that I did have to install the SQLite developer tools to finally get it working (libsqlite3-dev)

Many thanks for your time