Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mason crashes Neovim with bad argument to fs_fstat #1815

Open
2 tasks done
duhdugg opened this issue Oct 23, 2024 · 0 comments · May be fixed by #1816
Open
2 tasks done

Mason crashes Neovim with bad argument to fs_fstat #1815

duhdugg opened this issue Oct 23, 2024 · 0 comments · May be fixed by #1816

Comments

@duhdugg
Copy link

duhdugg commented Oct 23, 2024

I've searched open issues for similar requests

  • Yes

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

  • Yes

Problem description

Using Mason command causes neovim to crash with error:

PANIC: unprotected error in call to Lua API (...ocal/share/nvim/plugged/mason.nvim/lua/mason-core/fs.lua:13: bad argument #1 to'fs_fstat' (number expected, got nil))

Expected behavior

neovim does not crash when using Mason commands

Steps to reproduce

On Wolfi OS with the following packages installed:

luajit (2.1_p20210510-r7)
lua5.1-lpeg (1.1.0-r1)
libuv (1.49.2-r0)
lua-luv (1.48.0.2-r2)
msgpack-c (6.1.0-r1)
tree-sitter (0.24.3-r0)
unibilium (2.1.2-r0)
neovim (0.10.2-r0)

init.vim (using plug.vim):

call plug#begin()
  Plug 'williamboman/mason.nvim'
call plug#end()

lua << EOF
  require("mason").setup()
EOF
  1. install nvim, plug.vim, :PlugInstall
  2. run :Mason command

Neovim version (>= 0.7)

NVIM v0.10.2
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

Operating system/version

Linux 78e974240061 6.10.12-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Sep 30 21:38:25 UTC 2024 x86_64 Linux

Healthcheck output

running :checkhealth returns this same error:

PANIC: unprotected error in call to Lua API (...ocal/share/nvim/plugged/mason.nvim/lua/mason-core/fs.lua:13: bad argument #1 to'fs_fstat' (number expected, got nil))

Screenshots

No response

duhdugg added a commit to duhdugg/mason.nvim that referenced this issue Oct 23, 2024
@duhdugg duhdugg linked a pull request Oct 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant