Open sangshuduo opened 8 months ago
Hey and thanks for reporting! So for starters the java-language-server unfortunately requires Bash to be installed, even on Windows. It seems like you have Bash installed so that's not the issue. The error output suggests something else is going wrong with path separators being removed (.scriptslink_windows.sh
should be ./scripts/link_windows.sh
).
I have an idea of what could be wrong, I'll have to test some further the next time I'm on a Windows machine.
The JAVA_HOME environment variable is not defined correctly
Have you set the variable in your environment?
I recommend using :MasonInstall java-language-server@v0.2.32
from the reference https://github.com/georgewfraser/java-language-server/issues/255
I had the same issue and installing maven with scoop fixed it for me, even with the path separator issue in the link_windows.sh script.
any Update?
I've searched open issues for similar requests
I've manually reviewed logs to find potential errors
I've recently downloaded the latest plugin version of mason.nvim
Problem description
I failed to install java-language-server via MasonInstall with neovim on Windows.
The output:
Expected behavior
Install java-language-server smoothly.
Steps to reproduce
run MasonInstall java-language-server command
Affected packages
mason, java-language-server
Neovim version (>= 0.7)
NVIM v0.9.4 Build type: RelWithDebInfo LuaJIT 2.1.1696883897
Operating system/version
Windows 11
Healthcheck
Screenshots or recordings
No response