The Language Support for Java server crashed 5 times in the last 3 minutes. The server will not be restarted.
See original GitHub issueReceiving the following error when opening a Maven project folder:
The Language Support for Java server crashed 5 times in the last 3 minutes. The server will not be restarted.
Environment
-
Operating System: Windows 10
-
JDK version: both java version “1.8.0_141” AND openjdk version “11.0.1” 2018-10-16
-
Visual Studio Code version: Version: 1.29.1 (user setup) Commit: bc24f98b5f70467bc689abf41cc5550ca637088e Date: 2018-11-15T19:13:36.375Z Electron: 2.0.12 Chrome: 61.0.3163.100 Node.js: 8.9.3 V8: 6.1.534.41 Architecture: x64
-
Java extension version: 0.35.0 (November 30th, 2018)
Steps To Reproduce
- Install the Language Support for Java™ by Red Hat extension (no other extensions are active)
- Create a new Maven project using the quickstart archetype
- Open the folder with the new Maven project
- See the error
I am unable to attach the Java Language Server log file. I followed the steps here, but when I run the the Java: Open Java Language Server log file
command nothing happens.
Current Result
Expected Result
Additional Informations
Issue Analytics
- State:
- Created 5 years ago
- Comments:39 (3 by maintainers)
Top Results From Across the Web
The Language Support for Java server crashed 5 times in the ...
Open the command palette (F1); select Java: Clean the Java Language Server Workspace; select Restart and delete from the confirmation prompt.
Read more >coc-java The java server crashed 5 times in the last 3 minutes
This happened to me alot, fixed it by doing :CocCommand java.clean.workspace After u do that restart coc and it should work fine, usually...
Read more >redhat-developer/vscode-java - Gitter
... it stopped working with the message "The Language Support for Java server crashed 5 times in the last 3 minutes. The server...
Read more >Unable to use intellisense - language server crashed 5 time in ...
cpptools client: couldn't create connection to server. The language server crashed 5 times in the last 3 minutes. It will not be restarted....
Read more >“The Language Support for Java server crashed“ 问题解决方案
The Language Support for Java server crashed 5 times in the last 3 minutes. The server will not be restarted. 经过Google在这里找到了解决方法 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Press CTRL + SHIFT + P, and type Java: Clean Java Language Server Workspace. It works for me.
Thank you for giving me the “java.jdt.ls.vmargs” setting, I was able to figure out what was going wrong.
I had installed the Lombok Annotations Support for VS Code extension awhile back and decided to remove it. However, the extension added some parameters to the java.jdt.ls.vmargs setting:
"-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication -javaagent:\"C:\\Users\\SHall\\.vscode\\extensions\\gabrielbb.vscode-lombok-0.9.7/server/lombok.jar\" -Xbootclasspath/a:\"C:\\Users\\SHall\\.vscode\\extensions\\gabrielbb.vscode-lombok-0.9.7/server/lombok.jar\""
When I removed the extension, the settings were still present but the Language Server was unable to the load the manifest from the lombok.jar file (because it was deleted). This caused the Language Server to fail to start.
After adding the
-Dlog.level=ALL
parameter to the java.jdt.ls.vmargs setting, I was finally able to see the error in the output view. I’ve put the java.jdt.ls.vmargs setting back to its default value and everything is working properly again.Thank you for your help! You can close this issue.