This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-29
Channels
- # announcements (15)
- # babashka (17)
- # beginners (66)
- # calva (18)
- # clojure (20)
- # clojure-dev (2)
- # clojure-europe (27)
- # clojure-nl (1)
- # clojure-norway (24)
- # clojure-sweden (5)
- # clojure-uk (4)
- # clr (1)
- # cursive (3)
- # datomic (10)
- # dev-tooling (9)
- # gratitude (1)
- # honeysql (5)
- # hyperfiddle (13)
- # malli (4)
- # music (1)
- # nrepl (1)
- # off-topic (31)
- # polylith (11)
- # portal (6)
- # re-frame (3)
- # reitit (4)
- # releases (1)
- # shadow-cljs (8)
- # squint (4)
- # tools-build (26)
- # vim (1)
- # yamlscript (52)
I started getting this error when running LSP from Calva. Does it look familiar?
[Error - 12:29:23 PM] Clojure Language Client client: couldn't create connection to server.
Error: spawn Unknown system error -86
at ChildProcess.spawn (node:internal/child_process:414:11)
at Object.spawn (node:child_process:799:9)
at transports (/Users/a/.vscode/extensions/betterthantomorrow.calva-2.0.452/node_modules/vscode-languageclient/lib/node/main.js:426:46)
at x.connection [as createConnection] (/Users/a/.vscode/extensions/betterthantomorrow.calva-2.0.452/node_modules/vscode-languageclient/lib/common/client.js:1052:15)
at x.start (/Users/a/.vscode/extensions/betterthantomorrow.calva-2.0.452/node_modules/vscode-languageclient/lib/common/client.js:617:19)
Running it directly results in:
$ /Users/a/.vscode/extensions/betterthantomorrow.calva-2.0.452/clojure-lsp
zsh: bad CPU type in executable: /Users/a/.vscode/extensions/betterthantomorrow.calva-2.0.452/clojure-lsp
I have an Intel Mac
I’m using nightly
setting for the Clojure LSP in Calva.
I’ve succeeded configuring Calva to use a version I installed via homebrew. Not sure what caused Calva built-in Clojure LSP to stop working. I also noticed that Calva doesn’t re-read Clojure LSP Path setting and I need to reload window each time I change it. cc @UKFSJSM38
I created an issue for the issue about the config not being re-read: https://github.com/BetterThanTomorrow/calva/issues/2557
What about the bad CPU type in executable
? Looks like Calva installs incorrect version of Clojure LSP - different platform.
Weird, I think calva downloaded the wrong arch binary, but if we had a problem like that all macs of that type would be suffering of that, so must be some rare corner case
Yeah, I don’t know what to make of that one. Super weird. Thinking that maybe something went wrong with the download in some other way, causing a corrupt file and then the architecture check fails because of that.
Does calva use its own installation script that doesn’t check the checksum? I see that installation script in https://clojure-lsp.io/installation/ is doing that.
Hmm, it looks like the checksums are not published.
Judging by the list of files in https://github.com/clojure-lsp/clojure-lsp/releases.
I’ll file a request to lsp to publish checksums and for calva to verify them 🙂
Thank you!