Sublime Text 3 - 出现错误时停止打印 shell cmd、dir 和 path

Sublime Text 3 - Stop printing shell cmd, dir and path when error is raised

我希望我的 Sublime Text 不会在我的代码每次抛出错误时打印出以下额外信息。

参见下面的示例 - 我不需要看到我的 shell_cmd、目录或要打印的路径,只是为了清楚起见!

我一直在寻找解决方案,但似乎找不到有效的解决方案。

非常感谢您的任何反馈!

您可以使用 PackageResourceViewer 编辑 python 构建系统。只需在 Python/Python.sublime-build 中打开构建系统并添加属性 "quiet": true,.

生成的构建系统应该如下所示:

{
    "shell_cmd": "python -u \"$file\"",
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python",
    "quiet": true,

    "variants":
    [
        {
            "name": "Syntax Check",
            "shell_cmd": "python -m py_compile \"${file}\"",
        }
    ]
}

然而,这也会抑制其他输出,如持续时间。