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

bug: error vim.fs not found on launch #258

Closed
patrykk21 opened this issue Jun 5, 2024 · 5 comments
Closed

bug: error vim.fs not found on launch #258

patrykk21 opened this issue Jun 5, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@patrykk21
Copy link

I installed everything as per documentation (wonderfully written and curated btw!)

However I'm getting the following error when launching the command

Error detected while processing /Users/vigenerr/.config/nvim/init.lua:                                                    
E5113: Error while calling lua chunk: vim/_init_packages.lua:0: module 'vim.fs' not found:                                
        no field package.preload['vim.fs']                                                                                
cache_loader: module vim.fs not found                                                                                     
cache_loader_lib: module vim.fs not found                                                                                 
        no file './vim/fs.lua'                                                                                            
        no file '/Users/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/vim/fs.lua'                          
        no file '/usr/local/share/lua/5.1/vim/fs.lua'                                                                     
        no file '/usr/local/share/lua/5.1/vim/fs/init.lua'                                                                
        no file '/Users/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/vim/fs.lua'                                     
        no file '/Users/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/vim/fs/init.lua'                                
        no file './vim/fs.so'                                                                                             
        no file '/usr/local/lib/lua/5.1/vim/fs.so'                                                                        
        no file '/Users/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/vim/fs.so'                                        
        no file '/usr/local/lib/lua/5.1/loadall.so'                                                                       
        no file './vim.so'                                                                                                
        no file '/usr/local/lib/lua/5.1/vim.so'                                                                           
        no file '/Users/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/vim.so'                                           
        no file '/usr/local/lib/lua/5.1/loadall.so'                                                                       
stack traceback:                                                                                                          
        [C]: in function 'require'                                                                                        
        vim/_init_packages.lua: in function '__index'                                                                     
        ...rr/.local/share/nvim/lazy/NvChad/lua/nvchad/autocmds.lua:14: in function <...rr/.local/share/nvim/lazy/NvChad/l
ua/nvchad/autocmds.lua:13>                                                                                                
        vim/shared.lua: in function 'tbl_map'                                                                             
        ...rr/.local/share/nvim/lazy/NvChad/lua/nvchad/autocmds.lua:13: in main chunk                                     
        [C]: in function 'require'                                                                                        
        /Users/vigenerr/.config/nvim/init.lua:35: in main chunk                                                           
E484: Can't open file /share/nvim/syntax/syntax.vim                                                                       
Error detected while processing VimEnter Autocommands for "*":                                                            
Error executing lua callback: vim/_init_packages.lua:0: module 'vim.health' not found:                                    
        no field package.preload['vim.health']                                                                            
cache_loader: module vim.health not found    
@mikesmithgh
Copy link
Owner

Hi @patrykk21 thanks for the kind words!

error when launching the command

What command are you referring to? When you run kitty_mod+h?

What version of Neovim are you using? nvim --version

nvim v0.9.0 or greater is required for this plugin

@patrykk21
Copy link
Author

❯ nvim --version
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1710088188

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

Run :checkhealth for more info

I was referring to this command

# Browse scrollback buffer in nvim
map kitty_mod+f kitty_scrollback_nvim

But any command gives the same problem.

@mikesmithgh
Copy link
Owner

@patrykk21 I am not able to reproduce. I installed NvChad with kitty-scrollback.nvim on Neovim v0.9.5 (I'm using MacOS).

  • Do you have any of these errors opening nvim normally (without kitty-scrollback.nvim) ?
  • What OS are you using?
  • Do you have multiple version of nvim installed? Could you try running which -a nvim and provide the output?

I came across https://stackoverflow.com/questions/76449235/error-while-calling-lua-chunk-vim-init-packages-lua0-module-vim-version-no which has a similar error and mentions a mismatched neovim runtime.

My guess at the moment is that you may have another Neovim runtime and for some reason kitty-scrollback.nvim is finding that instead of the correct one for NVIM v0.9.5.

Side note: NVChad https://nvchad.com/docs/quickstart/install says that Neovim 0.10 is a prereq. So, you may want to try upgrading to Neovim from 0.9.5 to 0.10.

@mikesmithgh mikesmithgh added bug Something isn't working waiting for user labels Jun 6, 2024
@mikesmithgh mikesmithgh changed the title vim.fs not found bug: error vim.fs not found on launch Jun 6, 2024
@patrykk21
Copy link
Author

❯ which -a nvim
/opt/homebrew/bin/nvim
/usr/local/bin/nvim

🤦🏻

It doesn't throw this error anymore... however I will need to update kitty to make use of this feature :)

Thank you so much for your help!

@mikesmithgh
Copy link
Owner

@patrykk21 awesome no problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants