Get Language Server to run with Eclipse (and other editors) #1619
Replies: 5 comments 29 replies
-
which langium version do you use? (there we some recent bugfixes around cancellation and build) |
Beta Was this translation helpful? Give feedback.
-
Bildschirmaufnahme.2024-08-06.um.19.56.06.mov |
Beta Was this translation helpful? Give feedback.
-
It is a Windows related issue. I did exactly the same setup on Linux and 2 Windows systems (Windows 10 corporate, Windows 11 private). Results:
I'm new to langium code base, but I tried to debug the didChange event. In
On key stroke in the Eclipse editor, the |
Beta Was this translation helpful? Give feedback.
-
Found the error:
while
Note also So the |
Beta Was this translation helpful? Give feedback.
-
Here is my VERY QUICK AND DIRTY fix: In
Tested only on Windows. Also |
Beta Was this translation helpful? Give feedback.
-
I'm migrating my Xtext-projects to Langium.
I have created the "hello world" Langium project, build it without any change and then added it to Eclipse 2024-6-R (or 2024-3-R) using LSP4E (starting "node" with "{path}/out/language/main.js". I get following:
If I start Language Server for *.langium in Eclipse in the same way, the same problems are there.
I also tested Language Servers for *.langium and *.hello in NeoVim. It works almost exactly the same, as in Eclipse. A difference is only, that NeoVim sends LSP message on save making it much more usaful, since I don't need to change a file in order to see diagnostics.
Also NeoVim gets langium files completely broken while saving actual changes to the grammar (probably by formatter, not sure, if related).
Here is the initialization phase:
Highlighting LSP messages:
Doesn't get shown neither in Eclipse nor in NeoVim.
"textDocument/didChange" messages:
Needless to say, that in VS Code everything works perferctly fine :)
Any ideas, what am I doing wrong?
I need to get this to work. If needed, (after some guadance) I can implement and contribute required fixes in langium.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions