Fork me on GitHub
#cursive
<
2020-08-24
>
Conor09:08:00

I'm having some trouble refreshing deps-based projects using Cursive - the error I get is 'Command failed when executing /usr/local/bin/clojure'. Going in to the settings, I can see it's pointing to that path but it seems like it can't correctly pick up the clojure executable there as it also has 'Command failed' just under it rather than the clojure version. I can run clojure using the terminal - what am I missing here?

cfleming11:08:13

Do you have anything in your log saying Output from <command> where command is probably /usr/local/bin/clojure? Help-&gt;Show log in Finder/Explorer/whatever

Conor11:08:35

#cursive.deps.DepsSettings - Output from /usr/local/bin/clojure -Sdescribe: Couldn't find 'java'. Please set JAVA_HOME.

Conor11:08:03

Oddly, I can now use Clojure directly and it appears to work OK

cfleming11:08:26

Do you mean use tools.deps directly?

Conor11:08:17

No, I switched to that temporarily, which worked. I mean that I can select the 'Use CLI tools' radio button and it now doesn't display the error

cfleming11:08:47

That is super weird, but I’ll take it 🙂

Conor11:08:00

I did a bunch of different things (installed tools.deps, installed lein via apt, restarted IntelliJ), so not sure which one was the winner. At least it works! 😄