-
Notifications
You must be signed in to change notification settings - Fork 129
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 Java Language Server #270
Comments
The output as follows: |
Hello, Some more information on this issue that I share : The extension try to run Of course, starting a shell script in Windows may only crash. I understand this is something about WSL. Here is the code to blame : https://github.com/georgewfraser/java-language-server/blob/master/lib/extension.ts#L327-L328 For an immediate fix, change the file function platformSpecificLangServer() {
switch (process.platform) {
case 'win32':
- return ['dist', 'lang_server_windows.sh'];
+ return ['dist', 'lang_server_windows.cmd'];
case 'darwin':
return ['dist', 'lang_server_mac.sh'];
case 'linux':
return ['dist', 'lang_server_linux.sh'];
}
throw `unsupported platform: ${process.platform}`;
} Once that changed. I'm running into an other issue, Java 17 is not enough :
It requires at least Java 18. If someone has the knowledge to detect if the user is either using plain windows or WSL, your input on this |
OS: Windows10
Version: 0.2.46
I just installed this extension in VS Code and then I ran into this error. Did I miss out on something? Are there any prerequisites before installing this extension?
The text was updated successfully, but these errors were encountered: