Closed kassio closed 2 years ago
Hello! This is likely due to your IP being ratelimited by GitHub's API. Reasons for this could be that you're using a shared public IP. What you can do is either of the following:
gh
cli. This will make it so your personal access token is subject to rate limiting, rather than your IP address. (recommended):LspInstall sumneko_lua@v3.1.0
您好,因为本人是新手,通过文章中的介绍,使用了nvim-lsp-installer插件,但是我很困惑,在安装sumneko_lua的时候失败了,经检查是如下原因:在请求github库的时候出现404。 https://github.com/sumneko/vscode-lua/releases/download/tag/v3.2.0 尝试删除地址中的download可以找到,我无法知道原因,请求作者大大解惑 https://github.com/sumneko/vscode-lua/releases/tag/v3.2.0
Doing specifying a version to install, for example :LspInstall sumneko_lua@v3.1.0
and then re-installing without the version worked. Thanks for the help.
@baiyeming
I'm not sure what could be the error. If you'd like, could you please create a new GitHub Issue and provide the information that is requested so that I can better help you?
translated via Google Translate
我不确定可能是什么错误。 如果您愿意,您能否创建一个新的 GitHub 问题并提供所需的信息,以便我可以更好地帮助您?
@williamboman,
This error still happening for some reason. I tried to install the latest sumneko_lua version and got:
:LspInstall sumneko_lua@3.2.2
(release: https://github.com/sumneko/lua-language-server/releases/tag/3.2.2)
[INFO Tue May 3 09:47:24 2022] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:682: Starting install server_name="sumneko_lua", requested_version="3.2.2"
[ERROR Tue May 3 09:47:25 2022] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="sumneko_lua", error='...taller/lua/nvim-lsp-installer/core/managers/std/init.lua:61: Failed to download file "https://github.com/sumneko/vscode-lua/releases/download/3.2.2/vscode-lua-3.2.2-darwin-x64.vsix".\nspawn: curl failed with exit code 22. curl: (22) The requested URL returned error: 404\n'
[INFO Tue May 3 09:47:25 2022] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:701: Installation completed server_name="sumneko_lua", success=false
I think something changed in the sumneko_lua package, since the version 3.1.0
is installed successfully.
I think you're missing the v
: :LspInstall sumneko_lua@v3.2.2
(it needs to be the same as the tag names themselves)
Ohh my bad! You're right!
Hopefully https://github.com/williamboman/nvim-lsp-installer/issues/644 will make this error easier to avoid :)
Problem description
Neovim version (>= 0.6)
Operating system/version
Darwin Kassios-MacBook-Pro.local 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:45:05 PDT 2022; root:xnu-8020.101.4~15/RELEASE_X86_64 x86_64
I've recently downloaded the latest plugin version of both nvim-lsp-installer and nvim-lspconfig
Affected language servers
sumneko_lua
Actual behavior
Expected behavior
to be installed.
LspInstallInfo output
No response
Installation log