jdtsmith / eglot-booster

Boost eglot using lsp-booster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is Java jdtls supported?

uqix opened this issue · comments

https://github.com/eclipse-jdtls/eclipse.jdt.ls?tab=readme-ov-file#managing-connection-types

To use standard streams(stdin, stdout) of the server process do not set any of the above environment variables and the server will fall back to standard streams.

Is this relevant?

No idea, but sounds like so; just give it a try.

(not (seq-intersection '(:initializationOptions :autoport) com))))

Here's the problem: my java elgot config contains :initializationOptions:

(add-to-list
 'eglot-server-programs
 '(java-ts-mode
   .
   ("jdtls"
    "--jvm-arg=-javaagent:/opt/lombok.jar"
    "--jvm-arg=-Xmx4G"
    "--jvm-arg=-XX:+UseStringDeduplication"
    :initializationOptions (:extendedClientCapabilities (:classFileContentsSupport t)))))

so it's not wrapped.

I don't recall why I outlawed those. Can you try the allow-initialization-options branch and let me know how it works?

I don't recall why I outlawed those. Can you try the allow-initialization-options branch and let me know how it works?

It works now, thanks.

Thanks merged.