Skip to content
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

Open
yimingwangdell opened this issue Aug 22, 2023 · 6 comments
Open

configurtion for java_language_server not works. #2773

yimingwangdell opened this issue Aug 22, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@yimingwangdell
Copy link

yimingwangdell commented Aug 22, 2023

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

return {
	setup = function(lspconfig, lsp)
		lspconfig.java_language_server.setup {}
	end
}

LSP log

https://gist.github.com

@yimingwangdell yimingwangdell added the bug Something isn't working label Aug 22, 2023
@glepnir
Copy link
Member

glepnir commented Aug 22, 2023

server name is jdtls there is no java_language_server

@glepnir glepnir closed this as completed Aug 22, 2023
@yimingwangdell
Copy link
Author

@glepnir that's not correct
image

actually I tries jdtls days ago, it totally not works for my side.
eclipse-jdtls/eclipse.jdt.ls#2798

@yimingwangdell
Copy link
Author

@glepnir please consider reopening this issue.

@glepnir
Copy link
Member

glepnir commented Aug 22, 2023

oh sry there has java-language-server. but the mostly used is jdtls.

@glepnir glepnir reopened this Aug 22, 2023
@glepnir
Copy link
Member

glepnir commented Aug 22, 2023

relate #2769 ? I think this issue duplicated ?

@yimingwangdell
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants