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

Mason is not updating on nightly #1689

Open skoch13 opened 2 months ago

skoch13 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

Mason fails to retrieve data on neovim nightly, I suppose due to deprecated table operations, see similar issue https://github.com/sindrets/diffview.nvim/issues/488#issuecomment-2074440572

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.

Expected behavior

It just works

Steps to reproduce

  1. Open mason.nvim

Neovim version (>= 0.7)

NVIM v0.10.0-dev-2999+g38b9c322c Build type: RelWithDebInfo LuaJIT 2.1.1713484068

Operating system/version

MacOS 14.4.1

Healthcheck output

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

mason.nvim ~
- OK mason.nvim version v1.10.0
- OK PATH: prepend
- OK Providers: 
    mason.providers.registry-api
    mason.providers.client
- OK neovim version >= 0.7.0

mason.nvim [Registries] ~
- OK Registry `github.com/mason-org/mason-registry version: 2024-04-23-fond-fan` is installed.

mason.nvim [Core utils] ~
- OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send`
- WARNING wget: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- ERROR curl: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- ERROR gzip: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- OK tar: `bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.12 liblzma/5.4.3 bz2lib/1.0.8 `
- ERROR bash: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- ERROR sh: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback

mason.nvim [Languages] ~
- WARNING Go: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- WARNING cargo: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- WARNING luarocks: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- WARNING Ruby: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- WARNING RubyGem: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- WARNING Composer: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- WARNING PHP: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- WARNING npm: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- WARNING node: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- WARNING javac: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- WARNING java: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- WARNING julia: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- WARNING python: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- WARNING pip: not available
  - ADVICE:
    - vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
- WARNING python venv: not available
  - ADVICE:
    - On Debian/Ubuntu systems, you need to install the python3-venv package using the following command:

          apt-get install python3-venv
- ERROR Failed to run healthcheck for "mason" plugin. Exception:
  ...v/.local/share/nvim/lazy/mason.nvim/lua/mason/health.lua:315: vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback

Screenshots

No response

spacexmoon commented 2 months ago

guys i found the cause for the issue and the solution it is very simple on linux all you need to do is to downgrade your neovim from v10 to v9 as the cause of the issue neovim v10 for me when i did that all did work fine with no issue at all

ratbag98 commented 2 months ago

Firstly - whoosh to @spacexmoon . Secondly See #1687. It's been closed prematurely, but it is probably fixed.

skoch13 commented 2 months ago

It is safe to say that after updating nightly to today's build the error is gone

kescobo commented 2 months ago

I'm still seeing this error after downloading the appimage from 13 hours ago

Nope, I'm an idiot. Confirmed that it works with current appimage :facepalm: