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

Auto-detect WSL use #2882

Closed
mmeier opened this issue Dec 17, 2021 · 3 comments
Closed

Auto-detect WSL use #2882

mmeier opened this issue Dec 17, 2021 · 3 comments

Comments

@mmeier
Copy link

mmeier commented Dec 17, 2021

Feature Request

Auto-detect WSL use.

Explanation

I ran into configuration trouble which was solved here: #2876

I've been using JetBrains IDE's with WSL for a while, and the integration has been pretty seamless. I found the "Use WSL" odd. But I located the node binary file with the provided browse button, and it filled the textbox with the standard \\wsl$\<Version> prefix.

The rest of JetBrains appears to use this prefix to determine if it is running against WSL or not. The fact that I have to check a "Use WSL" option, and also modify the path pre-filled by the browse button in the UI is unintuitive and I found it frustrating. Once the issue was pointed out it was clear in hindsight, but it's inconsistent with how the rest of the IDE seems to integrate with WSL.

In the example pointed out in the linked issue I would expect a node path of //wsl$/Ubuntu/home/marcus/.nvm/versions/node/v16.13.0/bin/node to be equivalent to /home/marcus/.nvm/versions/node/v16.13.0/bin/node with WSL set to yes.

@smcenlly
Copy link
Member

Wallaby for IntelliJ v1.0.241+ now automatically sets WSL to true if the node path contains wsl$.

@VildanJS
Copy link

Hi,
WSL auto seted on, but WebStorm does't find Node by path that includs //wsl$/Ubuntu
Works only /home/{profile}/.nvm/versions/node/v16.13.0/bin/node

@smcenlly
Copy link
Member

Sorry - we had misunderstood your original request. Wallaby will now change:

//wsl$/Ubuntu/home/marcus/.nvm/versions/node/v16.13.0/bin/node

to

/home/marcus/.nvm/versions/node/v16.13.0/bin/node

when it runs your code.

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

3 participants