vim-lsp-settings
vim-lsp-settings copied to clipboard
"Server not found" for supported languaes
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.
bash-language-server, vim-language-server, json-language-server, those require nodejs.
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.
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
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).