You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading lsp-java causes (lsp-define-stdio-client 'java-mode "java" ...) to be evaluated, one of the argument of this function is (lsp-java--ls-command), which in turn will call (lsp-java--get-root), which will return the current directory at whatever point lsp-java has been loaded, instead of when the lsp-mode has been enabled. If you use emacs in server mode and eagerly load lsp-java in your config, you will likely see Couldn’t find java root, using:/ in your logs.
It seems that lsp-define-stdio-client needs to be changed to take a function that returns the command used for running the server, instead of a list of strings.
The text was updated successfully, but these errors were encountered:
The issue is no longer reproducible with the latest code since the project roots are specified explicitly and if the project is not under project root the project root directory will default to default-directory. Marking as closed, please reopen it if you are able to hit the issue with the latest code.
Loading lsp-java causes
(lsp-define-stdio-client 'java-mode "java" ...)
to be evaluated, one of the argument of this function is(lsp-java--ls-command)
, which in turn will call(lsp-java--get-root)
, which will return the current directory at whatever pointlsp-java
has been loaded, instead of when the lsp-mode has been enabled. If you use emacs in server mode and eagerly loadlsp-java
in your config, you will likely seeCouldn’t find java root, using:/
in your logs.It seems that
lsp-define-stdio-client
needs to be changed to take a function that returns the command used for running the server, instead of a list of strings.The text was updated successfully, but these errors were encountered: