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

Cannot start REPL #20

Open
georgepsarakis opened this issue Aug 15, 2018 · 4 comments
Open

Cannot start REPL #20

georgepsarakis opened this issue Aug 15, 2018 · 4 comments

Comments

@georgepsarakis
Copy link

Hello and thanks for this nice plugin!

I have encountered a problem while trying to start the REPL, either via the shortcut (Ctrl + Enter) or from the menu Tools -> Clojure -> Start REPL.

Although Leiningen is installed and lein is accessible as an executable, I am getting an error similar to the following:

Cannot run <PROJECT NAME> REPL "lein" not found (working directory <PROJECT DIRECTORY>): error=2 No such file or directory

I have taken a look at the source code but could not find any visible issue.

Is there any additional configuration required for Leiningen specifically?

@gregsh
Copy link
Owner

gregsh commented Sep 6, 2018

Hi George!
Do you have lein installed and in a search path, i.e. can you run lein in a terminal?
Also what OS do you use?

I have taken a look at the source code but could not find any visible issue.

So is the lein executable is found on that line?

@georgepsarakis
Copy link
Author

Hello @gregsh . I am using Debian 8.

I can run lein commands (lein test, lein repl etc) on the terminal without any issue.

I am not sure how else I can help you debug this, please let me know if you need further information.

@alonisser
Copy link

Same problem for me, with ubuntu 18.04 any workaround for this?

@jeshan
Copy link

jeshan commented Aug 10, 2019

Looks like it doesn't scan whole $PATH. Try moving lein to either of:

  • /usr/local/bin
  • /usr/bin

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