-
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
WSL with systemd: Cannot open VSCode from WSL terminal #179252
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.77.0. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
Re-tested with v1.77.0: same behavior |
Can you run |
|
I assume you are a user of the WSL extension, correct? The script could not find the location of the WSL extension. So it tried to open the mounted folder locally from the windows side, which ran into some strange error.
|
Ah sorry, the command to run in the WSL terminal is: |
It outputs: |
I'll do some more testing on a different machine to see if I can reproduce. |
It seems to be related to this issue: microsoft/WSL#8843 |
Thanks for finding the related issue! Closing the issue here. |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
code .
Expected behavior:
VSCode opens with the current directory
Actual behavior:
VSCode doesn't open and shows the following output:
When trying to launch VSCode without any arguments, it doesn't output anything in the terminal, but it also doesn't start VSCode.
With systemd disabled in WSL, everything works as expected. So it must have something todo with the way the WSL environment is started.
Not sure if this is an issue with VSCode or WSL.
The text was updated successfully, but these errors were encountered: