BetterThanTomorrow / calva

Clojure & ClojureScript Interactive Programming for VS Code
https://marketplace.visualstudio.com/items?itemName=betterthantomorrow.calva
Other
1.57k stars 213 forks source link

“Couldn't create connection to server.” #2499

Open matj1 opened 2 months ago

matj1 commented 2 months ago

If I run the command “Calva Clojure LSP: Start the Clojure LSP Server”, it shows this error:

[Error - 12:58:24] Server initialization failed.
  Message: Internal error
  Code: -32603 
[object Object]
[Error - 12:58:24] Clojure Language Client client: couldn't create connection to server.
  Message: Internal error
  Code: -32603 
[object Object]

I have installed clojure-lsp with the command “Calva Clojure LSP: Download the configured Clojure LSP Server version” and the file is present at ~/.vscode-oss/extensions/betterthantomorrow.calva-2.0.435-universal/clojure-lsp. I have calva.clojureLspPath empty and calva.clojureLspVersion set to “latest”. One thing which is probably irrelevant but on my mind is that I use Nushell as the default shell, and it is not POSIX-compliant.

What is wrong? The message “Internal error” and the error code are not helpful. I would like something which would show me more specifically where the problem is.

PEZ commented 2 months ago

Maybe we're supposed to see more details but it's being presented as [object Object]... Can you start clojure-lsp manually? Like just execute ~/.vscode-oss/extensions/betterthantomorrow.calva-2.0.435-universal/clojure-lsp in the terminal.

matj1 commented 1 week ago

When I run that command in a terminal, it just runs and says nothing.

This is after switching to Arch from NixOS. Now, it does nothing when I run “Calva Clojure LSP: Start the Clojure LSP Server”, but it shows the error when I run “Calva Clojure LSP: Restart the Clojure LSP Server”.

matj1 commented 1 week ago

The error shows also when I launch Code with Calva.

PEZ commented 1 week ago

Do you see anything useful in the clojure-lsp log? There's a command in Calva for opening it. It's just a file in the temp directory of the system.