Is it possible to disable LSP error messages in Kate?

I have the same problem as the one described here: KATE editor for Linux [LSP Client Warning] Failed to find server binary: vscode-json-languageserver

Basically, every time I open a file, I get error messages

[14:51:28  LSP Client Warning] Failed to find server binary: bash-language-server
Please check your PATH for the binary
See also https://github.com/bash-lsp/bash-language-server for installation or details

The solution in that topic was to install the relevant LSP server. I did that for Python, but I don’t want to install an LSP server for every single type of file I open with Kate, especially since I treat it as a notepad to temporarily open files instead of the full IDE where I truly work with them.

I want to disable such messages for LSP servers I don’t plan on using (or just disable them all).

I tried:

  • Editing user settings to remove configs for all LSPs except Python.
  • Turning off “Configure Kate” → “LSP Client” → “Show program diagnostics”
  • Turning off “Configure Kate” → “LSP Client” → “Show notifications from the LSP server”

I found that it shouldn’t have helped because user settings are not replacing the default ones, they’re merging with the default ones. - LSP Client Plugin

It would be fine to just close the “Output” tab and never see these messages, but they’re classified as errors, so the tab keeps blinking even when it’s closed.

Is there some other setting I missed or some other way to make the Kate LSP Client forget about all the LSP servers except for specific ones I want to use, and stop trying to access them? Or at least to keep trying to access them quietly?

System:

  • Arch Linux
  • Kate version 25.04.0
1 Like

Hi! Sorry, I’m not aware of a setting to lower the level of alert that’s raised when an LSP server isn’t found, or suppress it in the way you mentioned.

Just to check, if you’re generally not using the LSP features of Kate, you could disable them entirely via Settings > Configure Kate > Plugins > LSP Client - and if you’re just using Kate as a “notepad”-type application, without its more advanced features, then using KWrite in such cases might be a better fit?

For what it’s worth, the current behavior where that alert is a “Warning” that causes the button to blink, rather than an “Error” that immediately pops up the Output panel, is itself a bit of a compromise since that information might be needed in some cases: step down warning level when LSP not found (!563) · Merge requests · Utilities / Kate · GitLab

1 Like

Thank you. I think I’ll just disable it.

Though when I went back to disable it, I noticed that the errors stopped appearing. I restarted Kate when I tried modifying the settings last time, but this time I also restarted my PC. It’s a mystery, but the problem might have fixed itself even without me disabling LSP.

I saw I had KWrite installed as a dependency of something, but I never tried using it. It may indeed be a better fit for my needs, I’ll check it out.

1 Like