Git Product home page Git Product logo

Comments (18)

mathjiajia avatar mathjiajia commented on June 6, 2024 8

+1

from mason.nvim.

crisidev avatar crisidev commented on June 6, 2024 2

Same issue with today's neovim nightly.

from mason.nvim.

mimikun avatar mimikun commented on June 6, 2024 2

i have same issue.

from mason.nvim.

alexandre-julien avatar alexandre-julien commented on June 6, 2024 2

Fixed (2b9df3f79541507bfc3ba2645e6b9740e7c922ed).

from mason.nvim.

vitorf7 avatar vitorf7 commented on June 6, 2024 1

I too am getting similar problems.
My checkhealth mason returns the following:

==============================================================================
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-03-26-aback-image` 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

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 3. Remaining: 4997. Limit: 5000. Reset: Wed Apr 24 11:23:27 2024.

Neovim version:

nvim -V1 -v                                                                                                                                  
NVIM v0.10.0-dev-2995+ga1550dbf0-Homebrew
Build type: Release
LuaJIT 2.1.1713773202

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/HEAD-a1550db/share/nvim"

Run :checkhealth for more info

When I open :Mason I get the following:
Screenshot 2024-04-24 at 10 42 37

from mason.nvim.

luishendrix92 avatar luishendrix92 commented on June 6, 2024 1

+1

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-melodic-spoon` is installed.

mason.nvim [Core utils] ~
- OK unzip: `UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.`
- 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: `tar (GNU tar) 1.34`
- 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:
  ...s/.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

from mason.nvim.

vandalt avatar vandalt commented on June 6, 2024 1

According to this comment, it seems like a new PR will fix the main issue described here: neovim/neovim#28492.

from mason.nvim.

baco avatar baco commented on June 6, 2024 1

Mm... Nightly was built like 7hs ago, and the PR was merged like 5hs ago... 2hs after the nightly build.

I don't think that can be marked as done yet, because I am not compiling from source, rather using some build provided, but 🤷🏼‍♂️

from mason.nvim.

alexandre-julien avatar alexandre-julien commented on June 6, 2024 1

Mm... Nightly was built like 7hs ago, and the PR was merged like 5hs ago... 2hs after the nightly build.

I don't think that can be marked as done yet, because I am not compiling from source, rather using some build provided, but 🤷🏼‍♂️

Why would I base this issue status on your use case?
It's fixed since the commit I mentionned.

This is still breaking as of the Neovim 10.0-dev release. I'm using Lazy.nvim and Mason and all its dependencies are up to date.

Pull again, compile, fix.

from mason.nvim.

ism-hub avatar ism-hub commented on June 6, 2024

+1

This Dockerfile can maybe recreate the problem consistently

https://github.com/ism-hub/ansible/blob/main/nvim_container/Dockerfile

$ uname -r
6.5.8-t2-jammy

from mason.nvim.

stefanboca avatar stefanboca commented on June 6, 2024

+1

running a git bisect, the commit in neovim that breaks this seems to be neovim/neovim@c5af5c0

from mason.nvim.

derekgr97 avatar derekgr97 commented on June 6, 2024

+1

from mason.nvim.

tjdevries avatar tjdevries commented on June 6, 2024

Looks likely because that commit uses vim.fn.has(...) which introduces the function that is being called inside of a non-scheduled callback (so it's not in API fast).

from mason.nvim.

milodepilo avatar milodepilo commented on June 6, 2024

having the same issue:
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] ~

  • ERROR Registry github.com/mason-org/mason-registry [uninstalled] is not installed.
    • ADVICE:
      • Run :MasonUpdate to install.

mason.nvim [Core utils] ~

  • OK unzip: UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.
  • 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: tar (GNU tar) 1.34
  • 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

from mason.nvim.

baco avatar baco commented on June 6, 2024

Fixed (2b9df3f79541507bfc3ba2645e6b9740e7c922ed).

I didn't get it. Is that a commit in here, in mason.nvim, is that the commit that fixes it in Neovim-nightly?

I've updated both, plugin and Neovim, and I still have the issue.

from mason.nvim.

feoh avatar feoh commented on June 6, 2024

This is still breaking as of the Neovim 10.0-dev release. I'm using Lazy.nvim and Mason and all its dependencies are up to date.

from mason.nvim.

baco avatar baco commented on June 6, 2024

This is still breaking as of the Neovim 10.0-dev release. I'm using Lazy.nvim and Mason and all its dependencies are up to date.

@feoh try updating your Neovim 10.0-dev release again, to today's build. Despite the poor answer on behalf of at-alexandre-julien, the issue was what I've described in a previous answer. The patch was merged 2 hours after the nightly release was built and we had to wait up to the next build to have it corrected.

I've downloaded today's Neovim 10.0-dev nightly release and the issue is finally corrected.

from mason.nvim.

feoh avatar feoh commented on June 6, 2024

@baco You're right. Totally fixed. Yay! Thanks a bunch!

from mason.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.