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

Explore support for developing on WSL #63155

Closed
kieferrm opened this issue Nov 14, 2018 · 19 comments
Closed

Explore support for developing on WSL #63155

kieferrm opened this issue Nov 14, 2018 · 19 comments
Assignees
Labels
plan-item VS Code - planned item for upcoming
Milestone

Comments

@kieferrm
Copy link
Member

WSL allows you to run linux program on Windows. We are looking into providing support for working with WSL when Code runs on Windows. This is related to #29194.

Other related items are:

Here is the query of all open issues labeled with WSL: query

@jsynowiec
Copy link
Contributor

Just a heads-up, for reference, most JetBrains IDEs now support WSL interpreters without the remote-interpreter-over-ssh workaround. It's available in PyCharm 2018.3, RubyMine 2017.3, WebStorm 2018.2.

@uishon
Copy link

uishon commented Nov 22, 2018

Just a heads-up, for reference, most JetBrains IDEs now support WSL interpreters without the remote-interpreter-over-ssh workaround. It's available in PyCharm 2018.3, RubyMine 2017.3, WebStorm 2018.2.

As for JetBrains IDEs, it's true and nice but as for Python (PyCharm), virtualenvs are not supported so at least for me, this makes this feature useless. Unfortunately.

@helioascorreia
Copy link

Yes, a totally agree with uishon. Vscode is from windows and now the python package too (and the top downloaded package). I think they should focus more on getting the best integration between vscode, python and WSL.
When I'm doing Django development on windows, I need to use wsl because I got some bugs on translations and channels for example. If I use that, I can't set the python linter for vscode.
The fix I needed to do was have two virtualenvs, one for windows and another to WSL.

@offero
Copy link

offero commented Nov 29, 2018

Does debugging through docker work on Windows?

@benc-uk
Copy link

benc-uk commented Dec 27, 2018

Oh god yes!
I need this. The integration today is non-existent, and actually causes a lot of problems (e.g. multiple git commits).

Support for WSL git as the main source control, but also critical for language extensions (Node, Dotnet, Python, Go).
The lack of support currently means I have to have SDKs for all languages installed under both Windows and WSL

Also tasks and debug also need to be aware of WSL, with path translations and locating binaries. Trying to get a set of clean launch configs that work on any developer's system is impossible

@samirbr
Copy link

samirbr commented Jan 28, 2019

A simple suggestion: the integration should be simple as reference WSL commands and paths using a WSL schema: wsl://<path>.
Example:

wsl://usr/bin/python

@offero
Copy link

offero commented Jan 30, 2019

A simple suggestion: the integration should be simple as reference WSL commands and paths using a WSL schema: wsl://<path>.
Example:

wsl://usr/bin/python

That seems very useful. One caveat is that people may have multiple WSL environments installed, so there should be a way to set which one should be used.

@bardware
Copy link

people may have multiple WSL environments installed

You call wsl.exe and get one wsl environment. Every other Linux has to be started by bash.exe or something.
https://docs.microsoft.com/en-us/windows/wsl/wsl-config

@samirbr
Copy link

samirbr commented Jan 30, 2019

A simple suggestion: the integration should be simple as reference WSL commands and paths using a WSL schema: wsl://<path>.
Example:

wsl://usr/bin/python

That seems very useful. One caveat is that people may have multiple WSL environments installed, so there should be a way to set which one should be used.

Maybe use wsl+<environment>://<path>.
Example:

wsl+ubuntu://usr/bin/python

@benc-uk
Copy link

benc-uk commented Jan 30, 2019

The wsl:// schema idea is a neat idea, but I don't know if the integration needs to go deeper? E.g. The major language extensions (Python, Go, Node, C#) need to be aware of WSL too

@clouds56
Copy link

clouds56 commented Feb 3, 2019

Also the filenames and project folder would need transform before passing into wsl
e.g. C:\your\workspace -> /mnt/c/your/workspace
when using wsl:// schema

@benc-uk
Copy link

benc-uk commented Feb 28, 2019

Shame that every month this moves out another month. I wouldn't mind but some news on progress, what is being worked on/investigated would give us WSL users some hope! 😁

@dscho
Copy link
Member

dscho commented Feb 28, 2019

Have you gentle people seen this announcement about the next Windows feature update and \\wsl$? I think this might neatly solve the problem, but of course, I do not have that Windows version yet, so I can't say for sure.

@kavdev
Copy link

kavdev commented Mar 1, 2019

@dscho Thanks for the heads up on that. Pretty cool, but it only enables you to interact with wsl files. There still needs to be more work on having the vscode instance be able to work with linux binaries, unless I'm missing something.

I tried setting git.path to \\wsl$\Ubuntu\usr\bin\git (technically \\\\wsl$\\Ubuntu\\usr\\bin\\git in settings.json) to no avail

@dscho
Copy link
Member

dscho commented Mar 1, 2019

I tried setting git.path to \\wsl$\Ubuntu\usr\bin\git

Why not using wsl git?

C:\>wsl git version
git version 2.7.4

@kavdev
Copy link

kavdev commented Mar 1, 2019

Why not using wsl git?

@dscho I was just using the git executable as an example. I appreciate the willingness to help, but I want to avoid taking this thread off-topic; see #9502 on why that solution doesn't work

@Yablon
Copy link

Yablon commented Mar 15, 2019

Oh I think the wsl based vscode is really needed. If the wsl python interpreter and remote python interpreter(I don't know if this will be surpported) is surpported in vscode, I will change my IDE from Pycharm to VsCode.

@alexdima alexdima modified the milestones: March 2019, April 2019 Mar 27, 2019
@kowalski7cc
Copy link

A simple suggestion: the integration should be simple as reference WSL commands and paths using a WSL schema: wsl://<path>.
Example:

wsl://usr/bin/python

That seems very useful. One caveat is that people may have multiple WSL environments installed, so there should be a way to set which one should be used.

Maybe use wsl+<environment>://<path>.
Example:

wsl+ubuntu://usr/bin/python

I think it would be better a thing like wsl://ubuntu/ or wsl-distro://ubuntu/ and wsl:// referring to default distro

@Tyriar
Copy link
Member

Tyriar commented May 2, 2019

We just announced remote development with VS Code, check out the blog post for details https://code.visualstudio.com/blogs/2019/05/02/remote-development

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
plan-item VS Code - planned item for upcoming
Projects
None yet
Development

No branches or pull requests