mason.nvim icon indicating copy to clipboard operation
mason.nvim copied to clipboard

Mason plugin doesn't install mason-registry

Open vprashar2929 opened this issue 1 year ago • 5 comments

I've searched open issues for similar requests

  • [X] Yes

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

  • [X] Yes

Problem description

When LazyVim is installed and the Mason plugin is checked, no languages/linters/LSP etc appear in the list. It seems that the mason-registry is uninstalled. Additionally, when the :checkhealth command is executed, it gets stuck and displays the following error.

Attaching some screenshot for reference:

348790467-176497b4-0256-473b-9595-23c610e94285 348790710-8df95e67-8093-4601-901f-d591c23059f8 348791031-5d01a801-07a0-4605-a6c2-1f2791423520

Expected behavior

Once LazyVim is installed and Mason plugin checked it should have installed the registries which entail shows the list of linters/languages etc available for installing.

Steps to reproduce

  1. Install neovim with above defined version.
  2. Follow the installation steps mentioned here: https://www.lazyvim.org/installation
  3. Check the Mason plugin to see if the list of langauges/linters/formatters etc are available

Neovim version (>= 0.7)

v0.10.0

Operating system/version

Darwin

Healthcheck output

348791031-5d01a801-07a0-4605-a6c2-1f2791423520

Screenshots

No response

vprashar2929 avatar Jul 15 '24 18:07 vprashar2929

Hi, I have this same issue, I just updated astrovim this morning. And I'm not able to install mason packages image

McEazy2700 avatar Jul 17 '24 09:07 McEazy2700

Change from:

return {
    'williamboman/mason.nvim'
}

to:

return {
    'williamboman/mason.nvim',
    dependencies = { 'mason-org/mason-registry' },
} 

Then ensure that the package gets installed - probably close and re-open Neovim - sorry, I don't have step by step instructions for you there.

russsaidwords avatar Jul 30 '24 19:07 russsaidwords

Change from:

return {
    'williamboman/mason.nvim'
}

to:

return {
    'williamboman/mason.nvim',
    dependencies = { 'mason-org/mason-registry' },
} 

Then ensure that the package gets installed - probably close and re-open Neovim - sorry, I don't have step by step instructions for you there.

I can confirm the same issue. After a fresh installation of nvim, and after the Lazy plugin definition has been updated as suggested, the issue persists.

rogedelgado avatar Aug 22 '24 00:08 rogedelgado

I tried this also, the package installed but it did not work

hallelx2 avatar Aug 23 '24 23:08 hallelx2

I am facing the same problem. Have you already solved this problem?

error

Registry installation failed with the following error:
GitHubRegistrySource(repo=mason-org/mason-registry) failed to install: ENOENT: no such file or directory: /Users/nohira/.local/share/nvim/mason/registries/github/mason-org/mason-registry/registry.json.zip

nvim version

NVIM v0.11.1
Build type: Release
LuaJIT 2.1.1741730670
Run "nvim -V1 -v" for more info

mason version

    ● mason.nvim 4.27ms 󰢱 mason  config.lspconfig
        dir    /Users/hogehoge/.local/share/nvim/lazy/mason.nvim
        url    https://github.com/williamboman/mason.nvim
        branch main
        commit 888d6ee
        readme README.md
        help   |mason.nvim|

      ✔ [task] log 221.44ms

setting

-- https://github.com/williamboman/mason.nvim.git
-- https://github.com/williamboman/mason-lspconfig.nvim.git

return {
  -- Mason
  {
    "williamboman/mason.nvim",
    dependencies = { 'mason-org/mason-registry' },

    -- Config
    config = function()
      require("mason").setup()
    end,
  },

  -- Mason LSPConfig
  {
    "williamboman/mason-lspconfig.nvim",
  }
}

maro114510 avatar May 16 '25 22:05 maro114510