It seems that some java jdtls settings such as java.autobuild.enabled=false and java.jdt.ls.vmargs has not been supported? #1417
-
Hi, first, let me thank you for your great work! (with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs
`(java-mode . ("jdtls" :initializationOptions
(
:settings
(
:java
(
:autobuild (:enabled :json-false) ;; nil doesn't work either.
:configuration (:runtimes [(:name "JavaSE-11" :path "/usr/local/jdk-11.0.21+9" :default t)
(:name "JavaSE-17" :path "/usr/lib/jvm/java-17-openjdk-amd64")])
)
)
:bundles ["/usr/local/jdtls/com.microsoft.java.debug.plugin-0.51.1.jar"]
)
)))
) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
For custom JVM args, you might want to provide a custom function to initialize For |
Beta Was this translation helpful? Give feedback.
-
Hi guys, any other suggestions on this? Without setting of "java.autobuild.enabled=false", it takes me 3 to 5 minutes to wait before I can edit using the functions provided by eglot. |
Beta Was this translation helpful? Give feedback.
-
Hi @joaotavora Can you please help me? I know you are busy, but this issue really bothers me. Thanks! |
Beta Was this translation helpful? Give feedback.
@joaotavora I am glad to tell you that my issue has been solved. It is such an issue haunts me for months. The solution is to add
The solution I got from #1222 (comment) You guys discussed the problem in it thoroughly.
By the way, may be you made a mistake in the comment #1222 (comment) , the following code you proposed doesn't work
My complete eglot jdtls configuration is as the following now