eclipse.jdt.ls icon indicating copy to clipboard operation
eclipse.jdt.ls copied to clipboard

jdtls: set up `-data` directory

Open manuel-uberti opened this issue 2 years ago • 2 comments

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]

manuel-uberti avatar Aug 18 '22 06:08 manuel-uberti

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.

rgrunber avatar Sep 02 '22 02:09 rgrunber

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.

rgrunber avatar Sep 13 '22 13:09 rgrunber