-
Notifications
You must be signed in to change notification settings - Fork 9
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: libgit2 error on opening <cmd>Fugit2<cr>
#48
Comments
This error should be specific to git repo. Could you share with me your git repo state by running |
Here's just an example in my neovim config
On another repo that's clean
The error occurs in both repos (and in any repo I've tested) |
If there are no private things in those repos, could you help me zip them (including ".git" folder) and send it here. This error happens when libgit2 can't get index for corresponding repo, I need your files to do more investigation :D |
When calling I am, however, able to open |
@zan-preston, can you try with |
Same error with |
@zan-preston, can you wait till tomorrow, I will implement new mechanism to get more meaningful error message from libgit2. For now, -1 error code doesn't show the real error root. |
Yep! Sure thing. I really appreciate all the help. It's certainly seeming like a weird corner case |
I believe I've discovered the issue. To deal with some performance issues on some very large repos we have at $work, I had enabled |
Thank you @zan-preston, to tackle this, you can turn off manyFiles for small repo, or set It's time to create Wiki and add FAQ section :D. Homebrew update are still in progress Homebrew/homebrew-core#166767 |
That's exactly what I did 😄. A potential tip, for the eventual wiki. If you want to fix your existing cloned repo after the fact of changing this config value, you might need to delete your Also, if users aren't comfortable with manipulating their Also, I would say you could close this bug if you'd like now since it wasn't actually a bug related to |
Thank you @zan-preston , the wiki is up https://github.com/SuperBo/fugit2.nvim/wiki |
fyi, homebrew has shipped libgit2 1.8.0 |
Did you check docs and existing issues?
Neovim version (nvim -v)
0.9.5
Operating system/version
MacOS 14.4.1
Describe the bug
When opening fugit with my keybind that maps to
<cmd>Fugit2<cr>
, I hit an error that ends up coming from libgit2.The documentation for libgit2 states this is just a "Generic Git Error".
Below is my plugin config (lazy)
I've attempted reinstalling libgit2, no luck.
Other things of note:
cd
into/opt/homebrew/lib/
(which is a git repo), I CAN invoke fugit WITHOUT ERROR.brew doctor
reports no errors.Steps To Reproduce
fugit2
<cmd>Fugit2<cr>
Expected Behavior
Fugit2 invokes without error.
The text was updated successfully, but these errors were encountered: