Skip to content

It seems that some java jdtls settings such as java.autobuild.enabled=false and java.jdt.ls.vmargs has not been supported? #1417

Closed Answered by huangfeiyu
huangfeiyu asked this question in Q&A
Discussion options

You must be logged in to vote

@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

(add-hook 'java-ts-mode-hook (lambda ()
    (remove-hook 'eglot-connect-hook 'eglot-signal-didChangeConfiguration)))

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

(add-hook 'java-mode-hook (lambda ()
   (remove-hook 'eglot-connect-hook #'eglot-signal-didChangeConfiguration t))

My complete eglot jdtls configuration is as the following now

(with-eval-after-load 'eglot
  (add-to-list 'eglot-server-programs…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@huangfeiyu
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@joaotavora
Comment options

@huangfeiyu
Comment options

@joaotavora
Comment options

@huangfeiyu
Comment options

Answer selected by joaotavora
@joaotavora
Comment options

@huangfeiyu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants