-
Notifications
You must be signed in to change notification settings - Fork 328
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: cache lookup fails for modules under symlinked directories #233
Comments
Fixed! :) |
😲 🎉 ❤️ You're… fast 😅 👏🏿 Thanks a lot for your help and your support, and for lazy itself! |
@folke Error detected while processing /home/dev/.local/share/anonvim/avim/init.lua:
E5113: Error while calling lua chunk: /home/dev/.local/share/anonvim/avim/init.lua:15: module 'avim.autocmds' not found:
no field package.preload['avim.autocmds']module avim.autocmds not found
no file './avim/autocmds.lua'
no file '/usr/share/luajit-2.1.0-beta3/avim/autocmds.lua'
no file '/usr/local/share/lua/5.1/avim/autocmds.lua'
no file '/usr/local/share/lua/5.1/avim/autocmds/init.lua'
no file '/usr/share/lua/5.1/avim/autocmds.lua'
no file '/usr/share/lua/5.1/avim/autocmds/init.lua'
no file './avim/autocmds.so'
no file '/usr/local/lib/lua/5.1/avim/autocmds.so'
no file '/usr/lib/lua/5.1/avim/autocmds.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './avim.so'
no file '/usr/local/lib/lua/5.1/avim.so'
no file '/usr/lib/lua/5.1/avim.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/home/dev/.local/share/anonvim/avim/init.lua:15: in main chunk I think It's a runtime path thing but I cant seem to figure out how or why as it was working OK with Sorry in advance if it's something stupid I missed. I didn't open an issue as this looked almost similar. |
@AnoRebel you're changing the rtp so you should disable reset rtp for lazy or your changes won't survive |
But I think I added most of my custom paths to the rtp lazy options. Does that not help.? |
I have no idea, but that is likely your issue. I'm not going to debug everyone's configs. That's for you |
Okay, I will try and see if it fixes it. Thanks. PS: Was finally able to get it to work. It seems I wasn't passing the correct base_dir for my config. A stupid mistake, i know. |
Following up on #220, I think cache lookup fails for modules under symlinked directories.
Anyway, I've just being doing
env XDG_CONFIG_HOME=pwd nvim
, and it indeed fixed the issue. It also works, if I copy thenvim/lua/swsnr
to~/.config/nvim/lua/swsnr
.However, my install script uses symlinks instead, i.e. symlinks the
nvim/lua/swsnr
subdirectory to~/.config/nvim/lua/swsnr
.And when I do that, things start to fall apart, and I see the above error message again, and a bit of
print
debugging indicates, that lazy fails to find myswsnr.plugins
modules in its cache.So I tend to believe that there's some path normalization going wrong in lazy.
Originally posted by @swsnr in #220 (comment)
The text was updated successfully, but these errors were encountered: