syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.56k stars 4.9k forks source link

[low-prio] Warning (lsp-mode): Unknown notification: semgrep/rulesRefreshed #16405

Closed stradicat closed 1 month ago

stradicat commented 1 month ago

Description :octocat:

lsp-backed programming files trigger an Warning (lsp-mode): Unknown notification: semgrep/rulesRefreshed message

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: The Emacs window is split in half, in a C-x-2 fashion, with the lower window showing the *Warnings* buffer with the following message:

Warning (lsp-mode): Unknown notification: semgrep/rulesRefreshed

Expected behaviour: :heart: :smile: No window-splitting, with the message showing up in *Warnings*, or perhaps in the modeline.

System Info :computer:

fnussbaum commented 1 month ago

Warning (lsp-mode): Unknown notification: semgrep/rulesRefreshed

Expected behaviour: ❤️ 😄 No window-splitting, with the message showing up in *Warnings*, or perhaps in the modeline.

I do not know anything about this warning in particular (and I do not observe it on my system), but the expected behaviour of not popping up the warnings buffer could be achieved for all warnings by setting minimum-warning-level to :error. The option warning-suppress-types might provide more granular control.

stradicat commented 1 month ago

minimum-warning-level did the trick.

I had been looking for such an option for a couple of weeks now, can't believe it was this obvious!

Thanks for the heads-up! The annoyance is gone.