hoschi / yode-nvim

Yode plugin for NeoVim
MIT License
371 stars 3 forks source link

Errors after installing: yode-nvim/logging.lua:2: module 'yode-nvim.deps.lamda.dist.lamda' not found #8

Closed mmngreco closed 2 years ago

mmngreco commented 2 years ago

Hi there!

I've installed this cool project in my personal laptop and all went ok, but today, I've installed in other laptop (using the same init.vim) and nvim fails on startup with the following traceback:

Error detected while processing /home/mgreco/.config/nvim/plugged/yode-nvim/plugin/yode-nvim.vim:
line   49:
E5108: Error executing lua ....config/nvim/plugged/yode-nvim/lua/yode-nvim/logging.lua:2: module 'yode-nvim.deps.lamda.dist.lamda' not found:
        no field package.preload['yode-nvim.deps.lamda.dist.lamda']
        no file './yode-nvim/deps/lamda/dist/lamda.lua'
        no file '/home/mgreco/github/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/yode-nvim/deps/lamda/dist/lamda.lua'
        no file '/usr/local/share/lua/5.1/yode-nvim/deps/lamda/dist/lamda.lua'
        no file '/usr/local/share/lua/5.1/yode-nvim/deps/lamda/dist/lamda/init.lua'
        no file '/home/mgreco/github/neovim/neovim/.deps/usr/share/lua/5.1/yode-nvim/deps/lamda/dist/lamda.lua'
        no file '/home/mgreco/github/neovim/neovim/.deps/usr/share/lua/5.1/yode-nvim/deps/lamda/dist/lamda/init.lua'
        no file './yode-nvim/deps/lamda/dist/lamda.so'
        no file '/usr/local/lib/lua/5.1/yode-nvim/deps/lamda/dist/lamda.so'
        no file '/home/mgreco/github/neovim/neovim/.deps/usr/lib/lua/5.1/yode-nvim/deps/lamda/dist/lamda.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './yode-nvim.so'
        no file '/usr/local/lib/lua/5.1/yode-nvim.so'
        no file '/home/mgreco/github/neovim/neovim/.deps/usr/lib/lua/5.1/yode-nvim.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        ....config/nvim/plugged/yode-nvim/lua/yode-nvim/logging.lua:2: in main chunk
        [C]: in function 'require'
        ...co/.config/nvim/plugged/yode-nvim/lua/yode-nvim/init.lua:2: in main chunk
        [C]: in function 'require'
        [string ":lua"]:1: in main chunk
Error detected while processing BufWinEnter Autocommands for "*":
E5108: Error executing lua [string ":lua"]:1: loop or previous error loading module 'yode-nvim'
stack traceback:
        [C]: in function 'require'
        [string ":lua"]:1: in main chunk
Error detected while processing BufEnter Autocommands for "*":
E5108: Error executing lua .../.config/nvim/plugged/yode-nvim/lua/yode-nvim/helper.lua:1: module 'yode-nvim.deps.lamda.dist.lamda' not found:
        no field package.preload['yode-nvim.deps.lamda.dist.lamda']
        no file './yode-nvim/deps/lamda/dist/lamda.lua'
        no file '/home/mgreco/github/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/yode-nvim/deps/lamda/dist/lamda.lua'
        no file '/usr/local/share/lua/5.1/yode-nvim/deps/lamda/dist/lamda.lua'
        no file '/usr/local/share/lua/5.1/yode-nvim/deps/lamda/dist/lamda/init.lua'
        no file '/home/mgreco/github/neovim/neovim/.deps/usr/share/lua/5.1/yode-nvim/deps/lamda/dist/lamda.lua'
        no file '/home/mgreco/github/neovim/neovim/.deps/usr/share/lua/5.1/yode-nvim/deps/lamda/dist/lamda/init.lua'
        no file './yode-nvim/deps/lamda/dist/lamda.so'
        no file '/usr/local/lib/lua/5.1/yode-nvim/deps/lamda/dist/lamda.so'
        no file '/home/mgreco/github/neovim/neovim/.deps/usr/lib/lua/5.1/yode-nvim/deps/lamda/dist/lamda.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './yode-nvim.so'
        no file '/usr/local/lib/lua/5.1/yode-nvim.so'
        no file '/home/mgreco/github/neovim/neovim/.deps/usr/lib/lua/5.1/yode-nvim.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        .../.config/nvim/plugged/yode-nvim/lua/yode-nvim/helper.lua:1: in main chunk
        [C]: in function 'require'
        ...g/nvim/plugged/yode-nvim/lua/yode-nvim/changeSyncing.lua:1: in main chunk
        [C]: in function 'require'
        [string ":lua"]:1: in main chunk
Press ENTER or type command to continue

When I try to open Telescope's popup the following traceback is printed:

Error detected while processing BufModifiedSet Autocommands for "*":
E5108: Error executing lua [string "luaeval()"]:1: loop or previous error loading module 'yode-nvim'
stack traceback:
        [C]: in function 'require'
        [string "luaeval()"]:1: in main chunk
hoschi commented 2 years ago

please check if there is content in the subdirs of lua/yode-nvim/deps/. If the folders are empty, not all git submodules have been initialized. You can initialize all submodules with git submodule update --init

mmngreco commented 2 years ago

Thank you! I suppose that something went wrong while cloning yode-nvim. It works pefect now!