NeogitOrg / neogit

An interactive and powerful Git interface for Neovim, inspired by Magit
MIT License
3.64k stars 218 forks source link

Opening Neogit: bisect.lua:91: Attempt to index local 'oid' (a nil value) #1309

Closed fnune closed 1 month ago

fnune commented 1 month ago

Description

image

...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:18: The coroutine failed with this message: ...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:18: The coroutine failed with this message: ...sh
are/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:18: The coroutine failed with this message: ...cal/share/nvim/lazy/neogit/lua/neogit/lib/git/bisect.lua:91: attempt to index local 'oid' (a nil value)
stack traceback:
^I[C]: in function 'error'
^I...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:18: in function 'callback_or_next'
^I...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:45: in function 'cb'
^I...sto/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:278: in function <...sto/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:244>
Press ENTER or type command to continue

I get this when opening Neogit for the first time.

If I do it again, Neogit succeeds in rendering partially:

image

(note that there's no commit history)

Sometimes, Neogit succeeds in rendering completely, but only after a second attempt:

image

Neovim version

~/.home.nix => nvim --version NVIM v0.10.0 Build type: Release LuaJIT 2.1.1693350652 Run "nvim -V1 -v" for more info

Operating system and version

~/.home.nix => uname -a Linux feanor 6.8.10 #1-NixOS SMP PREEMPT_DYNAMIC Fri May 17 10:15:12 UTC 2024 x86_64 GNU/Linux

Steps to reproduce

Expected behavior

No response

Actual behavior

Partial rendering, have to restart

Minimal config

-
fnune commented 1 month ago

See https://github.com/NeogitOrg/neogit/issues/1308#issuecomment-2122021531

Sorry about the noise: this seems to have healed itself.