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

rror while calling lua chunk: .config/nvim/lua/user/lsp/mason.lua:25: module 'mason' not found: #332

Open
kerrg opened this issue Mar 14, 2024 · 0 comments

Comments

@kerrg
Copy link

kerrg commented Mar 14, 2024

Thanks in advance for any help, I've done my due diligence on checking my install and reading the mason docs. I made sure to build neovim from source as prescribed:
`$ git checkout release-0.9
$ make distclean && make CMAKE_BUILD_TYPE=Release && sudo make install
nvim -v
NVIM v0.9.6-dev-18+g0ef27180e
Build type: Release
LuaJIT 2.1.1692716794

system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/share/nvim"

Run :checkhealth for more info`

When I launch nvim I get this error:
`:113: Error while calling lua chunk: /home/kerrnel/.config/nvim/lua/user/lsp/mason.lua:25: module 'mason' not found:
no field package.preload['mason']
no file './mason.lua'
no file '/home/kerrnel/Development/neovim/.deps/usr/share/luajit-2.1/mason.lua'
no file '/usr/local/share/lua/5.1/mason.lua'
no file '/usr/local/share/lua/5.1/mason/init.lua'
no file '/home/kerrnel/Development/neovim/.deps/usr/share/lua/5.1/mason.lua'
no file '/home/kerrnel/Development/neovim/.deps/usr/share/lua/5.1/mason/init.lua'
no file './mason.so'
no file '/usr/local/lib/lua/5.1/mason.so'
no file '/home/kerrnel/Development/neovim/.deps/usr/lib/lua/5.1/mason.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/home/kerrnel/.config/nvim/lua/user/lsp/mason.lua:25: in main chunk
[C]: in function 'require'
/home/kerrnel/.config/nvim/lua/user/lsp/init.lua:6: in main chunk
[C]: in function 'require'
/home/kerrnel/.config/nvim/init.lua:6: in main chunk
Error detected while processing /home/kerrnel/.local/share/nvim/site/pack/packer/start/cmp-buffer/after/plugin/cmp_buffer.lua:
E5113: Error while calling lua chunk: ...pack/packer/start/cmp-buffer/after/plugin/cmp_buffer.lua:1: module 'cmp' not found:
no field package.preload['cmp']
no file './cmp.lua'
no file '/home/kerrnel/Development/neovim/.deps/usr/share/luajit-2.1/cmp.lua'
no file '/usr/local/share/lua/5.1/cmp.lua'
no file '/usr/local/share/lua/5.1/cmp/init.lua'
no file '/home/kerrnel/Development/neovim/.deps/usr/share/lua/5.1/cmp.lua'
no file '/home/kerrnel/Development/neovim/.deps/usr/share/lua/5.1/cmp/init.lua'
no file './cmp.so'
no file '/usr/local/lib/lua/5.1/cmp.so'
no file '/home/kerrnel/Development/neovim/.deps/usr/lib/lua/5.1/cmp.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
...pack/packer/start/cmp-buffer/after/plugin/cmp_buffer.lua:1: in main chunk
Error detected while processing /home/kerrnel/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after/plugin/cmp_cmdline.lua:
E5113: Error while calling lua chunk: ...ck/packer/start/cmp-cmdline/after/plugin/cmp_cmdline.lua:1: module 'cmp' not found:
no field package.preload['cmp']
no file './cmp.lua'
no file '/home/kerrnel/Development/neovim/.deps/usr/share/luajit-2.1/cmp.lua'
no file '/usr/local/share/lua/5.1/cmp.lua'
no file '/usr/local/share/lua/5.1/cmp/init.lua'
no file '/home/kerrnel/Development/neovim/.deps/usr/share/lua/5.1/cmp.lua'

`

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

No branches or pull requests

1 participant