Fork me on GitHub
#calva
<
2024-01-04
>
Marc O'Morain20:01:21

I’m getting an error on Windows starting Clojure LSP from Calva. >> LSP classpath lookup failed when running /usr/bin/clojure -A:test:dev -Spath. Some features may not work properly if ignored. >> > Error: Execution error (FileNotFoundException) at http://java.io.FileInputStream/open0 (FileInputStream.java:-2). > -A:test:dev (No such file or directory) > > Full report at: > /tmp/clojure-13341533077395372845.edn

Marc O'Morain21:01:28

>> marc@wipeout:~/dev/advent-of-code$ cat /tmp/clojure-15468156041125544679.edn >> > {:clojure.main/message > "Execution error (FileNotFoundException) at http://java.io.FileInputStream/open0 (FileInputStream.java:-2).\n-A:test:dev (No such file or directory)\n",

seancorfield21:01:00

Your version of the clojure script is either too old or not the official CLI.

🙏 1
Marc O'Morain21:01:19

Good idea, let me dig into that.

Marc O'Morain21:01:15

I had Clojure 10.1 installed from apt in wsl. I removed that and installed the latest using https://clojure.org/guides/install_clojure#_linux_instructions and that's fixed it 👍 thanks again.

seancorfield21:01:20

The apt version of clojure is not official, as far as I know...

pez21:01:06

Hi, @U0K592YDP. Happy to see you keep your Clojure reflexes honed!

Marc O'Morain21:01:53

Aha, so this is what happened: • I got an error from LSP saying that there was an error running clojure -A:test:dev -Spath • I opened a terminal and ran that command manually to debug it. • Ubuntu (`wsl`) prints a message saying something along the lines of clojure: command not found, run apt install clojure • That is not a helpful message, since that resulted in me installing the unofficial cli

seancorfield21:01:31

Unfortunately, Ubuntu's answer to most things is apt install ... 😞