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

jdtls version 1.20.0 or above, jdtls has exited #428

Closed
sincebyte opened this issue Apr 13, 2023 · 4 comments
Closed

jdtls version 1.20.0 or above, jdtls has exited #428

sincebyte opened this issue Apr 13, 2023 · 4 comments

Comments

@sincebyte
Copy link

sincebyte commented Apr 13, 2023

Describe the bug
When using jdtls version 1.20.0 or above,there have an exception cause LSP not working.

LSP :: jdtls has exited (exited abnormally with code 23)

I use lsp-java-jdt-download-url change the default jdt download url.
Reference: https://download.eclipse.org/jdtls/milestones/1.20.0/

Note
Case an another bug ,I need upgrade jdtls to last version.
But When upgrade jdtls version to 1.20.0 or above,there have a exception cause LSP not working.

To Reproduce
(setq lsp-java-jdt-download-url "http://1.117.167.195/download/jdt-language-server-1.22.0-202304122049.tar.gz")
and remove .emacs.d/.local/etc/lsp/
and then reinstall jdt

Expected behavior
When upgrade jdtls version to 1.20.0 or above, LSP startup with no error.

Screenshots
If applicable, add screenshots to help explain your problem.
CleanShot 2023-04-13 at 11 53 41

Logs

LSP :: jdtls has exited (exited abnormally with code 13)
@yyoncho
Copy link
Member

yyoncho commented Apr 13, 2023

Newest jdtls require newer java: #405 (comment)

@yyoncho
Copy link
Member

yyoncho commented Apr 13, 2023

Also make sure to delete lsp-java-workspace-dir.

@sincebyte
Copy link
Author

@sincebyte
Copy link
Author

I am sure jdk version is correct.

set -x JAVA_HOME            /Users/van/soft/zulu17.40.19-ca-fx-jdk17.0.6-macosx_aarch64/zulu-17.jdk/Contents/Home

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants