Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

with latest neovim 0.5.0, this error was noticed #94

Closed
antonyr opened this issue Jun 20, 2021 · 3 comments
Closed

with latest neovim 0.5.0, this error was noticed #94

antonyr opened this issue Jun 20, 2021 · 3 comments

Comments

@antonyr
Copy link

antonyr commented Jun 20, 2021

With the latest Neovim 0.5.0, This error was noticed.

E5108: Error executing lua ...ny/.nvim/plugged/nvim-lspinstall/lua/lspinstall/util.lua:11: attempt to index a nil value

Please help fix this.

@puhoy
Copy link

puhoy commented Jul 17, 2021

i see the same error, and it seems to have something to do with the setup of additional language servers.
i added a config for pyls before, and when i remove it, the error disappears.

-- pyls config
local config = require"lspinstall/util".extract_config("pyls")
config.default_config.cmd[1] = "./venv/bin/pyls"

require'lspinstall/servers'.python = vim.tbl_extend('error', config, {
  install_script = [[
  python -m venv ./venv
  ./venv/bin/pip install -U pip
  ./venv/bin/pip install -U 'python-language-server[all]'
  ./venv/bin/pip uninstall yapf autopep8
  ./venv/bin/pip install -U 'pyls-black'
  ./venv/bin/pip install -U 'pyls-mypy'
  ]]
})

this should look like the custom installer described in the readme - did the setup change somehow?

@puhoy
Copy link

puhoy commented Jul 18, 2021

turns out, there was just no default config for pyls anymore.
(see neovim/nvim-lspconfig#1074)
switched to pylsp, and its working again.
maybe its something similar for you @antonyr ?

@antonyr
Copy link
Author

antonyr commented Jul 19, 2021

@puhoy I was not using pyls. But this error didn't occur after I rebuilt neovim on my M1 from scratch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants