【问题标题】:Unable to Run Build Task (Ctrl Shift B) in VSCode无法在 VSCode 中运行构建任务(Ctrl Shift B)
【发布时间】:2017-10-06 20:09:12
【问题描述】:

在 Visual Studio Code 中,我设置了以下构建任务 (tasks.json),它一直工作到今天。

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "tsc",
"isShellCommand": true,
"args": ["-p", "."],
"showOutput": "always",
"problemMatcher": "$tsc"
}

我确实将 VSCode 升级到 1.12.1,所以我想知道升级是否是它不再起作用的原因。基本上现在当我按下 Ctrl Shift B 时,什么也没有发生。通常在底部显示一个旋转图标,然后在任务输出中显示错误。现在什么也没有发生。我仍然可以成功构建命令(tsc -p。)

【问题讨论】:

    标签: visual-studio-code


    【解决方案1】:

    这是我配置 VS Code 的方式:

    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",
                "command": "python",
                "group": {
                    "kind": "build",
                    "isDefault": true
                },
                "args": [
                    "setup.py",
                    "install"
                ],
                "presentation": {
                    "echo": true,
                    "panel": "shared",
                    "focus": true
                }
            }
        ]
    }
    

    【讨论】:

      【解决方案2】:

      在我升级了 Visual Studio Team Services 扩展后,这个问题就消失了。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-06-29
        • 2017-09-07
        • 1970-01-01
        • 2022-01-12
        • 1970-01-01
        • 2020-06-29
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多