Microsoft/vscode
在 GitHub 查看Terminal fails to launch on Task Rerun with "A native exception occurred during launch (args as a string is not supported on unix.)."
Open
#213,928 创建于 2024年5月30日
bughelp wantedtasks
描述
Does this issue occur when all extensions are disabled?: YES
Version: 1.89.1 (user setup) Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685 Date: 2024-05-07T05:13:33.891Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Windows_NT x64 10.0.22631
Steps to Reproduce:
- Tasks: Run Task with a
pickStringinput - Tasks: Rerun Last Task 2-3 times
- Terminal launch fails
Error is:
* The terminal process "/usr/bin/bash '-c', 'IFS=: read -r config variant <<< config_b:variant_a && build $config $variant'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
* Executing task in folder firmware: IFS=':' read -r config variant <<< config_b:variant_a && build $config $variant
* The terminal process failed to launch: A native exception occurred during launch (args as a string is not supported on unix.).
Logs:
My tasks.json:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build config/variant",
"type": "shell",
"group": "build",
"command": "IFS=: read -r config variant<<< ${input:pickConfig} && build $config $variant",
"runOptions": {
"reevaluateOnRerun": false,
},
"problemMatcher": [
"$gcc"
],
}
],
"inputs": [
{
"id": "pickConfig",
"type": "pickString",
"description": "Pick the build config/variant",
"options": [
"config_a:variant_a",
"config_b:variant_a",
"config_c:variant_a",
"config_d:variant_b",
"config_e:variant_b",
"config_f:variant_b",
]
},
]
}