Sublime Forum

How do I ignore warning messages of the pop-up window?

#1

So I get this annoying warning messages while coding in python, I know they are meant to be there to ease on reading the code and aesthetics in generally, but they underline everything with a yellow line and box some of the lines, how do I make it disappear? just the warning messages, not the invalid syntax ones too.

thank you.

0 Likes

#2

That is not built-in functionality. Do you have a linting package installed?

0 Likes

#3

Yes I do, I have LSP & Jedi installed.

0 Likes

#4

Open the command palette and run Preferences: LSP. Then add this to your user preferences:

"auto_show_diagnostics_panel": false,
0 Likes

#5

I see now that you only want to show errors. In that case I believe this setting should work for you:

  // Show the diagnostics with level less than or equal to
  // the given value.
  // error: 1
  // warning: 2
  // info: 3
  // hint: 4
  "show_diagnostics_severity_level": 1,
0 Likes

#6

thank you for the help but it doesnt work, this is how it looks in the settings in case i did something wrong

0 Likes

#7

@imso3k as it turns out, the fact that it doesn’t work was a bug, but was fixed recently: https://github.com/tomv564/LSP/pull/457. However, it has not yet landed on package control. There are a couple other fixes that are waiting to be merged before a release.

0 Likes