Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
didibus opened this issue Aug 19, 2018 · 4 comments
Closed

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

didibus opened this issue Aug 19, 2018 · 4 comments

Comments

@didibus
Copy link

didibus commented Aug 19, 2018

Expected behavior

Given a clojure-mode buffer.
Given we have no project.clj
When running cider-jack-in
Then we are connected to an empty standard Clojure REPL

Actual behavior

We are instead greeted with the following error: user-error: The clojure executable isn’t on your ‘exec-path’, and cider does not start a repl and does not jack-in.

Steps to reproduce the problem

C-x b into a new buffer.
M-x clojure-mode to switch major mode to clojure.
M-x cider-jack-in

Environment & Version information

0.300.0@26.1 (spacemacs)

CIDER version information

CIDER 0.18.0-snapshot

Lein/Boot version

Emacs version

26.1

Operating system

Windows 10

@dpsutton
Copy link
Contributor

dpsutton commented Aug 19, 2018

hi @didibus this seems most likely a problem with your setup. I think a simple remedy is to add lein to your path. You can do this inside of emacs as well with

(add-to-list 'exec-path "lein/path")

@bbatsov
Copy link
Member

bbatsov commented Aug 19, 2018

The actual problem here is different - since CIDER 0.17 repls outside projects are started using clojure ... instead of lein repl. But I don't think that the clojure script is present on Windows, so we should probably make the default command selection a bit smarted and check if clojure is present, falling back to lein.

@didibus
Copy link
Author

didibus commented Aug 20, 2018 via email

@4lph4-Ph4un
Copy link

Hi! As the windows support for clj is looming and I've started to work on few projects that unfortunately are scafolded around clj instead of lein, what's the stat with this?

I seem to have similar issue to above, which I believe is rooted into to the fact that current windows clj is mainly run through PowerShell. Any suggestions for some workarounds for the time being?

https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants