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

末鹿安然 提交于 2021-01-27 12:10:16

问题


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)


回答1:


(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




回答2:


I would just like to build onto Jonah Benton's answer, in response to ackerleytng's question on how to configure cider to use lein instead:

To change cider build command from clojure to lein, set lein as the value for variable cider-default-repl-command.

For the emacs beginner, you can see and change a variable value with keys C-h v.



来源:https://stackoverflow.com/questions/48992434/the-clojure-executable-isn-t-on-your-exec-path-even-though-lein-is-on-my-exe

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!