bug(plenary.nvim): Section bug
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
Start by reproducing the gd failure in the neogit diff popup, then trace the nil section access in neogit/lua/neogit/popups/diff/init.lua through neogit/process.lua and plenary/lua/plenary/async/async.lua. Determine whether the incompatibility belongs to plenary or neogit, and confirm the diff popup no longer raises the reported error.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Error Message:
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:18: The coroutine failed with this message: ...l/share/nvim/lazy/neogit/lua/neogit/popups/diff/init.lua:9: attempt to index field 'section' (a nil value)
stack traceback:
[C]: in function 'error'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:18: in function 'callback_or_next'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:45: in function 'step'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:48: in function 'execute'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:118: in function 'callback'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:25: in function 'callback_or_next'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:45: in function 'saved_callback'
...are/nvim/lazy/plenary.nvim/lua/plenary/async/control.lua:126: in function 'tx'
.../share/nvim/lazy/plenary.nvim/lua/plenary/async/util.lua:71: in function 'callback'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:25: in function 'callback_or_next'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:45: in function 'cb'
...rne/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:361: in function <...rne/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:315> function: builtin#18 ...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:18: The coroutine failed with this message: ...l/share/nvim/lazy/neogit/lua/neogit/popups/diff/init.lua:9: attempt to index field 'section' (a nil value)
stack traceback:
[C]: in function 'error'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:18: in function 'callback_or_next'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:45: in function 'step'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:48: in function 'execute'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:118: in function 'callback'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:25: in function 'callback_or_next'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:45: in function 'saved_callback'
...are/nvim/lazy/plenary.nvim/lua/plenary/async/control.lua:126: in function 'tx'
.../share/nvim/lazy/plenary.nvim/lua/plenary/async/util.lua:71: in function 'callback'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:25: in function 'callback_or_next'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:45: in function 'cb'
...rne/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:361: in function <...rne/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:315>
How the error occured:
I was using the neogit plugin, and used the keybind 'gd' which should've opened the difference popup specific to that plugin, it's meant to mimick that functionality of the git command 'git diff'. Just to give context.
Thoughts:
I'm unsure whether this is a Neovim v0.11.1 issue, but I've never seen this issue before, and I believe it to be a compatibility issue with the aforementioned plugin.
Why place issue here and not on the 'neogit.nvim' repo?:
I don't know really to be completely honest. When looking at the paths displayed within the error, they point to plenary.nvim, not anything got to do with the neogit plugin. Or could possibly be due to an update with plenary that neogit itself must cater for instead.
- Vorherrschende Sprache
- Lua
- Sterne
- 3.5k
- Forks
- 340
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Die Einrichtungsdateien dieses Projekts haben wir noch nicht geprüft. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus nvim-lua/plenary.nvim
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
nvim-lua/plenary.nvim#682 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
nvim-lua/plenary.nvim#680 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 45/100
nvim-lua/plenary.nvim#675 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 28/100
nvim-lua/plenary.nvim#672 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
nvim-lua/plenary.nvim#671 · 1 Kommentar ·
Alle Issues in nvim-lua/plenary.nvim
Ähnliche Issues
-
Bug Forever Module - Quest Needs testing/reproduction
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
codymikol/multiverse.nvim#330 ·
Maintainer antworten meist innerhalb von 8 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
-
Mosquito needs triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 91/100
DCS-Skunkworks/dcs-bios#1919 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
Mudlet/Mudlet#11182 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag