[Software] Kate not finding LSPs

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
Stuarte
Posts: 49
Joined: 2023-09-05 10:16
Has thanked: 14 times
Been thanked: 1 time

[Software] Kate not finding LSPs

#1 Post by Stuarte »

Hi,
O.S -- Debian Bookworm 12.5.0
Package -- Kate 22.12.3
gcc (Debian 12.2.0-14) 12.2.0

I am using Kate to do a bit of C programming using Kate. When I compile a program, Kate's terminal shows the following.

Code: Select all

[12:27:23  LSP Client Warning] Failed to find server binary: clangd
Please check your PATH for the binary
See also https://clang.llvm.org/extra/clangd/ for installation or details
[12:31:21  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
I did a couple of searches in Synaptics for these LSPs but those searches did not return any results for either LSP.

As I am using GCC for compilation, -:
a) do I need these clangd and bash LSPs ?
b) if not, how do I prevent Kate from continually showing these messages ?

Contrarily, if I do need these LSPs, how do I :-
c) install them (as Synaptics couldn't find them) ?
d) amend the PATH variable ?

Stuart

jmgibson1981
Posts: 330
Joined: 2015-06-07 14:38
Has thanked: 13 times
Been thanked: 44 times

Re: [Software] Kate not finding LSPs

#2 Post by jmgibson1981 »

The only thing one needs is the program to provide the language server, in this case either bash-language-server or clangd. You install those and it will just work. There is no configuration outside of Kate. In my case on a fresh installation it prompts me one time ever to start the language server, does it automatically after that.

Stuarte
Posts: 49
Joined: 2023-09-05 10:16
Has thanked: 14 times
Been thanked: 1 time

Re: [Software] Kate not finding LSPs

#3 Post by Stuarte »

Good morning jmgibson1981,

Thank you for your reply. I have managed to install clangd-14 but neither Synaptics nor

Code: Select all

sudo apt-get install
can find the bash-language-server. Is there some other way/tool that I should be using to install the bash-language-server ?

Stuart

m4c-attack
Posts: 44
Joined: 2023-10-09 05:06
Has thanked: 53 times
Been thanked: 4 times

Re: [Software] Kate not finding LSPs

#4 Post by m4c-attack »

Stuarte wrote: 2024-06-28 10:16 Good morning jmgibson1981,

Thank you for your reply. I have managed to install clangd-14 but neither Synaptics nor

Code: Select all

sudo apt-get install
can find the bash-language-server. Is there some other way/tool that I should be using to install the bash-language-server ?

Stuart
[12:27:23  LSP Client Warning] Failed to find server binary: clangd
Please check your PATH for the binary
See also https://clang.llvm.org/extra/clangd/ for installation or details
[12:31:21  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
It's been a while since I did it tbh, but go to the GitHub page, go to releases, download the latest tar.gz file, unzip it and install it into a folder in $PATH. I can't remember if there's a final step unfortunately or if that does the trick. When successfully installed, it looks like this (compared it to my laptop which doesn't have it installed)
Image

I have mines installed in `/usr/bin/`

Code: Select all

$ which bash-language-server 
/usr/bin/bash-language-server
This has some tangentially-related info on installing LSPs as an alternative

Post Reply