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

Configure nREPL with Linux subsytem on Windows 10 #127

Open
tjb opened this issue Mar 2, 2019 · 1 comment
Open

Configure nREPL with Linux subsytem on Windows 10 #127

tjb opened this issue Mar 2, 2019 · 1 comment

Comments

@tjb
Copy link

tjb commented Mar 2, 2019

How can nREPL be configured to access lein via the linux subsystem on a windows 10 machine? Currently I get the following error

'lein' is not recognized as an internal or external command,
operable program or batch file.

which I assume is because have lein installed on the subsystem. Is there a way to configure this to use lein from my subsystem?

Apologies if I am asking in the wrong place.

@avli avli added the question label Mar 8, 2019
@avli
Copy link
Owner

avli commented Mar 8, 2019

Hello @tylerbobella,

Yes, the reason is most likely the lein command is not in your system PATH variable. I think the best way will be me adding an option to the extension that will allow a user to define the path to lein. Meanwhile, I can suggest the following workarounds:

  1. Add lein to the PATH variable (not sure it is possible because I have no experience with the Linux subsystem on the Windows platform).
  2. You can hardcode the path to lein in your clojureVSCode installation. The extension should be in the %USERPROFILE%\.vscode\extensions foder. Find the fild nreplController.js and the line nreplProcess = spawn('lein', LEIN_ARGS in it. There you can replace 'lein' with the full path to your Leiningen installation. Unfortunately, you will need to do it after each extension upgrade.

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

No branches or pull requests

2 participants