Open zhang-stephen opened 2 years ago
I noticed that there always is one of pylsp
and tflint
in the error.
There seems to be a looped dependency...
nvim-lsp-installer.servers
is required by nvim-lsp-installer.middleware
,nvim-lsp-installer.middleware
is required by nvim-lsp-installer.servers.pylsp
and nvim-lsp-installer.servers.tflint
.The error occurs here due to this dependency loop in my opinion.
Could you help confirm and fix it?
Hello! I don't believe there's a cyclical dependency problem here as this require is not done in the module closure. I believe this is happening because lspconfig
is not available in Neovim Lua's package.path
- do you perhaps lazy-load lspconfig
? (when nvim-lsp-installer
is setup lspconfig
needs to be available)
in my configuration, the nvim-lspconfig is loaded later than nvim-lsp-installer... I will verify this soon. thanks.
Problem description
An error is reported as this screenshot:
And I noticed there is not only one
server_name
, it could be one ofpylsp
,tflint
, and the other, which is not configured in my configuration.Neovim version (>= 0.7)
Operating system/version
CentOS 7.9
I've recently downloaded the latest plugin version of both nvim-lsp-installer and nvim-lspconfig
Affected language servers
all
Actual behavior
nvim-lsp-installer seems to try to install the server which not configured.
the configuration of nvim-lsp-installer:
configured servers:
ccls
, installed by package managersumneko_lua
pyright
taplo
cmake
Expected behavior
this error shall be not reported.
LspInstallInfo output
Installation log
Healthcheck
Screenshots
error reported when nvim startup
Installation Info failed.