eclipse.jdt.ls
eclipse.jdt.ls copied to clipboard
jdtls: set up `-data` directory
Hi,
first of all thanks for your work on this and for providing jdtls
. With the help of Eglot developers, I've recently added support for jdtls
in this Emacs package.
However, as you can see from https://github.com/joaotavora/eglot/issues/1008, there are still some issues related to the configuration of the -data
directory.
This problem can be worked around (see: https://github.com/joaotavora/eglot/issues/1008#issuecomment-1216239559, for instance), but would it be possible to let jdtls
take care of the relevant -data
configuration?
[cc @joaotavora and @nemethf]
Agreed on this. I was pointing someone to the script and couldn't understand why it was failing. Provided -data
and problem solved. We should fix this so it may be run with no additional arguments.
In case anyone is interested. This bug really struck me as weird. Would we really release a script and neglect to mention that one needs to set something as basic as -data
?! I started going through old JDT-LS releases at https://download.eclipse.org/jdtls/milestones/ and just running the script with no arguments.
The 1.12.0 release works and generates a workspace
folder automatically. So looks like an upstream change caused this regression.