pangpang
pangpang

Reputation: 8821

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?

Upvotes: 1

Views: 4709

Answers (3)

Mark K
Mark K

Reputation: 9348

Reference from https://forum.sublimetext.com/t/how-to-turn-off-the-red-error-boxes-shown-inline-in-code-when-building/23736

To add a line:

"show_errors_inline": false

enter image description here

Upvotes: 0

Gerard Roche
Gerard Roche

Reputation: 6391

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!

Upvotes: 2

Léonard
Léonard

Reputation: 2630

Check if you have Python Flake8 Lint package installed. In that case, just go to

Menu > Preferences > Package Settings > Python Flake8 Lint > Settings - User

add the following lines to the file, and save the file:

    {
        "popup": false
    }

Upvotes: 1

Related Questions