Recent

Author Topic: Is the CGE LSP the recommened LSP?  (Read 503 times)

blametroi

  • Newbie
  • Posts: 3
Is the CGE LSP the recommened LSP?
« on: October 06, 2025, 02:39:05 pm »
Hi. I just want to confirm my research that the LSP from Castle Game Engine is the most complete (and apparently only active) LSP for Pascal.

Link:https://github.com/castle-engine/pascal-language-server

I'd also be interested in hearing about any Helix setup experiences.

Thanks.

PierceNg

  • Sr. Member
  • ****
  • Posts: 440
    • SamadhiWeb
Re: Is the CGE LSP the recommened LSP?
« Reply #1 on: February 03, 2026, 08:59:14 am »
Did you eventually try it?

Other than CGE LSP server, there is also https://github.com/genericptr/pascal-language-server. Both share the same lineage, although their code bases have diverged considerably.

I've tested both in Vim 9 using yegappan LSP client. In FPC context the tricky part is for the LSP server to figure out where all the relevant source files are. Relevant here means all the source files, including from 3rd party libraries, required to build the program in question. In Lazarus this info is in .lpi / .lpk files.

(For clangd, the LSP server for C and C++, and sourcekit-lsp, the same for Swift, they both work with a compile_commands.json file to determine where the 'root' of the source tree is.)

I've not used CGE LSP with VS Code for a CGE project. No reason to doubt this combo works well as advertised, so presumably there's a CGE-equivalent to .lpi / .lpk files that contain the necessary info.

 

TinyPortal © 2005-2018