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.22k stars 258 forks source link

Failed to update registries #1695

Open madhat2r opened 2 months ago

madhat2r commented 2 months ago

I've searched open issues for similar requests

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

Problem description

Trying to add a LSP to the registry. Following the instructions to add a local registry results in registry not being installed.

Expected behavior

The local registry will be installed.

Steps to reproduce

Configure Mason to use local registry as fallback:

require("mason").setup {
  registries = {
    "github:mason-org/mason-registry",
    "file:/home/micah/git/mason-registry",
  },

Neovim version (>= 0.7)

NVIM v0.10.0-dev-2947+ge1ca7a7bf Build type: RelWithDebInfo LuaJIT 2.1.1710088188 Run "nvim -V1 -v" for more info

Operating system/version

Linux XXXXX 6.6.29-1-lts #1 SMP PREEMPT_DYNAMIC Sat, 27 Apr 2024 18:43:45 +0000 x86_64 GNU/Linux

Healthcheck output

mason: require("mason.health").check()
   3
   4 mason.nvim
   5 - OK mason.nvim version v1.10.0
   6 - OK PATH: prepend
   7 - OK Providers:
   8     mason.providers.registry-api
   9     mason.providers.client
  10 - OK neovim version >= 0.7.0
  11
  12 mason.nvim [Registries]
  13 - OK Registry github.com/mason-org/mason-registry version: 2024-05-02-gigantic-fly is installed.
  14 - ERROR Registry local: /home/micah/git/mason-registry [uninstalled] is not installed.
  15   - ADVICE:
  16     - Run :MasonUpdate to install.
  17
  18 mason.nvim [Core utils]
  19 - OK unzip: UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send
  20 - OK wget: GNU Wget 1.24.5 built on linux-gnu.
  21 - OK curl: curl 8.7.1 (x86_64-pc-linux-gnu) libcurl/8.7.1 OpenSSL/3.3.0 zlib/1.3.1 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 libssh2/1.11.0 nghttp2/1.61.0         nghttp3/1.2.0
  22 - OK gzip: gzip 1.13
  23 - OK tar: tar (GNU tar) 1.35
  24 - OK bash: GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu)
  25 - OK sh: Ok
  26
  27 mason.nvim [Languages]
  28 - OK Go: go version go1.22.2 linux/amd64
  29 - WARNING Composer: not available
  30   - ADVICE:
  31     - spawn: composer failed with exit code - and signal -. composer is not executable
  32 - OK PHP: PHP 8.3.6 (cli) (built: Apr 12 2024 12:24:08) (NTS)
  33 - OK cargo: cargo 1.74.1 (ecb9851af 2023-10-18)
  34 - WARNING luarocks: failed to parse version
  35   - ADVICE:
  36     - Error: ...h/.local/share/nvim/lazy/mason.nvim/lua/mason/health.lua:214: attempt to compare number with nil
  37 - OK node: v18.18.2
  38 - OK Ruby: ruby 3.2.1 (2023-02-08 revision 31819e82c8) [x86_64-linux]
  39 - WARNING julia: not available
  40   - ADVICE:
  41     - spawn: julia failed with exit code - and signal -. julia is not executable
  42 - OK java: openjdk version "22" 2024-03-19
  43 - OK python: Python 3.11.4
  44 - OK RubyGem: 3.4.6
  45 - OK npm: 10.5.2
  46 - OK javac: javac 22
  47 - OK pip: pip 23.2.1 from /home/micah/.pyenv/versions/3.11.4/lib/python3.11/site-packages/pip (python 3.11)
  48 - OK python venv: Ok
  49
  50 mason.nvim [GitHub]
  51 - OK GitHub API rate limit. Used: 0. Remaining: 60. Limit: 60. Reset: Thu 02 May 2024 11:56:16 AM CDT.
  52   Install and authenticate via gh-cli to increase rate limit.


### Screenshots

_No response_
DTchebotarev commented 3 weeks ago

+1 also running into this issue. Can't seem to install the mason registry.