Microsoft/vscode

Terminal fails to launch on Task Rerun with "A native exception occurred during launch (args as a string is not supported on unix.)."

开放

#213,928 创建于 2024年5月30日

 (3 条评论) (0 个反应) (1 位负责人)TypeScript (39,847 个派生)batch import
bughelp wantedtasks

仓库指标

星标
 (184,936 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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:

  1. Tasks: Run Task with a pickString input
  2. Tasks: Rerun Last Task 2-3 times
  3. 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:

terminal.log remoteagent.log

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",
            ]
        },
    ]
}

贡献者指南