Skip to content

Multi-root workspace support ? #909

Answered by quotuva
lljr asked this question in Q&A
Apr 1, 2022 · 3 comments · 16 replies
Discussion options

You must be logged in to vote

FWIW, for jdtls I use:

(push `((java-mode java-ts-mode) "jdtls" "--jvm-arg=-javaagent:/home/user/lombok.jar"
	:initializationOptions
	,(lambda (server)
	   `(:workspaceFolders ,(vconcat (mapcar (lambda (o) (plist-get o :uri)) (eglot-workspace-folders server))))))
      eglot-server-programs)

and comment this line in eglot.el, to work around eclipse-jdtls/eclipse.jdt.ls#1245

EDIT (by @joaotavora): Commenting this line in eglot.el is not needed apparently.

EDIT2: This is indeed down to a bug in the jdtls server. Go here to support its fix eclipse-jdtls/eclipse.jdt.ls#1245 (I'd say it shouldn't be terribly hard).

Replies: 3 comments 16 replies

Comment options

You must be logged in to vote
3 replies
@nemethf
Comment options

nemethf Apr 2, 2022
Collaborator

@joaotavora
Comment options

@lljr
Comment options

Comment options

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

@joaotavora
Comment options

@joaotavora
Comment options

@lljr
Comment options

@nemethf
Comment options

nemethf Oct 18, 2022
Collaborator

Comment options

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

@quotuva
Comment options

@joaotavora
Comment options

@joaotavora
Comment options

@quotuva
Comment options

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