williamboman / mason.nvim

Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters.
Apache License 2.0
7.87k stars 277 forks source link

Failed to install latest registry #1549

Open its-mr-gray opened 1 year ago

its-mr-gray commented 1 year ago

I've searched open issues for similar requests

I've recently downloaded the latest plugin version of mason.nvim

Problem description

*installed NVChad on windows 11

when initially load nvim after installing, mason fails.

Expected behavior

packages will be installed

Affected packages

lua-language-server, mason-registry

Mason output

Registry installation failed with the following error: 
GitHubRegistrySource(repo=mason-org/mason-registry) failed to install: Failed to fetch latest registry version from GitHub API.

 lua-language-server
      ▶ # [4/4] Failed to download file "https://github.com/luals/lua-language-server/releases/download/3.7.0/lua-language-server-3.7.0-win32-x64.zip".

Installation log

[ERROR 11/3/2023 11:03:09 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:03:09 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:03:09 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:86: No provider implementation succeeded for github.get_latest_release
[ERROR 11/3/2023 11:03:09 AM] ...ta/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to fetch latest registry version from GitHub API."
[ERROR 11/3/2023 11:03:09 AM] ...al/nvim-data/lazy/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package "\"lua-language-server\"".
[ERROR 11/3/2023 11:03:09 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:03:09 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:03:09 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:86: No provider implementation succeeded for github.get_latest_release
[ERROR 11/3/2023 11:03:09 AM] ...ta/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to fetch latest registry version from GitHub API."
[ERROR 11/3/2023 11:04:34 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:04:34 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:04:34 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:86: No provider implementation succeeded for github.get_latest_release
[ERROR 11/3/2023 11:04:34 AM] ...ta/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to fetch latest registry version from GitHub API."
[ERROR 11/3/2023 11:04:34 AM] ...al/nvim-data/lazy/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package "\"lua-language-server\"".
[ERROR 11/3/2023 11:06:05 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:06:05 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:06:05 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:86: No provider implementation succeeded for github.get_latest_release
[ERROR 11/3/2023 11:06:05 AM] ...ta/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to fetch latest registry version from GitHub API."
[ERROR 11/3/2023 11:06:05 AM] ...al/nvim-data/lazy/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package "\"lua-language-server\"".
[INFO  11/3/2023 11:06:49 AM] ...m-data/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=lua-language-server) {}
[ERROR 11/3/2023 11:06:51 AM] ...m-data/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=lua-language-server) error=spawn: powershell failed with exit code - and signal -. powershell is not executable
[INFO  11/3/2023 11:07:13 AM] ...m-data/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=lua-language-server) {}
[ERROR 11/3/2023 11:07:14 AM] ...m-data/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=lua-language-server) error=spawn: powershell failed with exit code - and signal -. powershell is not executable
[INFO  11/3/2023 11:09:03 AM] ...m-data/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=lua-language-server) {}
[ERROR 11/3/2023 11:09:03 AM] ...m-data/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=lua-language-server) error='spawn: powershell failed with exit code - and signal -. powershell is not executable\nFailed to download file "https://github.com/luals/lua-language-server/releases/download/3.7.0/lua-language-server-3.7.0-win32-x64.zip".'
[ERROR 11/3/2023 11:09:03 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:09:03 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:09:03 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:86: No provider implementation succeeded for github.get_latest_release
[ERROR 11/3/2023 11:09:03 AM] ...ta/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to fetch latest registry version from GitHub API."
[ERROR 11/3/2023 11:12:15 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:12:15 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:12:15 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:86: No provider implementation succeeded for github.get_latest_release
[INFO  11/3/2023 11:20:16 AM] ...m-data/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=lua-language-server) {}
[ERROR 11/3/2023 11:20:16 AM] ...m-data/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=lua-language-server) error='spawn: powershell failed with exit code - and signal -. powershell is not executable\nFailed to download file "https://github.com/luals/lua-language-server/releases/download/3.7.0/lua-language-server-3.7.0-win32-x64.zip".'
[ERROR 11/3/2023 11:20:16 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:20:16 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:20:16 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:86: No provider implementation succeeded for github.get_latest_release
[ERROR 11/3/2023 11:20:16 AM] ...ta/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to fetch latest registry version from GitHub API."
[ERROR 11/3/2023 11:20:22 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:20:22 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:20:22 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:86: No provider implementation succeeded for github.get_latest_release
[ERROR 11/3/2023 11:20:22 AM] ...ta/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to fetch latest registry version from GitHub API."
[ERROR 11/3/2023 11:20:23 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:20:23 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:20:23 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:86: No provider implementation succeeded for github.get_latest_release
[ERROR 11/3/2023 11:20:23 AM] ...ta/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to fetch latest registry version from GitHub API."
[ERROR 11/3/2023 11:20:25 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:20:25 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:75: Provider "github" "get_latest_release" failed: spawn: powershell failed with exit code - and signal -. powershell is not executable
[ERROR 11/3/2023 11:20:25 AM] ...m-data/lazy/mason.nvim/lua/mason-core/providers/init.lua:86: No provider implementation succeeded for github.get_latest_release
[ERROR 11/3/2023 11:20:25 AM] ...ta/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to fetch latest registry version from GitHub API."

Neovim version (>= 0.7)

NVIM v0.9.2 Build type: RelWithDebInfo LuaJIT 2.1.1694082368

Operating system/version

Windows 11

Healthcheck

==============================================================================
mason: require("mason.health").check()

- ERROR Failed to run healthcheck for "mason" plugin. Exception:
  function health#check, line 25
  Vim(eval):Error executing vim.schedule lua callback: function health#check[25]..health#report_warn[2]..<SNR>16_format_report_message, line 7: a:1: expected String or List
  stack traceback:
  [C]: in function 'health#report_warn'
  ...ogram Files/Neovim/share/nvim/runtime/lua/vim/health.lua:16: in function 'report_warn'
  ...ogram Files/Neovim/share/nvim/runtime/lua/vim/health.lua:33: in function 'fn'
  ...-data/lazy/mason.nvim/lua/mason-core/functional/init.lua:173: in function <...-data/lazy/mason.nvim/lua/mason-core/functional/init.lua:172>
  [C]: in function 'wait'
  .../nvim-data/lazy/mason.nvim/lua/mason-core/async/init.lua:127: in function 'run_blocking'
  ...ata/Local/nvim-data/lazy/mason.nvim/lua/mason/health.lua:333: in function 'check'
  [string "luaeval()"]:1: in main chunk

Screenshots

image

image

image

danieagle commented 1 year ago

Hi! Big Thanks for Chapel and Mason! I just installed Chapel 1.32 and mason don't work with a message:

mason external search openssl ==> Error: name 'maintainers' is not defined

just change 'openssl' to any search text and the result is the same error.

Very Very Very Thanks! BlessWishes, GrateFull, Dani.

williamboman commented 11 months ago

Hey @its-mr-gray, thanks for reporting! Do you have any of the following tools installed on your system:

The health check usually provides this information but it seems to have broken for you, I really need to fix that.

@danieagle Hey this repository is not related to Chapel at all, it just happens to share the same name as its package manager :).

its-mr-gray commented 11 months ago

hey @williamboman thanks for the reply! i currently have all three of those installed on my system.

rajcspsg commented 10 months ago

I'm facing same error as well

kidshuster commented 7 months ago

I am getting this email too. I think the issue is wget needs to be run with --no-check-certificate because of coperate proxies, but I don't know how to add this option. Does anyone know how this option can be added?

KarthikKaravatt commented 7 months ago

Guys the fix is to add the PowerShell executable location to your PATH, mine looks like this: C:\Windows\SysWOW64\WindowsPowerShell\v1.0

baiwfg2 commented 6 months ago

Very close to truth. It turns out that mason extensively use curl to download packages not wget. When MasonInstallAll is issued, I monitor which command is running in another terminal. Easily find this:

curl -H "User-Agent: mason.nvim v1.10.0 (+https://github.com/williamboman/mason.nvim)" -fsSL -X GET -o /home/cshi/.local/share/nvim/mason/registries/github/mason-org/mason-registry/registry.json.zip --connect-timeout 30 https://github.com/mason-org/mason-registry/releases/download/2024-04-14-chunky-run/registry.json.zip

Manually run it and ssl certificate problem is reported. So the solution is easy, add insecure to ~/.curlrc

I am getting this email too. I think the issue is wget needs to be run with --no-check-certificate because of coperate proxies, but I don't know how to add this option. Does anyone know how this option can be added?

farhaddaei commented 6 months ago

I'm getting the registry installation failure error (On Ubuntu 22.04 and NVIM v0.10.0-dev): image The curl command @baiwfg2 suggested ran successfully without adding insecure to the ".curlrc" directory.

spacexmoon commented 6 months ago

yeah same here on pop os just now

I'm getting the registry installation failure error (On Ubuntu 22.04 and NVIM v0.10.0-dev): image The curl command @baiwfg2 suggested ran successfully without adding insecure to the ".curlrc" directory.

spacexmoon commented 6 months ago

yeah me too just now on pop os

morrisar commented 6 months ago

Also experiencing this on Pop OS

nitang22 commented 6 months ago

Broken on Ubuntu 22.04

igorgue commented 6 months ago

Same here on Arch. Only happens on nightly, a workaround (for me) is to update on stable Neovim as of today.

Gauravst commented 6 months ago

Same here on Arch. Only happens on nightly, a workaround (for me) is to update on stable Neovim as of today.

bro which version

igorgue commented 6 months ago

The version of arch doesn't matter, nightly is nightly, and stable neovim is 9.5.0.

--

Thanks,

Igor Guerrero.

On Thu, Apr 25, 2024 at 11:36 AM, Gaurav Singh Tangariya @.***(mailto:On Thu, Apr 25, 2024 at 11:36 AM, Gaurav Singh Tangariya < wrote:

Same here on Arch. Only happens on nightly, a workaround (for me) is to update on stable Neovim as of today.

bro which version

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

morrisar commented 6 months ago

Stable worked. Thank you so much.

vurentjie commented 6 months ago

Using bob-nvim I found that c5af5c0b9ab84c86f84e32210512923e7eb641ba was where the issue started arising for me.

Repro

cargo install bob-nvim 
export PATH="$HOME/.local/share/bob/nvim-bin:$PATH"
bob use c5af5c0b9ab84c86f84e32210512923e7eb641ba  
nvim  

If I rollback one commit to a4fc3bb0e68c8b078377fd9826e4cca3b4b3fdbf the issue no longer occurs

Fixed here:

bob use a4fc3bb0e68c8b078377fd9826e4cca3b4b3fdbf  
nvim  

Maybe this is related and helps, these are where I ref'd the commits from, on April 2023: screen

igorgue commented 6 months ago

I updated and looks like it's working on unstable as well (for me!).