microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.22k stars 28.06k forks source link

Can't open files in WSL: The editor could not be opened due to an unexpected error #172107

Closed fc-amiggi closed 1 year ago

fc-amiggi commented 1 year ago

Type: Bug

I can no longer open any files inside of WSL. In the status bar in the lower left, I see "Disconnected from WSL" and while I see the directory I opened VSCode from in the tree (with no open/close widget and nothing under it), when I click on the dir name I get a pop-up saying "Unable to open " unable to resolve resource vscode-remote://

VS Code version: Code - Insiders 1.75.0-insider (f1b09237cd400d92987cf7a9681995e8011ef54c, 2023-01-23T11:53:59.088Z) OS version: Windows_NT x64 10.0.22621 Modes: Restricted Sandboxed: Yes Connection to 'WSL: Debian' could not be established No remote extension installed to resolve wsl.

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz (16 x 2304)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|31.73GB (20.85GB free)| |Process Argv|--folder-uri=vscode-remote://wsl+Debian/home/forrcaho/Amiggi/MetroNet/account-management-api --remote=wsl+Debian --crash-reporter-id 3d6bfcde-d3d0-4831-bc4c-120c572626da| |Screen Reader|no| |VM|0%| Connection to 'WSL: Debian' could not be established No remote extension installed to resolve wsl.
Extensions: none
fc-amiggi commented 1 year ago

Fortunately, this is only a problem with Insiders.

tomaxsas commented 1 year ago

here is issue: https://github.com/microsoft/vscode-remote-release/issues/7891

aeschli commented 1 year ago

duplicate of https://github.com/microsoft/vscode-remote-release/issues/7891, fix is out