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

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

Closed
i3d opened this issue Jun 25, 2024 · 6 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@i3d
Copy link

i3d commented Jun 25, 2024

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
Copy link
Author

i3d commented Jun 25, 2024

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

@polirritmico
Copy link
Owner

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.

@i3d
Copy link
Author

i3d commented Jul 8, 2024

you haven't set a valid lazy_config path

I've added the lazy_config into the extension config, but now I am getting a new error

Error executing Lua callback: ...s.nvim/lua/telescope/_extensions/lazy_plugins/finder.lua:106: Missing module in the lazy spec: edgy.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>
        ...pe-all-recent.nvim/lua/telescope-all-recent/override.lua:105: in function <...pe-all-recent.nvim/lua/telescope-all-recent/override.lua:103>
        ...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>

My config is pretty much like the example shown

    opts = {
      extensions = {
        lazy_plugins = {
          lazy_config = "/home/i3d/.vim/init.lua",
        },
      },
    },

This is the init file that I have lazy setup, like this

require('lazy').setup('plugins', { concurrency = 1, checker = { enabled = true, concurrency = 1, }, })

@polirritmico
Copy link
Owner

To be clear, this is with lazy < v11.0?
If so, try by setting the lazy_spec_table:

    opts = {
      extensions = {
        lazy_plugins = {
          lazy_config = "/home/i3d/.vim/init.lua",
          lazy_spec_table = "/home/i3d/.vim/init.lua",
        },
      },
    },

@i3d
Copy link
Author

i3d commented Jul 8, 2024

To be clear, this is with lazy < v11.0?

No, this is after upgrade to v11.0. So basically, I was experimenting whether adding the lazy_config stanza would solve the problem of lazy v11.0, but looks like it somehow just threw another error... :( Prior to v11.0, nothing is wrong, I didn't even need any of the configs.

@polirritmico polirritmico added the duplicate This issue or pull request already exists label Jul 8, 2024
@polirritmico
Copy link
Owner

Yes, as I wrote before this is the same root problem as #10. I'm going to close this in favour of that one.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants