-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
VSCode doesn't make level of Windows Subsystem for Linux integration support (or lack thereof) clear #39144
Comments
@sgharms You've seen this? Make sure to set the |
@weinand Thank you so much for the prompt reply. Let me try to document my steps here. Processing: https://code.visualstudio.com/updates/v1_17#_first-steps-towards-wsl-support
Configurations added here are locally sourced! 💯 For future reference, here was the content: {
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch in WSL (local config)",
"useWSL": true,
"program": "${workspaceFolder}/app.js"
},
// Add another configuration that stands out by referencing an episode of "The Sopranos."
{
"type": "node",
"request": "launch",
"name": "Launch with Joey Pepitone magic",
"useWSL": true,
"program": "${workspaceFolder}/app.js"
}
]
} With this change, I'm good. @weinand, you pointed me in the right direction, but this information, seems buried in these milestone notes. I'll propose a PR in the |
@sgharms sorry for only referring to the incremental documentation of WSL in the release notes. I was assuming that you are following our monthly release notes and only need "the deltas". |
@weinand Noted. I'd like to make this easier to find in the docs insofar as "debug my node app" is not an obvious equivalence to "I want to use a remote debugger" for many people coming from other editors. Would it be correct to derive from this that we will have to see this modification for each language environment e.g. Python will need to integrate a similar change in pythonVSCode, for example and if I wanted to open an issue for lack of WSL integration that would be the correct project to do it in? |
Please be assured that we are working on a general solution to WSL. The |
This seems a sensible path forward. I'll start tracking the updates waiting for the joyous diff wherein Python can be used in the WSL layer. Thanks for helping define an official stance that can be readily communicated and understood. |
I'd like to chime in regarding Python (and Go, and Java, and even .NET Core) on WSL. All my deployments run on Linux machines, and WSL is the way I am productive in Windows, so having Code work natively with WSL is essential. |
First, let me say I'm over the moon with the current state of Microsoft: VSCode, the WSL, etc. You all are doing fantastic work.
That said, I would like to see Windows become a development platform that embraces "full stack developers" coming from OSX or Linux and makes their transition simple. At present, using Windows 10 + WSL + VSCode together has some glaring issues for simple use patterns that make VSCode easier to use on OSX than on Windows 10. By hitting these basic issues so hard so quickly, I think VSCode may not have the chance to reach the many it could. Here's my problem:
The challenge here is: Write Hello World In JavaScript (node) and Run It (Using WSL-originated install of node within Ubuntu). While having reported this question at Stack Overflow several days ago, there is not yet a single reply. I'm surprised to find such a mute audience or that this question hasn't been asked before. The introductory development documentation and video seems to assume that developers are using Windows terminals only.
To the extent that the WSL is now available, I'd like to be able to use it with VS code and have, effectively, the same development experience I have in OSX. Write code in an editor, drop to the shell to run complex
git
commands,cat
some output that I open up in the editor, etc. In short, the integration between code and the (wsl) shell still feels "gappy" or non-integrated.Could I get some official guidance on what the roadmap is or what the integration expectation is?
Steps to Reproduce:
Hrm. OK. I'm prompted to open up launch.json or close.
So I thought as a workaround to try adding an alias for node to nodejs.
I restarted VS Code, tried the same process, same failure.
I then tried a symlink between /usr/bin/node to /usr/bin/nodejs. Same error.
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: