reddit / emacs

eglot doesn't work with java

IcePhoneX_ · 2022-06-06 15:26
I have eglot enabled for rust, c, c++ and python with no problem, I simply had to add `(add-hook 'language-mode-hook 'eglot-ensure)` and it worked but it doesn't for java, any idea why?
KaranasToll · 2022-06-06 15:49
Because java bad. You may have better luck with lsp-java.
alessandrobertulli · 2022-06-06 20:08
Which server are you using? I had lots of issues even with lsp-mode, then it got WAY better when I manually installed a more recent JDTLS: the one you get automatically when you start LSP is old and (imho) very buggy. Can this be your case too?
Jealous-Ad-7024 · 2022-06-07 07:22
Java sucks. Let eglot-java do the installation, that worked for me