-
Notifications
You must be signed in to change notification settings - Fork 418
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
Couldn't start client Language Support for Java (Syntax Server) #1588
Comments
Based on conversations in #785, I had this same error when opening a project that was in WSL 2 (\\wsl$). Moving the project to some directory in windows (C:\) solved my issue. I was able to get my project working while leaving it in WSL by using Remote development in WSL (https://code.visualstudio.com/docs/remote/wsl-tutorial) |
Thanks for the answer, djkong7, that fixed it for me as well. I think this issue can be close then. |
I was not able to get this to work using WSL with Remote development - @djkong7 could you give some hints which steps you followed to achieve this? I set the JDK path in my workspace file, opened the workspace from WSL2, and still the extension cannot load the java support and displays many errors in the console. |
@peschue Can you confirm that the extension is properly recognizing the JDK. Try opening the command palette and run "Java: Configure Java Runtime". You should see your JDK under "Installed JDKs" as well as ensure that the Java Language Server is running JDK 11+ under "Java Tooling Runtime". I personally didn't have to do more steps other than that to get my project working in WSL2. |
"Java: Configure Java Runtime" causes spinning arrows in the status bar "Activating Extensions" and then nothing happens. |
@peschue i initially had the same problem, but then i realized i only had a JRE installed in WSL. Installing a full JDK and restarting corrected my issues ( |
getting similar issue in Mac |
Make sure you have opened a WSL window in VSCode: I was having the same problem time and again, until I somehow remembered I needed to open a WSL window. It lets VSCode take control in a different environment. I started to have this issue because one day I closed every VSCode window I had, and when I opened a new one the next day it started in a Windows 10 window by default which, by the way, works but has a collision with the "Language Support for Java" extension when it comes to Java projects. |
yes, I am facing the same issue |
I install a older extension.Then I just clean the work field and restart the VScode this question was solved.But I still don't understand the specific reason. I hope my solution will be helpful to you !😎 |
I have just freshly installed VS Code 1.48.1 and installed the extension "Language support for Java by Red Hat" (https://marketplace.visualstudio.com/items?itemName=redhat.java). But if I now open a Java directory, it shows two error messages:
Couldn't start client Language Support for Java (Syntax Server)
andCouldn't start client Language Support for Java
.Next to that the cpu usage also jumps to 100% and the spinning circle in the bottom right does not stop spinning. If I open the developer tools, I get about 1000 errors/second which all look like this:
as well as a warning for each error:
What I have tried to fix it:
C:\Users\my_computer>echo %JAVA_HOME% C:\Program Files\Java\jdk-14.0.2
I have also added "java.home" with the same location to the preferences, but that didn't fix it either.
Environment
openjdk version "14.0.2" 2020-07-14, OpenJDK Runtime Environment (build 14.0.2+12-46), OpenJDK 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)
(from https://jdk.java.net/14/)Steps To Reproduce
Current Result
See above
Expected Result
No errors
The text was updated successfully, but these errors were encountered: