polirritmico / telescope-lazy-plugins.nvim

A Telescope picker to quickly access plugins configurations from the lazy.nvim spec.
MIT License
30 stars 1 forks source link

lazy_plugins seems throwing error now after lazy.nvim upgraded to v11 #9

Open i3d opened 1 week ago

i3d commented 1 week ago

Recently @floke updated lazy.nvim to v11 and added rockspec support. I updated it and now when I use lazy_plugins, it seems starting to throw errors, like this

Error executing Lua callback: ...s.nvim/lua/telescope/_extensions/lazy_plugins/finder.lua:106: Missing module in the lazy spec: netman.nvim
stack traceback:
        [C]: in function 'error'
        ...s.nvim/lua/telescope/_extensions/lazy_plugins/finder.lua:42: in function 'get_module_filepath'
        ...s.nvim/lua/telescope/_extensions/lazy_plugins/finder.lua:77: in function 'collect_config_files'
        ...s.nvim/lua/telescope/_extensions/lazy_plugins/finder.lua:106: in function 'add_plugin'
        ...s.nvim/lua/telescope/_extensions/lazy_plugins/finder.lua:150: in function 'get_plugins_data'
        ...s.nvim/lua/telescope/_extensions/lazy_plugins/finder.lua:184: in function 'finder'
        ...s.nvim/lua/telescope/_extensions/lazy_plugins/picker.lua:29: in function <...s.nvim/lua/telescope/_extensions/lazy_plugins/picker.lua:10>
        ...share/nvim/lazy/telescope.nvim/lua/telescope/command.lua:193: in function 'run_command'
        ...share/nvim/lazy/telescope.nvim/lua/telescope/command.lua:259: in function 'load_command'
        ...ocal/share/nvim/lazy/telescope.nvim/plugin/telescope.lua:108: in function <...ocal/share/nvim/lazy/telescope.nvim/plugin/telescope.lua:107>
Error executing Lua callback: ...s.nvim/lua/telescope/_extensions/lazy_plugins/finder.lua:106: Missing module in the lazy spec: netman.nvim
stack traceback:
        [C]: in function 'error'
        ...s.nvim/lua/telescope/_extensions/lazy_plugins/finder.lua:42: in function 'get_module_filepath'
        ...s.nvim/lua/telescope/_extensions/lazy_plugins/finder.lua:77: in function 'collect_config_files'
        ...s.nvim/lua/telescope/_extensions/lazy_plugins/finder.lua:106: in function 'add_plugin'
        ...s.nvim/lua/telescope/_extensions/lazy_plugins/finder.lua:150: in function 'get_plugins_data'
        ...s.nvim/lua/telescope/_extensions/lazy_plugins/finder.lua:184: in function 'finder'
        ...s.nvim/lua/telescope/_extensions/lazy_plugins/picker.lua:29: in function <...s.nvim/lua/telescope/_extensions/lazy_plugins/picker.lua:10>
        ...share/nvim/lazy/telescope.nvim/lua/telescope/command.lua:193: in function 'run_command'
        ...share/nvim/lazy/telescope.nvim/lua/telescope/command.lua:259: in function 'load_command'
        ...ocal/share/nvim/lazy/telescope.nvim/plugin/telescope.lua:108: in function <...ocal/share/nvim/lazy/telescope.nvim/plugin/telescope.lua:107>

given the stacktrace, it could also mean that the offending netman.nvim needs an update? But maybe we can take a look and see whether this is something that the lazy plugin can support (or get around)

i3d commented 1 week ago

ok, looks like this is probably not netman.nvim specific, every time when invoking lazy_plugins, it will complain different packages.

polirritmico commented 1 week ago

Hi, thanks for the bug report.

Check #10. It's the same problem, but is throwing an error in your case because you haven't set a valid lazy_config path. I'm going to check out the new lazy.nvim implementation and see if I can fix this during the week.