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

VS code unable to open from WSL2 command line. Remote-WSL 0.44.5 extension bug #3627

Closed
yanbin-pan opened this issue Sep 2, 2020 · 8 comments
Assignees
Labels
wsl Issue in vscode-remote WSL

Comments

@yanbin-pan
Copy link

yanbin-pan commented Sep 2, 2020

  • VSCode Version: 1.48.2
  • Local OS Version: Windows 2004
  • Remote OS Version: Ubuntu18.04
  • Remote Extension/Connection Type: WSL2

Steps to Reproduce:

  1. Update to remote- wsl extension 0.44.5
  2. use the command >> code .
  3. Error is thrown and VSCode does not launch

To solve this problem I downgraded my Remote - WSL extension to version 0.44.4 .
This can be done from VSCode in the extension properties where a list of all available versions are displayed.

Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes/No

@yanbin-pan yanbin-pan changed the title VS code unable to open from WSL2 command line VS code unable to open from WSL2 command line. Remote-WSL 0.44.5 extension bug Sep 2, 2020
@github-actions github-actions bot added the wsl Issue in vscode-remote WSL label Sep 2, 2020
@jaimelr
Copy link

jaimelr commented Sep 3, 2020

I have the same issue with version 0.44.5 and WSL2. Downgrading to 0.44.4 also solved the problem.

@aeschli
Copy link
Contributor

aeschli commented Sep 4, 2020

@yanbin-pan @jaimelr What error do you get?

0.44.5 only has documentation changes, so I'm a bit puzzled...

@jaimelr
Copy link

jaimelr commented Sep 4, 2020

Hi @aeschli I updated again the version to 0.44.5 and now it's working correctly. The error I was getting was: WSL resolver response: ::1:43329. Perhaps this was a blinky or an error related to my machine state.

@yanbin-pan
Copy link
Author

@yanbin-pan @jaimelr What error do you get?

0.44.5 only has documentation changes, so I'm a bit puzzled...

@aeschli The error was related to WSL looking for VScode in the old 0.44.4 path instead of 0.44.5 the path was not updated to match the new version. But I think this has been solved as I have now updated to 0.44.5 and I can launch VS code.

@barasimumatik
Copy link

I'm just posting this here in case there is something more to this error.
The only difference with @yanbin-pan is that I use Debian 10.

I have tried to downgrade the extension and then upgrade it again, but in my case it doesn't work, and I get another error message:

<3>init: (1160) ERROR: UtilConnectToInteropServer:300: connect failed 2

@aeschli
Copy link
Contributor

aeschli commented Sep 8, 2020

@barasimumatik This sounds like a WSL issue. Maybe microsoft/WSL#5065 ?

@barasimumatik
Copy link

@aeschli Thank you! After having a look at that issue I found out that the error was related to a stale environment variable due to some bad scripting on my end 😅

@aeschli
Copy link
Contributor

aeschli commented Sep 9, 2020

Closing the issue as the 0.44.5 release seems fine. Not sure what exactly caused this. I would need reproducible steps.

@aeschli aeschli closed this as completed Sep 9, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
wsl Issue in vscode-remote WSL
Projects
None yet
Development

No branches or pull requests

4 participants