Ivan Yonchovski
Ivan Yonchovski
> Use (setq dap-java-java-command "/usr/bin/java") does not work... Do you see the same error? Is /usr/bin/java version 11?
can you post the content of the compilation buffer after you have set the java command?
Sorry, I have no clue - I mean, clearly the issue is that you are running java 11 compiled stuff with java 8 binary. You have to figure out that...
have you checked https://github.com/emacs-lsp/lsp-mode/issues/2842#issuecomment-870807018
1. Download https://github.com/emacs-lsp/lsp-java/blob/master/install/pom.xml 2. Run (but first adjust the proper home dir). ``` bash mvn -Djdt.js.server.root=/home/kyoncho/.emacs.d/eclipse.jdt.ls/server/ -Djunit.runner.root=/home/kyoncho/.emacs.d/eclipse.jdt.ls/test-runner/ -Djunit.runner.fileName=junit-platform-console-standalone.jar -Djava.debug.root=/home/kyoncho/.emacs.d/eclipse.jdt.ls/server/bundles clean package -Djdt.download.url=http://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz ``` lsp-java is doing pretty much the same...
Everything is possible but we have pretty limited resources and we often settle with the workaround, there are 100+ open issues in the organization and dozens of missing features and...
> This logic will never use `mvn` because `lsp-java--prepare-mvnw` returns always non-`nil`. Please, give a `defcustom` to choose using `mvn` explicitly instead of `mvnw`. Also real falling back to `mvn`...
Thank you. If you want to prepare a PR from that(or if you are interested in contributing to any other `emacs-lsp` project) I will be happy to review/merge it.
That is a good idea. I want to create tutorials + videos which demo what lsp-mode/dap-mode can do. Have you seen that https://www.youtube.com/watch?v=Bbjxn9yVNJ8 ?
@mpanarin, willing to take a look?