Search code examples
pythonsublimetext3

How to disable syntax warning for the latest sublime text 3?


I have updated the latest Sublime Text 3 build (3124), but when I save the changes of python file, the warning will shown as below:

enter image description here

I installed the Python Flake8 Lint package, but the warning is never shown for old sublime version.

How to disable it?


Solution

  • Disable the show_panel_on_save setting by setting it to "never".

    Menu > Preferences > Package Settings > SublimeLinter > Settings

    Or use the Command Palette: Ctrl+Shift+P and select: Preferences: SublimeLinter Settings

    {
        // Show the output panel on save if there are problems.
        // - window: check if the window has problems.
        // - view: only check the current file.
        // - never: disable this feature.
        "show_panel_on_save": "never"
    } 
    

    Older versions of SublimeLinter

    Disable the show_errors_on_save setting.

    Menu > Preferences > Package Settings > SublimeLinter > Settings

    {
        // This setting determines if a Quick Panel with all errors is   
        // displayed when a file is saved. The default value is false.
        "show_errors_on_save": false
    }
    

    Or use the Command Palette to disable it:

    1. Open the Command Palette: Ctrl+Shift+P
    2. Select: SublimeLinter: Don't Show Errors on Save
    3. Done!