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
VS Code assumes it has a folder open when starting the LSP client. Otherwise it initializes the server with a null for rootUri. And this leaves clojure-lsp in a non-working state.
This can happen with the standalone REPLs which as a feature can be started standalone from a VS Code folder (see #1601). It can also happen if the user opens Clojure file, or creates a Clojure document. Or, in fact, any of the actions where Calva is configured to activate.
This gets a bit extra bad for the user because the main options for diagnostics we provide LSP serverInfo, and Open LSP log both crash inside clojure-lsp when the rootUri is not set. And as Calva uses serverInfo as part of the activation of clojure-lsp things are a bit in limbo here.
My analysis is that we are starting clojure-lsp prematurely, we need to know the rootUri, or that there is a VS Code folder open, before we start clojure-lsp.
The text was updated successfully, but these errors were encountered:
clojure-lsp does not like root-less existence see #1601 and #1664
This commit also changes things so that we don't start
clojure-lsp until we have something Clojure-y to chew on.
TODO: clojure-lsp does now not start automatically when Calva
is activated because the iser is starting standalone REPLs.
PEZ
added a commit
that referenced
this issue
Apr 6, 2022
clojure-lsp does not like root-less existence see #1601 and #1664
This commit also changes things so that we don't start
clojure-lsp until we have something Clojure-y to chew on.
TODO: clojure-lsp does now not start automatically when Calva
is activated because the iser is starting standalone REPLs.
PEZ
added a commit
that referenced
this issue
Apr 7, 2022
clojure-lsp does not like root-less existence see #1601 and #1664
This commit also changes things so that we don't start
clojure-lsp until we have something Clojure-y to chew on.
TODO: clojure-lsp does now not start automatically when Calva
is activated because the iser is starting standalone REPLs.
VS Code assumes it has a folder open when starting the LSP client. Otherwise it initializes the server with a
null
forrootUri
. And this leaves clojure-lsp in a non-working state.This can happen with the standalone REPLs which as a feature can be started standalone from a VS Code folder (see #1601). It can also happen if the user opens Clojure file, or creates a Clojure document. Or, in fact, any of the actions where Calva is configured to activate.
This gets a bit extra bad for the user because the main options for diagnostics we provide LSP serverInfo, and Open LSP log both crash inside clojure-lsp when the rootUri is not set. And as Calva uses serverInfo as part of the activation of clojure-lsp things are a bit in limbo here.
My analysis is that we are starting clojure-lsp prematurely, we need to know the rootUri, or that there is a VS Code folder open, before we start clojure-lsp.
The text was updated successfully, but these errors were encountered: