Fork me on GitHub

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?


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


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


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


Do you mean use tools.deps directly?


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


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


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! 😄