Skip to content

Explore support for developing on WSL #63155

Description

@kieferrm

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

Activity

  1. jsynowiec commented on Nov 22, 2018

    @jsynowiec
    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.

  2. uishon commented on Nov 22, 2018

    @uishon

    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.

  3. helioascorreia commented on Nov 23, 2018

    @helioascorreia

    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.

  4. offero commented on Nov 29, 2018

    @offero

    Does debugging through docker work on Windows?

  5. benc-uk commented on Dec 27, 2018

    @benc-uk

    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

  6. samirbr commented on Jan 28, 2019

    @samirbr

    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
    
  7. offero commented on Jan 30, 2019

    @offero

    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.

  8. bardware commented on Jan 30, 2019

    @bardware

    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

  9. 2 remaining items

  10. clouds56 commented on Feb 3, 2019

    @clouds56

    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

  11. benc-uk commented on Feb 28, 2019

    @benc-uk

    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! 😁

  12. dscho commented on Feb 28, 2019

    @dscho
    Member

    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.

  13. kavdev commented on Mar 1, 2019

    @kavdev

    Johannes Schindelin (@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

  14. dscho commented on Mar 1, 2019

    @dscho
    Member

    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
    
  15. kavdev commented on Mar 1, 2019

    @kavdev

    Why not using wsl git?

    Johannes Schindelin (@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

  16. Yablon commented on Mar 15, 2019

    @Yablon

    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.

  17. kowalski7cc commented on Apr 29, 2019

    @kowalski7cc

    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

  18. Tyriar commented on May 2, 2019

    @Tyriar
    Contributor

    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

  19. locked and limited conversation to collaborators on Jun 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

plan-itemVS Code - planned item for upcoming

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions