Issue Type: Bug
I get the following when I try and launch VSCode with WSL2 (all distros have the same effect)
[2020-01-20 15:02:55.544] Launching C:\WINDOWS\System32wsl.exe -d Ubuntu-18.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" d72b2d372f5024a9193b37a3830bbbc459c0ef1b insider .vscode-server-insiders 0 ' in c:\Users\gknow.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.42.1
[2020-01-20 15:02:55.634] sh: 1: /mnt/c/Users/gknow/.vscode-insiders/extensions/ms-vscode-remote.remote-wsl-0.42.1/scripts/wslServer.sh: Input/output error
[2020-01-20 15:02:55.740] VS Code Server for WSL closed unexpectedly.
VS Code version: Code - Insiders 1.42.0-insider (d72b2d372f5024a9193b37a3830bbbc459c0ef1b, 2020-01-20T05:33:26.563Z)
OS version: Windows_NT x64 10.0.19041
Fetching remote diagnostics for 'WSL: Ubuntu-18.04' failed: VS Code Server for WSL closed unexpectedly.
Check WSL terminal for more details.
System Info
|Item|Value|
|---|---|
|CPUs|Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz (40 x 2195)|
|GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|63.63GB (36.17GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|
Fetching remote diagnostics for 'WSL: Ubuntu-18.04' failed: VS Code Server for WSL closed unexpectedly.
Check WSL terminal for more details.
Extensions: none
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
that worked in my case: https://github.com/microsoft/WSL/issues/3256#issuecomment-520201785
That solving by @onurctirtir also helped me too
If this is useful, I just had the same issue, restarting wsl2 solved it. Would be good to be able to debug this further / gather more info -- what would be useful to provide, if I run into this again?
For me, it happens with every reboot of the machine. So each time I start Windows, I need to open PowerShell and do:
wsl --shutdown
wsl
Otherwise, I hit the Input/output error. Do you need some more info?
Having the same problem sometimes and I think this happens after VS Code updates, but just a hunch...
It's a WSL problem: https://github.com/microsoft/WSL/issues/4377.
Most helpful comment
For me, it happens with every reboot of the machine. So each time I start Windows, I need to open PowerShell and do:
Otherwise, I hit the
Input/output error. Do you need some more info?