Race condition between Java server startup and Langium LSP server #2006
Unanswered
riteshkumar2002
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Hey @riteshkumar2002, I couldn't quite follow your description. Can you give a bit more context? Why does your language server crash because of Maven dependencies? The language server should be coded in a way that it can handle changes to the workspace/file system without crashing. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my project I use both a Java server (for dependency management / Maven resolution) and a Langium-based LSP server.
Currently, when I run my project, both servers start at the same time.
The problem:
The Java server needs to download Maven dependencies (from pom.xml) during startup.
So if their is any issue in java the lsp server fails and start re-connecting.
This leads to inconsistent startup behavior — sometimes it works, sometimes it fails, depending on how long the Java server takes to initialize.
Beta Was this translation helpful? Give feedback.
All reactions