Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

[Environments reliability] WSL Creation Error: An error occurred trying to start process 'wt.exe' #3660

@bbonaby

Description

@bbonaby

Dev Home version

No response

Windows build number

No response

Other software

No response

Steps to reproduce the bug

On a fresh VM without terminal being hydrated attempt to install a WSL distribution through Dev Home's create environment flow

This accounts for 3.9% of all Wsl creation errors
 

Expected result

User is able to install a WSL distribution without error

Actual result

The user receives the following error:

An error occurred trying to start process 'wt.exe' with working directory 'C:\\Windows\\system32

Note: The terminal package on the user's computer is likely the stub version and not fully installed yet. So, wt.exe doesn’t exist in %userprofile%\AppData\Local\Microsoft\WindowsApps yet. If terminal isn’t hydrated we should fallback to cmd. The code to use wsl.exe in cmd is in the extension but not the fallback behavior. Fixing Enable launching WSL distros with the user's default terminal application · Issue #3572 · microsoft/devhome (github.com) should in turn fix this issue for us.

Included System Information

No response

Included Extensions Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions