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

local plugins have "log failed" error msg #33

Closed
chrisgrieser opened this issue Dec 20, 2022 · 5 comments · Fixed by #30
Closed

local plugins have "log failed" error msg #33

chrisgrieser opened this issue Dec 20, 2022 · 5 comments · Fixed by #30
Labels
bug Something isn't working

Comments

@chrisgrieser
Copy link

Describe the bug
The four plugins load and work as expected, but in the Lazy window, they get some error message where I cannot figure out what the issue is

Pasted image 2022-12-20 19 05 49

Which version of Neovim are you using?

macOS 13.0.1 (M1)
neovim 0.8.1 (homebrew)
Neovide 0.10.3 (homebrew)

To Reproduce

require("lazy").setup("config/plugin-list", {
       ...
	dev = {
		path = vim.fn.stdpath("config") .. "/my-plugins/",
	},
})
--  config/plugin-list.lua
return {
      {"chrisgrieser/nvim-recorder", dev = true},
     -- the same for the other plugins
}

Log
The log only lists lazy.nvim breaking changes, nothing related to the problem above.

@chrisgrieser chrisgrieser added the bug Something isn't working label Dec 20, 2022
@folke
Copy link
Owner

folke commented Dec 20, 2022

does vim.fn.stdpath("config") .. "/my-plugins/nvim-genghis" exist? And is it a git directory?

@folke
Copy link
Owner

folke commented Dec 20, 2022

This could only happen if those directories are in fact git repos, but they don's have a .git/HEAD file. Can you check if that's the case?

Is there anything special about those repos?

Can you list what files exist under .git/refs and .git/remotes?

@chrisgrieser
Copy link
Author

chrisgrieser commented Dec 20, 2022

Those folders do exist, (otherwise they wouldn't be loaded I guess), and they are git repos.

However, they are git submodules, so they only have a .git file, and therefore no .git/HEAD

@folke folke closed this as completed in 9d12cdc Dec 20, 2022
@folke
Copy link
Owner

folke commented Dec 20, 2022

Should be fixed now!

@chrisgrieser
Copy link
Author

thanks for the quick fixes, works fine now! :)

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

Successfully merging a pull request may close this issue.

2 participants