vim-lsp-settings icon indicating copy to clipboard operation
vim-lsp-settings copied to clipboard

"Server not found" for supported languaes

Open smason1995 opened this issue 4 years ago • 4 comments

I am trying to add the language servers for Bash, Vim, and JSON. However, LspInstallServer is complaining that there is now server for these languages. I am using the latest version of both vim-lsp and vim-lsp-settings.

smason1995 avatar Nov 29 '20 13:11 smason1995

bash-language-server, vim-language-server, json-language-server, those require nodejs.

mattn avatar Nov 29 '20 13:11 mattn

I have install node and npm, and can call node and npm command on the command line. However, when I try to install the pyright language server using the following command:

:LspInstallServer pyright-langserver

I get an error message that Server not found. What is the possible issue?

Edit: it seems that the solution is that we need to open a Python source file. When I open a Python source file and run the above command. It actually works. It is kind of weird though. I think we should be able to install this server regardless of the filetype of current buffer.

jdhao avatar Jan 20 '21 10:01 jdhao

I have tried to run :LspInstallServer bash-language-server outside and inside the bash script, but it gave me this message.

When I was inside bash:

Server not found

When I was outside bash:

Server could not be installed. See :messages for details.

Of course, there was nothing in messages ... I have nodejs and python installed

onionka avatar Feb 02 '21 22:02 onionka

I ran into this issue as well today when working with dockerfile. Tried calling it explicitly as well with :LspInstallServer dockerfile-language-server-nodejs. Though I have previously installed lsp for bash, vim and json without issue about a month ago (which OP has trouble with).

LuyeT avatar Jun 25 '21 12:06 LuyeT