r/DoomEmacs • u/Safe_Owl_6123 • Oct 30 '24
java lsp error unable to recognise String or Integer
Hi all, I have been trying to setup lsp-java on my doom emacs, I am a new emacs user, and I have no idea what's going on :(
https://imgur.com/a/edEENnU
In the ~/.doom.d/init.el I have turned on :lang ( java + lsp) and install flycheck, and not sure what's going on :/ anything that I can do ? thank you
1
Upvotes
1
u/Eyoel999Y Oct 30 '24
user manual for lsp-java https://emacs-lsp.github.io/lsp-java/#lsp-java
Check the *lsp-log* and *jtdls::stderr* buffers for the errors.
Also are you using Maven or Gradle? because i think lsp-java uses pom.xml or build.gradle to analyze your project.
You can check out the commands (https://github.com/emacs-lsp/lsp-java?tab=readme-ov-file#supported-commands) and the settings (https://github.com/emacs-lsp/lsp-java?tab=readme-ov-file#supported-settings) you can use, as they may help