Recent

Author Topic: Pascal Language Server  (Read 10382 times)

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: Pascal Language Server
« Reply #15 on: April 25, 2020, 05:38:38 pm »
As someone claiming new to Pascal programming, your code looks too advanced. I believe many Pascal old timers don't even know how to make a simple JSON-RPC server using FPC libraries, while you make one rather smoothly, even using advanced generics.
Thank you, I am considering this a compliment. I do have experience with other object-oriented languages, from which I applied generics knowledge. As for the JSON-RPC server, I managed to tie together some stuff found on the wiki and by diving into the library sources.

Might be a point on the "Pascal is intuitive" list then :P

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Pascal Language Server
« Reply #16 on: November 09, 2021, 10:08:21 pm »
Oh, cool! :D

Maybe someone will write an LSP client package for Lazarus, so that we could use language servers for other languages in Lazarus as well. :D

Allowing that the Lazarus IDE and LCL class library are head and shoulders above everything else, that would appear to be a worthwhile objective (I've played a bit with Eclipse and been thoroughly underwhelmed).

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

vo2521@gmail.com

  • Newbie
  • Posts: 1
Re: Pascal Language Server
« Reply #17 on: February 13, 2022, 08:49:39 pm »
I had trouble getting the original posted repo to autocomplete in Emacs, but then I found this repo forked from the original: https://github.com/Isopod/pascal-language-server. (also check out the jsonstream package)

My interest in this project is not so much editing Pascal in Emacs, but getting ideas on implementing language servers using Free Pascal. After struggling to install a language server implemented in Java and realizing the Bash language server is implemented in TypeScript requiring a NPM install, a single executable Language Server seems very appealing.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Pascal Language Server
« Reply #18 on: February 13, 2022, 09:31:49 pm »
...realizing the Bash language server is implemented in TypeScript requiring a NPM install, a single executable Language Server seems very appealing.

:-)

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1112
  • Professional amateur ;-P
Re: Pascal Language Server
« Reply #19 on: December 30, 2023, 01:57:46 pm »
Hey Y'all,

Trying to overlook the fact that this thread went south :D

At this moment the OP's project appears to be stale.

Nonetheless, there's a new effort that has spawned in this project, started by genericptr and now actively(-ish) maintained by Michaël Van Canneyt.

I've dropped an issue asking to make the server aware of the config files under an fpcupdeluxe install.

Since I'm not sure if the GitHub issue section would be the best place to discuss this proposal, I'm ( kinda ) hijacking this thread to see if Michaël is more comfortable with a discussion on the matter in here.

While I did get a PR merged about a simple issue about looking for system wide installed config files, I have to admit that I'm rather lost on the various places that ask for folders.
From my count, there's at least 3(maybe more?) places where one can inform the server about folders.
One is even through the config file for the Sublime-Text's LSP plugin.

I would be very glad to continue to post some PRs to actually get the fpcupdeluxe thing on track, that I would!!
Alas, as I mentioned before, I'm very confused by the folder placeholders, where they are in the code, what config files should contain them, and how they are actually used.
Until this confusion is cleared up, I'm kinda lost.

No promise, but I'll try and have a bit of a dump dive into it, if I can remember to allot some time to it :D

On the remote event that someone can give me a fog-of-war disperser, I thank thee a bunch!!!

Cheers,
Gus
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Pascal Language Server
« Reply #20 on: December 30, 2023, 03:04:09 pm »
Many thanks Gus (and everybody else involved). Keep up the good work.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1112
  • Professional amateur ;-P
Re: Pascal Language Server
« Reply #21 on: December 30, 2023, 03:14:48 pm »
Hey Mark,

Many thanks Gus (and everybody else involved). Keep up the good work.

While my contribution is so very minuscule as to disappear even when looked from a very powerful microscope, I'll say: You're very welcome !!

Cheers,
Gus
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

 

TinyPortal © 2005-2018