Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I would like my Sublime Text to NOT print out the following extra info everytime my code throws an error.

See below for example - I do not need to see my shell_cmd, dir, or path to be printed out, just for clarity!

enter image description here

I have looked for a soloution but cannot seem to find one which works.

Many Thanks for any feedback!

like image 955
Luke.py Avatar asked Aug 10 '16 09:08

Luke.py


1 Answers

You can edit the python build system using PackageResourceViewer. Just open the build system in Python/Python.sublime-build and add the attribute "quiet": true,.

The resulting build system should look like:

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

However this will also suppress other outputs like the duration.

like image 146
r-stein Avatar answered Nov 10 '22 03:11

r-stein