neovim / nvim-lspconfig

Quickstart configs for Nvim LSP
Apache License 2.0
10.46k stars 2.06k forks source link

After updating nvim-lspconfig, some lsp-plugins do not work anymore (`command is not executable`) #550

Closed rverton closed 3 years ago

rverton commented 3 years ago
health#lspconfig#check
========================================================================
## Checking language server protocol configuration
  - ERROR: jsonls: The given command "vscode-json-languageserver" is not executable.
  - INFO: pyright: configuration checked.
  - INFO: gopls: configuration checked.
  - ERROR: tsserver: The given command "typescript-language-server" is not executable.
  - ERROR: yamlls: The given command "yaml-language-server" is not executable.
  - ERROR: html: The given command "html-languageserver" is not executable.
  - 

How to reproduce the problem from neovim startup

Open a file configured for the javascript/typescript language server or a json file.

Actual behaviour

Error executing "FileType Autokommandos für "javascript"":
E5108: Error executing lua .../share/nvim-osx64/share/nvim/runtime/lua/vim/lsp/rpc.lua:319: The given command "typescript-language-server" is not executable.

Expected behaviour

No error, LSP is loaded/started.

LSP log

[ INFO ] 2021-01-07T11:44:26+0100 ] .../share/nvim-osx64/share/nvim/runtime/lua/vim/lsp/rpc.lua:311 ]   "Starting RPC client"   {  args = { "--stdio" },  cmd = "typescript-language-server",  extra = {}}
[ INFO ] 2021-01-07T11:44:29+0100 ] ...ocal/share/nvim-osx64/share/nvim/runtime/lua/vim/lsp.lua:999 ]   "exit_handler"  {}
mjlbach commented 3 years ago

We deprecated the older installer, so if you used :LspInstall before, you'll need to reinstall

npm install -g typescript typescript-language-server

rverton commented 3 years ago

Thanks! This was not obvious for me, works now.