Lazarus Free Pascal support

52 views
Skip to first unread message

akoivisto

unread,
Aug 16, 2020, 8:49:40 AM8/16/20
to ycm-users
Is there any word on if there will ever be support for Lazarus and Free Pascal in YouCompleteMe?

Boris Staletic

unread,
Aug 16, 2020, 9:18:54 AM8/16/20
to akoivisto, ycm-users
Do those languages have language servers? If so, we can take a look.

On Sun, 16 Aug 2020, 14:49 akoivisto, <aleksi.k...@gmail.com> wrote:
Is there any word on if there will ever be support for Lazarus and Free Pascal in YouCompleteMe?

--
You received this message because you are subscribed to the Google Groups "ycm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ycm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ycm-users/92a862f1-7478-4119-b99c-cf3892c5c50ao%40googlegroups.com.

akoivisto

unread,
Aug 16, 2020, 9:33:23 AM8/16/20
to ycm-users
Hi! There seems to be this: https://github.com/arjanadriaanse/pascal-language-server.

"An LSP server implementation for Pascal variants that are supported by Free Pascal, including Object Pascal. It uses CodeTools from Lazarus as backend."


On Sunday, August 16, 2020 at 4:18:54 PM UTC+3, Boris Staletic wrote:
Do those languages have language servers? If so, we can take a look.

On Sun, 16 Aug 2020, 14:49 akoivisto, <aleksi....@gmail.com> wrote:
Is there any word on if there will ever be support for Lazarus and Free Pascal in YouCompleteMe?

--
You received this message because you are subscribed to the Google Groups "ycm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ycm-...@googlegroups.com.

Boris Staletic

unread,
Aug 16, 2020, 10:01:07 AM8/16/20
to akoivisto, ycm-users
I've tested that thing a moment ago.
It is very limited in its capabilities - only completion is supported.
Even that errors with "write to a closed file".

The other problem is that the server doesn't handle notifications at all. Instead, it thinks that the didOpen notification is a request and sends a nonsense response.

That said, I was compiling the server with lazarus 2.0.10, while the README says the server needs 2.0.8...

Anyway, see :h g:ycm_language_server for instructions on how to set YCM up yourself.

To unsubscribe from this group and stop receiving emails from it, send an email to ycm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ycm-users/dfdb16a2-d8dc-4dcd-a793-5252fa695291o%40googlegroups.com.

akoivisto

unread,
Aug 16, 2020, 10:25:35 AM8/16/20
to ycm-users
Great, thank you for testing it out!

It looks like the server could benefit from having more hands on deck.

Setting it up now.


On Sunday, August 16, 2020 at 5:01:07 PM UTC+3, Boris Staletic wrote:
I've tested that thing a moment ago.
It is very limited in its capabilities - only completion is supported.
Even that errors with "write to a closed file".

The other problem is that the server doesn't handle notifications at all. Instead, it thinks that the didOpen notification is a request and sends a nonsense response.

That said, I was compiling the server with lazarus 2.0.10, while the README says the server needs 2.0.8...

Anyway, see :h g:ycm_language_server for instructions on how to set YCM up yourself.

On Sun, 16 Aug 2020, 15:33 akoivisto, <aleksi....@gmail.com> wrote:
Hi! There seems to be this: https://github.com/arjanadriaanse/pascal-language-server.

"An LSP server implementation for Pascal variants that are supported by Free Pascal, including Object Pascal. It uses CodeTools from Lazarus as backend."

On Sunday, August 16, 2020 at 4:18:54 PM UTC+3, Boris Staletic wrote:
Do those languages have language servers? If so, we can take a look.

On Sun, 16 Aug 2020, 14:49 akoivisto, <aleksi....@gmail.com> wrote:
Is there any word on if there will ever be support for Lazarus and Free Pascal in YouCompleteMe?

--
You received this message because you are subscribed to the Google Groups "ycm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ycm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ycm-users/92a862f1-7478-4119-b99c-cf3892c5c50ao%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "ycm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ycm-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages