JDTLS not working right #1044
sabinpocris
started this conversation in
General
Replies: 3 comments 8 replies
-
Ask the jdtls folks, maybe |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is your project a part of Git repository? As far as I understand eglot uses |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can you try using this snippet? (with-eval-after-load 'eglot
(let ((cache
(expand-file-name (md5 (project-root (eglot--current-project)))
(locate-user-emacs-file
"eglot-eclipse-jdt-cache"))))
(add-to-list 'eglot-server-programs
`(java-mode "jdtls" "-data" ,cache)))) |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
If I am into a Maven project, I get "file is a non-project file, only syntax errors are reported" .
However, if I change the
-data
parameter I get "class
cannot be resolved to a type", even though the class's implementation is in the same folder.Googling I saw another issue like this, maybe using
(java-mode . ("jdtls" "-data" ".jdtls-cache"))
is not the right choice?What can I do?
I'm using the last
jdtls
snapshot, lasteglot
version andopenjdk 18.
Beta Was this translation helpful? Give feedback.
All reactions