-
Notifications
You must be signed in to change notification settings - Fork 37.5k
Closed as duplicate of#275011
Labels
WSLIssue when using WSLIssue when using WSLbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugterminal-processProblems launching processes, managing ptys, exiting, process leaks, etc.Problems launching processes, managing ptys, exiting, process leaks, etc.
Description
Does this issue occur when all extensions are disabled?: N/A
- VS Code Version: 1.106.0
- OS Version: Local: Windows_NT x64 10.26100
Steps to Reproduce:
- Use VS Code on Windows to remotely connect to a Linux device.
- On the device, have following tasks in the workspace:
{
"label": "Initialize launch.json",
"type": "shell",
"windows": {
"command": "if (! (Test-Path \\\".vscode/launch.json\\\" -PathType Leaf)) { Copy-Item \\\".vscode/launch.json.windows\\\" -Destination \\\".vscode/launch.json\\\" }",
},
"linux": {
"command": "if [ ! -f .vscode/launch.json ]; then cp .vscode/launch.json.linux .vscode/launch.json; fi",
},
"group": "none",
"presentation": {
"reveal": "never",
"revealProblems": "onProblem",
"close": true,
"panel": "dedicated"
},
"runOptions": {
"runOn": "folderOpen"
},
"problemMatcher": []
},
- Open the workspace
- Notice the task keeps hanging, following notifications appears;
The terminal process failed to launch: Cannot launch a terminal process in an untrusted workspace with cwd \workspaces and userHome \home\coder.
- Note that the path separators are using
\instead of/
Enabling trace logging gives the following in terminal:
2025-11-17 11:01:17.549 [trace] [91b0b07] terminalMultiLineLinkDetector#detect text [" * Executing task: if [ ! -f .vscode/launch.json ]; then cp .vscode/launch.json.linux .vscode/launch.json; fi "]
2025-11-17 11:01:17.550 [trace] [91b0b07] terminalLocalLinkDetector#detect text [" * Executing task: if [ ! -f .vscode/launch.json ]; then cp .vscode/launch.json.linux .vscode/launch.json; fi "]
2025-11-17 11:01:17.551 [trace] [91b0b07] terminalLocalLinkDetector#detect parsedLinks [[{"path":{"index":30,"text":".vscode/launch.json"}},{"path":{"index":61,"text":".vscode/launch.json.linux"}},{"path":{"index":87,"text":".vscode/launch.json"}}]]
2025-11-17 11:01:17.551 [trace] [91b0b07] terminalLinkHelpers#updateLinkWithRelativeCwd cwd ["\\workspaces"]
2025-11-17 11:01:17.552 [trace] [91b0b07] terminalLocalLinkDetector#detect linkCandidates [["/WINDOWS/system32/\\workspaces/.vscode/launch.json"]]
2025-11-17 11:01:17.553 [trace] [91b0b07] terminalUriLinkDetector#detect computedLinks [[]]
2025-11-17 11:01:17.609 [trace] [91b0b07] terminalLinkHelpers#updateLinkWithRelativeCwd cwd ["\\workspaces"]
2025-11-17 11:01:17.610 [trace] [91b0b07] terminalLocalLinkDetector#detect linkCandidates [["/WINDOWS/system32/\\workspaces/.vscode/launch.json.linux"]]
2025-11-17 11:01:17.668 [trace] [91b0b07] terminalLinkHelpers#updateLinkWithRelativeCwd cwd ["\\workspaces"]
2025-11-17 11:01:17.669 [trace] [91b0b07] terminalLocalLinkDetector#detect linkCandidates [["/WINDOWS/system32/\\workspaces/.vscode/launch.json"]]
Metadata
Metadata
Assignees
Labels
WSLIssue when using WSLIssue when using WSLbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugterminal-processProblems launching processes, managing ptys, exiting, process leaks, etc.Problems launching processes, managing ptys, exiting, process leaks, etc.