Unexpected error when using the plugin: Unable to import server angularls
samtgarson opened this issue · 2 comments
Problem description
Trying to run :LspInstallInfo
or :LspInstall
throws the following error. I do not have or need the Angular JS server.
E5108: Error executing lua ...im-lsp-installer/lua/nvim-lsp-installer/servers/init.lua:248: Unable to import server angularls.
This is an unexpected error, please file an issue at https://github.com/williamboman/nvim-lsp-installer with the following information:
loop or previous error loading module 'nvim-lsp-installer.servers.angularls'
stack traceback:
[C]: in function 'error'
...im-lsp-installer/lua/nvim-lsp-installer/servers/init.lua:248: in function 'fn'
...lsp-installer/lua/nvim-lsp-installer/core/functional.lua:44: in function 'get_available_servers'
...ed/nvim-lsp-installer/lua/nvim-lsp-installer/ui/init.lua:1099: in function 'status_win'
...im/plugged/nvim-lsp-installer/lua/nvim-lsp-installer.lua:207: in function 'callback'
...im/plugged/nvim-lsp-installer/lua/nvim-lsp-installer.lua:169: in function 'resolve_language_alias'
...im/plugged/nvim-lsp-installer/lua/nvim-lsp-installer.lua:195: in function 'install'
...im/plugged/nvim-lsp-installer/lua/nvim-lsp-installer.lua:183: in function 'on_choice'
...ew/Cellar/neovim/0.7.0/share/nvim/runtime/lua/vim/ui.lua:54: in function 'select'
...im/plugged/nvim-lsp-installer/lua/nvim-lsp-installer.lua:179: in function 'install_by_filetype'
[string "luaeval()"]:1: in main chunk
Neovim version (>= 0.7)
NVIM v0.7.0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@HMBRW-A-001-M1-004.local
Features: +acl +iconv +tui
See ":help feature-compile"
Operating system/version
Darwin Sams-MacBook-Pro-3.local 21.4.0 Darwin Kernel Version 21.4.0: Mon Feb 21 20:36:53 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T8101 arm64
I've recently downloaded the latest plugin version of both nvim-lsp-installer and nvim-lspconfig
- Yes
Affected language servers
all
Actual behavior
The error above is thrown instead of the plugin functionality executing.
Expected behavior
No error should be thrown.
Healthcheck output
loop or previous error loading module 'nvim-lsp-installer.servers.angularls'
stack traceback:
[C]: in function 'error'
...im-lsp-installer/lua/nvim-lsp-installer/servers/init.lua:248: in function 'fn'
...lsp-installer/lua/nvim-lsp-installer/core/functional.lua:44: in function 'get_available_servers'
...ed/nvim-lsp-installer/lua/nvim-lsp-installer/ui/init.lua:1099: in function 'status_win'
...im/plugged/nvim-lsp-installer/lua/nvim-lsp-installer.lua:207: in function 'callback'
...im/plugged/nvim-lsp-installer/lua/nvim-lsp-installer.lua:169: in function 'resolve_language_alias'
...im/plugged/nvim-lsp-installer/lua/nvim-lsp-installer.lua:195: in function 'install'
...im/plugged/nvim-lsp-installer/lua/nvim-lsp-installer.lua:183: in function 'on_choice'
...ew/Cellar/neovim/0.7.0/share/nvim/runtime/lua/vim/ui.lua:54: in function 'select'
...im/plugged/nvim-lsp-installer/lua/nvim-lsp-installer.lua:179: in function 'install_by_filetype'
[string "luaeval()"]:1: in main chunk
Screenshots
No response
Seems to be fixed with a restart which didn't work before 🤔 apologies for the noise.
Cool! This was probably caused by updating the plugin version with the neovim instance ending up running two different versions of the plugin in memory