You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the distro in any way (using wsl command in powershell, or using the Windows Terminal)
launch VSCode from Ubuntu using the instruction code .bash
close vscode
In a powershell terminal run dir \\wsl.localhost\Ubuntu-20.04
It takes a while to replicate the issue, but for sure is related to the use of VSCode.
Expected Behavior
It should return the directory of the Ubuntu system rootfs
Actual Behavior
Powershell becomes irresponsive. It is impossible to cancel the command using Ctrl+C or Ctrl-Z
Same happens when trying to open it using explorer.exe or VSCode.
Sadly I am experiencing that issue quite often. After a number of opening and closing files using vscode from WSL, the interop between Windows and WSL fails. At this time the Ubuntu 20.04 distro, installed from Microsoft Store, can't be accessed from Windows. However, WSL can access /mnt/c/ mount point without issue.
I also have the latest daily distro of Ubuntu 22.04 for WSL. And for my surprise, I don't have any problem with this distro.
At this time, from Windows PowerShell I can do:
ls \\wsl.localhost\Ubuntu-22.04\
But powershell hangs when doing this:
ls \\wsl.localhost\Ubuntu-20.04\
Same behavior happens when trying to access those locations with explorer.exe
wsl --shutdown doesn't fix the issue.
IP works perfectly, as I can create a webserver from WSL and access it from windows.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered:
okibcn
changed the title
Windows WSL interoperability doesn't work in Ubuntu 20.04 but works with Ubuntu 22.04 WSL developer daily release
Windows WSL interoperability doesn't work in Ubuntu 20.04 but works with Ubuntu 22.04 WSL developer daily release in the same machine
Feb 6, 2022
Version
Microsoft Windows [Version 10.0.22543.1000]
WSL Version
Kernel Version
5.10.81.1
Distro Version
Ubuntu-20.04
Other Software
VSCode 1.64.0
Repro Steps
code .bash
In a powershell terminal run
dir \\wsl.localhost\Ubuntu-20.04
It takes a while to replicate the issue, but for sure is related to the use of VSCode.
Expected Behavior
It should return the directory of the Ubuntu system rootfs
Actual Behavior
Powershell becomes irresponsive. It is impossible to cancel the command using Ctrl+C or Ctrl-Z
Same happens when trying to open it using explorer.exe or VSCode.
Sadly I am experiencing that issue quite often. After a number of opening and closing files using vscode from WSL, the interop between Windows and WSL fails. At this time the Ubuntu 20.04 distro, installed from Microsoft Store, can't be accessed from Windows. However, WSL can access /mnt/c/ mount point without issue.
I also have the latest daily distro of Ubuntu 22.04 for WSL. And for my surprise, I don't have any problem with this distro.
At this time, from Windows PowerShell I can do:
ls \\wsl.localhost\Ubuntu-22.04\
But powershell hangs when doing this:
ls \\wsl.localhost\Ubuntu-20.04\
Same behavior happens when trying to access those locations with explorer.exe
wsl --shutdown
doesn't fix the issue.IP works perfectly, as I can create a webserver from WSL and access it from windows.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: