KATE editor for Linux [LSP Client Warning] Failed to find server binary: vscode-json-languageserver

Hi,

KATE editor for Linux:
Every time I open a JSON file, I get the error message below. :frowning_face:
I also tried Flatpack version 24.08.2, but same message.

Can someone please help ?

Kind Regards,
Jo

[15:26:24  LSP Client Warning] Failed to find server binary: vscode-json-languageserver
Please check your PATH for the binary
See also https_github_com_microsoft_vscode_tree_main_extensions_json-language-features_server for installation or details

My Config:

  • Linux Mint-22(Wilma)-6.8.0-48-generic - noble

  • Kate version 23.08.5 (system, not flatpak)

  • KDE Frameworks Version 5.115.0

  • Qt Version 5.15.13 (built against 5.15.13)

  • Kate’s Config / Configure / LSP Client :

"json": {
    "command": ["vscode-json-languageserver", "--stdio"],
    "url": https://github.com/microsoft/vscode/tree/main/extensions/json-language-features/server",
    "highlightingModeRegex": "^JSON$"
},

Sounds like you’ll need to install the package providing that LSP plugin if you want to use it for JSON files.

Hi Ngraham,

Thanks for your quick answer. :pray:

Following your advice, I just installed the LSPplugins by using snap, because I did not find another way :
sudo snap install vscode-json-languageserver

The error message is gone. :grinning:

But is it the right way ?

1 Like

I’m not familiar with Snap, but if it works, it works. :slight_smile:

For anyone on arch just pacman -S vscode-json-languageserver