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

WSL2 2.0.4 Pre-release isn't working with "Connect to WSL" #195757

Closed
pocesar opened this issue Oct 17, 2023 · 4 comments
Closed

WSL2 2.0.4 Pre-release isn't working with "Connect to WSL" #195757

pocesar opened this issue Oct 17, 2023 · 4 comments
Assignees
Labels
WSL Issue when using WSL

Comments

@pocesar
Copy link

pocesar commented Oct 17, 2023

Does this issue occur when all extensions are disabled?: Yes/No

Version: 1.84.0-insider (user setup)
Commit: 0c36b92
Date: 2023-10-16T05:35:39.577Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.22621

Steps to Reproduce:

  1. Install WSL 2.0.4
  2. Open insiders
  3. Connect to WSL

The editor gets stuck with "Opening remote..."
image
image

2023-10-17 01:08:25.906 [info] [LocalProcess0][resolveAuthority(wsl,1)][338ms] invoking...
2023-10-17 01:08:26.834 [info] [LocalProcess0][resolveAuthority(wsl,1)][1266ms] returned WebSocket(127.0.0.1:21102)
2023-10-17 01:08:26.834 [info] resolveAuthority(wsl) returned 'WebSocket(127.0.0.1:21102)' after 1266 ms
2023-10-17 01:08:26.880 [info] Creating a socket (renderer-Management-088b17fc-b26b-4dd5-ad0e-877a555f32a8)...
2023-10-17 01:08:26.881 [info] Creating a socket (renderer-ExtensionHost-0c3cea73-f368-4734-a253-3d8f395713c3)...
2023-10-17 01:10:40.197 [info] Creating a socket (renderer-Management-088b17fc-b26b-4dd5-ad0e-877a555f32a8) returned an error after 133316 ms.
2023-10-17 01:10:40.197 [error] CodeExpectedError: WebSocket close with status code 1006
    at WebSocket.<anonymous> (vscode-file://vscode-app/c:/Users/Paulo/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:676:3985)
2023-10-17 01:10:40.197 [error] [remote-connection][Management   ][088b1…][initial][WebSocket(127.0.0.1:21102)] socketFactory.connect() failed or timed out. Error:
2023-10-17 01:10:40.198 [error] CodeExpectedError: WebSocket close with status code 1006
    at WebSocket.<anonymous> (vscode-file://vscode-app/c:/Users/Paulo/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:676:3985)
2023-10-17 01:10:40.198 [error] [remote-connection][attempt 1] An error occurred in initial connection! Will retry... Error:
2023-10-17 01:10:40.198 [error] CodeExpectedError: WebSocket close with status code 1006
    at WebSocket.<anonymous> (vscode-file://vscode-app/c:/Users/Paulo/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:676:3985)
2023-10-17 01:10:40.199 [info] Invoking resolveAuthority(wsl)...
2023-10-17 01:10:40.199 [info] [LocalProcess0][resolveAuthority(wsl,2)][0ms] obtaining proxy...
2023-10-17 01:10:40.199 [info] [LocalProcess0][resolveAuthority(wsl,2)][1ms] invoking...
2023-10-17 01:10:40.202 [info] [LocalProcess0][resolveAuthority(wsl,2)][3ms] returned WebSocket(127.0.0.1:21102)
2023-10-17 01:10:40.202 [info] resolveAuthority(wsl) returned 'WebSocket(127.0.0.1:21102)' after 3 ms
2023-10-17 01:10:40.202 [info] Creating a socket (renderer-Management-abbea1b1-fb3a-420b-ad15-892be8a56de2)...
@aeschli aeschli added the WSL Issue when using WSL label Oct 17, 2023
@aeschli
Copy link
Contributor

aeschli commented Oct 17, 2023

I just tested that code-insiders works on WSL 2.0.4.

Anything special in the WSL log?

Maybe restart WSL with wsl --shutdown?

@pocesar
Copy link
Author

pocesar commented Oct 17, 2023

Ah, it's the networkingMode=mirrored + dnsTunneling=true that does this

@Berrysoft
Copy link

Is there any way to make vscode remote work with mirrored networking?

@aeschli
Copy link
Contributor

aeschli commented Dec 6, 2023

Duplicate of microsoft/vscode-remote-release#9222

I tested mirrored mode yesterday and it seemed to work. If you have any additional details, please comment in microsoft/vscode-remote-release#9222

@aeschli aeschli closed this as completed Dec 6, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
WSL Issue when using WSL
Projects
None yet
Development

No branches or pull requests

3 participants