-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
configurtion for java_language_server not works. #2773
Comments
server name is jdtls there is no java_language_server |
@glepnir that's not correct actually I tries jdtls days ago, it totally not works for my side. |
@glepnir please consider reopening this issue. |
oh sry there has java-language-server. but the mostly used is jdtls. |
relate #2769 ? I think this issue duplicated ? |
@glepnir I am not sure if that issue is the same as mine, in that issue, it's not mentioned whether packages are recognized correctly. Also I notice java runtime packages are found correctly, I can see class methods with "K" with "show document" key binding, so it seems lsp is running correctly but just a misconfiguration of java_language_server. |
Description
https://stackoverflow.com/questions/76944249/how-to-specify-classpath-with-java-language-server-of-neovim
I tried add classpath to ~/.config/Code/User/settings.json , $PROJ/.vscode/settings.json as doc described, also tried CLASSPATH variable with .jar path.
none of them works for me, any ideas to make it works?
Neovim version
NVIM v0.10.0-dev-835+gdd09630a2
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Run "nvim -V1 -v" for more info
Nvim-lspconfig version
latest
Operating system and version
linux
Affected language servers
java_language_server
Steps to reproduce
return {
setup = function(lspconfig, lsp)
lspconfig.java_language_server.setup {}
end
}
Actual behavior
all packages were not found by lsp
Expected behavior
all packages were found by lsp
Minimal config
LSP log
https://gist.github.com
The text was updated successfully, but these errors were encountered: