-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Windows: LanguageServer not initialized after 10s #25
Comments
Your guess that the Eclipse (lsp4e component) is having troubles starting the language server seems about right. But unfortunately I also don't have much of an idea why. It could be related to the JVM setup. Maybe language server start can't find the JVM somehow. Also I think we need a JDK not a JRE. You may be one of the first people to try it on a Windows box, (all of us are on Mac or Linux) so it could be it simply doesn't work on Windows. I'll try it later on a Windows VM setup and see if it works for me. About the only suggestion I have for now, make sure your Java setup is a JDK not a JRE. But its a bit of a wild guess only. |
Good news... (or bad, depending on how you look at it :-). I tried STS4 on my windows VM and it doesn't work. Getting very similar problems to what @brunpoern describes. Of course its bad we are having problems running on Windows, but its good that I can reproduce the problem, so I can try to debug it now. |
I've pushed some fixes. I'll do some more testing tomorrow on windows. I did get the boot-java support to work properly on windows. But didn't have much time to test it yet. |
I just installed the latest nightly build and it seems to work. Awesome. Thank you very much for the fast response. |
I now tried to use the Language Server feature with a more complex example. The example project is part of a bigger Gradle multi-project build and in the Eclipse workspace there are also some unused pom.xml files (we migrated to Gradle recently). If I start Eclipse I get Spring Boot Java Language Server Error "Cannot load Gradle project model from folder: ...". Sometimes I also get the error "Cannot load Maven project model ..." where it picks a (random?) pom.xml file from my Eclipse workspace. I'm wondering what STS4/Language Server expects here. Does it really try to load my build files? The Eclipse projects itself doen't have any Maven/Gradle nature. We just generate Eclipse project files from Gradle and import them as normal Java Projects. Does STS4 require to have Gradle/Maven Eclipse projects or should it also work with "plain" Java projects? In the Eclipse workspace log I get the following error but I'm not sure if it's related:
Should I create a new issue for this problem? Thanks and regards, |
No it doesn't require Eclipse projects... Which Gradle version is being used by your project? |
I created a new issue for the Gradle/Maven problem. |
Does that mean we can close this issue already as fixed or is anything still open here? |
Having both gradle and maven build files will confuse the tooling. I can't predict right now what will happen if you do that (nor do I know what would be a good way to handle it since I don't see how the tooling could guess which one you really wanted to use). I don't think it will pick randomly, the result will be deterministic, but I really wouldn't expect it to work. |
@martinlippert @kdvolder |
After updating Latest Nightly Build (Spring Tool Suite 4 Version: 4.0.0.CI-B803 Build Id: 201801051108), the below error still coming in logs and STS4 got frozen during that time... Some times, it will be back in few seconds and some times, it won't be back. Just wonder, Any option available to skip LSP in STS4 ?
|
It's likely you have a rogue LS process running on your system Close STS4, shut down boot apps if there are any running. Run |
Thanks for your quick response. Yes, there are two processes running each for JarLauncher and boot-properties-language-server-0.1.3-SNAPSHOT.jar. I will try to kill those processes and see. I believe, these processed triggered from STS4. Would not they be closed when STS4 get closed (gracefully) ? |
They should be shut down when STS is closed. Were you trying to run VSCode or Atom with |
Hi,
I just wanted to try out the new STS4 beta version with a simple Spring Boot Demo project. But when starting Eclipse STS4 I always get the following error in the Eclipse Error Log:
with the following stack trace:
And in the progress window the "Initialize Language Servers for DemoApplication.java" task hangs forever.
For installation I downloaded the "Spring Tools 4 for Eclipse" distribution and created an empty workspace without any additional customization:
My Eclipse is started with :
If I understand it correctly Eclipse should start the Spring Boot Language Server but I guess this somehow fails. But I have no idea why or where I should look for further information. In the Eclipse workspace log I only see these log messages:
Any help is highly appreciated. The new "Runtime information in your editor" features looks really cool and I can't wait to try it out on my machine :-)
Thanks and regards,
Andreas
The text was updated successfully, but these errors were encountered: