You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This message appears randomly and I often cannot repeat it. It appears when executing the GitSignsUpdate autocmd.
Attached is the traceback from running nvim -V20log, then splitting to a tracked file using vsp:
Executing User Autocommands for "GitSignsUpdate"
autocommand <Lua 321: ~/.config/nvim/plugin/path/to/autocmd.lua>
chdir(/path/to/opened/file)
chdir(/path/to/.config/nvim/plugin/)
chdir(/path/to/opened/file)
Executing:
Error executing vim.schedule lua callback: .../share/nvim/plugged/gitsigns.nvim/lua/gitsigns/async.lua:76: The coroutine failed with this message: vim/shared.lua:0: Expected table, got nil
stack traceback:
[C]: in function 'assert'
vim/shared.lua: in function 'tbl_isempty'
...are/nvim/plugged/gitsigns.nvim/lua/gitsigns/diff_int.lua:72: in function 'run_diff'
...hare/nvim/plugged/gitsigns.nvim/lua/gitsigns/manager.lua:424: in function 'fn'
...are/nvim/plugged/gitsigns.nvim/lua/gitsigns/debounce.lua:76: in function 'update'
...share/nvim/plugged/gitsigns.nvim/lua/gitsigns/attach.lua:365: in function 'fn'
...are/nvim/plugged/gitsigns.nvim/lua/gitsigns/debounce.lua:76: in function 'attach_throttled'
...share/nvim/plugged/gitsigns.nvim/lua/gitsigns/attach.lua:426: in function <...share/nvim/plugged/gitsigns.nvim/lua/gitsigns/attach.lua:425>
stack traceback:
[C]: in function 'error'
.../share/nvim/plugged/gitsigns.nvim/lua/gitsigns/async.lua:76: in function 'cb'
.../share/nvim/plugged/gitsigns.nvim/lua/gitsigns/async.lua:113: in function 'cb'
.../share/nvim/plugged/gitsigns.nvim/lua/gitsigns/async.lua:186: in function <.../share/nvim/plugged/gitsigns.nvim/lua/gitsigns/async.lua:184>
See attached traceback. Note that after refreshing the file, the traceback does not reappear.
Minimal config
forname, urlinpairs{
gitsigns='https://github.com/lewis6991/gitsigns.nvim',
-- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
} dolocalinstall_path=vim.fn.fnamemodify('gitsigns_issue/'..name, ':p')
ifvim.fn.isdirectory(install_path) ==0thenvim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
endvim.opt.runtimepath:append(install_path)
endrequire('gitsigns').setup{
debug_mode=true, -- You must add this to enable debug messages-- ADD GITSIGNS CONFIG THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
}
-- ADD INIT.LUA SETTINGS THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUEvim.api.nvim_create_autocmd('User', {
pattern='GitSignsUpdate',
callback=function()
localbranch=vim.b.gitsigns_headifbranch~=nilthenlocalhunks_tb=gitsigns.get_hunks(vim.api.nvim_get_current_buf())
ifhunks_tb~=nilthenprint(vim.inspect(hunks_tb))
endendend
})
Steps to reproduce
nvim --clean -u minimal.lua
open a tracked file using vsp, pray that this glitch occurs as it seems random
Gitsigns debug messages
No response
The text was updated successfully, but these errors were encountered:
Description
This message appears randomly and I often cannot repeat it. It appears when executing the
GitSignsUpdate
autocmd.Attached is the traceback from running
nvim -V20log
, then splitting to a tracked file usingvsp
:Neovim version
NVIM v0.10.0-dev-1035+g65d337800 \ Build type: Release \ LuaJIT 2.1.1693350652
Operating system and version
Linux 6.4.12-arch1-1
Expected behavior
I expect this error to not occur.
Actual behavior
See attached traceback. Note that after refreshing the file, the traceback does not reappear.
Minimal config
Steps to reproduce
nvim --clean -u minimal.lua
vsp
, pray that this glitch occurs as it seems randomGitsigns debug messages
No response
The text was updated successfully, but these errors were encountered: