Skip to content

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

Open
@kerrg

Description

@kerrg

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'

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions