-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Windows Terminal installed to Windows Server 2022 via Windows Package Manager (winget) cannot open Windows Subsystem for Linux #15603
Comments
There are multiple other issues with the same failure code. See here:
Do the comments in any of these solve your issue? |
Thanks-- will report back
Edit: Unfortunately, none of this appeared to resolve. |
This bug from the WSL repo seems like it might be related (same error code and version of windows server). |
Could be related. FWIW, WSL works fine outside of Windows Terminal from default shell launcher. |
Really! Okay, this is going to sound crazy... but can you change the commandline of your WSL profile from |
@branpurn got back to me over e-mail, as they were unable to comment here due to our interaction limits. Below, for posterity:
...and my reply:
So, this is an unexpected interplay between WT's automatic starting directory promotion and WSL's relative outdatedness on Windows Server 2022. As a bit of stage-setting: WT wants to support starting directories that are not Windows paths when you're launching a WSL profile, so that you can set one to start in To do that, WT takes your starting directory and yeets it into the command line directly. This moves the responsibility for parsing it over into WSL, so In effect, we transform a profile that looks like this:
into this:
It just so happens that the version of WSL that was inbox with Server 2022 does not support Adding Fixes
Number 2 precludes you from having profiles that start in |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
1 similar comment
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Windows Terminal version
1.17.11461.0
Windows build number
10.0.20348.0
Other Software
Steps to reproduce
Expected Behavior
Debian would launch with immediate access to bash prompt
Actual Behavior
The following error appears:
The text was updated successfully, but these errors were encountered: