Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"The clojure executable isn’t on your ‘exec-path’" even though lein is on my exec-path (macOS)

Tags:

clojure

cider

I have the following exec-path (according to describe-variable):

("/usr/local/bin/" "/usr/bin/" "/bin/" "/usr/sbin/" "/sbin/" "/usr/local/Cellar/emacs-plus/25.3/libexec/emacs/25.3/x86_64-apple-darwin16.7.0/") 

This is the lein executable path:

/usr/local/bin/lein

This is what happens when I run cider-jack-in:

The clojure executable isn’t on your ‘exec-path’

What gives?

Edit: (cider-lein-command is lein)

like image 860
The Unfun Cat Avatar asked Oct 18 '25 11:10

The Unfun Cat


1 Answers

(from the comment)

Looks like cider is looking for the clojure command, not the lein command. "clojure" is an executable that was introduced with the new cli tool:

https://clojure.org/guides/deps_and_cli

like image 132
Jonah Benton Avatar answered Oct 21 '25 00:10

Jonah Benton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!