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
wsl blocked visual studio 2022 cmake project #11482
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging |
/question |
Diagnostic information
|
Thank you @vsdownloader: This is by design since WSL is not part of the Windows image anymore. Running wsl --install should solve the issue for you. |
but i do not need wsl ,because it will affect my vmware workstation wsl needs hyperv which conflict with vmware workstation , and hyperv can't satisfy my usage |
Thanks for posting. I've contacted the Visual Studio team and they are looking at a fix for this behavior. This is due to the new WSL UX around prompting the user to install WSL that is present in new Windows builds. |
Windows Version
Microsoft Windows [Version 10.0.26100.1]
WSL Version
not installed
Are you using WSL 1 or WSL 2?
Kernel Version
not installed
Distro Version
no distro
Other Software
No response
Repro Steps
wsl-hangup-vs2022.mp4
new windows system , install visual studio 2022 17.9.6
disable wsl on system
then run wsl.exe -l -v , it will wait 60 seconds to exit
use vs2022 to create cmake project ,then vs2022 will block because it will launch 'wsl -l -v' to enum distributions installed on the system , but wsl will not exit in 60 seconds .
C:\Users\bob>wsl -l -v
The Windows Subsystem for Linux is not installed. You can install by running 'wsl.exe --install'.
For more information please visit https://aka.ms/wslinstall
Press any key to install Windows Subsystem for Linux.
Press CTRL-C or close this window to cancel.
This prompt will time out in 60 seconds.
Expected Behavior
when no distributions installed on system , run wsl -l -v exit as soon as possible, not block visual studio
Actual Behavior
C:\Users\vsdow>wsl -l -v
The Windows Subsystem for Linux is not installed. You can install by running 'wsl.exe --install'.
For more information please visit https://aka.ms/wslinstall
Press any key to install Windows Subsystem for Linux.
Press CTRL-C or close this window to cancel.
This prompt will time out in 60 seconds.
Diagnostic Logs
C:\Users\vsdow>wsl -l -v
The Windows Subsystem for Linux is not installed. You can install by running 'wsl.exe --install'.
For more information please visit https://aka.ms/wslinstall
Press any key to install Windows Subsystem for Linux.
Press CTRL-C or close this window to cancel.
This prompt will time out in 60 seconds.
The text was updated successfully, but these errors were encountered: