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
When I start neovim and I trigger above keymap I always get this stack trace, which is not an issue apart from showing up the first time I fire it
Error executing Lua callback: .../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:45: Vim:Error executing Lua callback: ...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/async.lua:105: The coroutine failed with this message: ...l/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/manager.lua:538: attempt to index upvalue 'signs_normal' (a nil value)
stack traceback:
...l/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/manager.lua: in function 'reset_signs'
...l/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/actions.lua:1299: in function 'refresh'
...l/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/actions.lua:201: in function 'f'
...local/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/cli.lua:101: in function <...local/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/cli.lua:73>
stack traceback:
[C]: in function 'error'
...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/async.lua:105: in function 'step'
...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/async.lua:129: in function 'run'
...sa/.local/share/nvim/lazy/gitsigns.nvim/lua/gitsigns.lua:101: in function <...sa/.local/share/nvim/lazy/gitsigns.nvim/lua/gitsigns.lua:100>
[C]: in function 'cmd'
.../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:45: in function <.../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:16>
stack traceback:
[C]: in function 'cmd'
.../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:45: in function <.../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:16>
I made a simple fix by checking that signs_normal is not nil
Neovim version
NVIM v0.9.0 Build type: Release LuaJIT 2.1.0-beta3 system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.0/share/nvim"
Operating system and version
macOS ventura 13.3.1 (a)
Expected behavior
Gitsigns to load without showing any error message, in fact this works well with other functions such as prev_hunk
Actual behavior
It crashes the first time I use the keymap
Minimal config
vim.o.packpath='/tmp/nvim/site'localplugins= {
gitsigns='https://github.com/lewis6991/gitsigns.nvim',
-- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
}
forname, urlinpairs(plugins) dolocalinstall_path='/tmp/nvim/site/pack/test/start/'..nameifvim.fn.isdirectory(install_path) ==0thenvim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
endendrequire('gitsigns').setup{
debug_mode=true, -- You must add this to enable debug messages-- ADD GITSIGNS CONFIG THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
}
vim.keymap.set("n", "<leader>gb", [[<cmd>Gitsigns toggle_current_line_blame<cr>]], { noremap=true, silent=true, desc="Toggle line blame" })
-- ADD INIT.LUA SETTINGS THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
Steps to reproduce
nvim --clean -u minimal.lua
use keymap gb
Gitsigns debug messages
cli.run: Running action 'toggle_current_line_blame' with arguments {}
cli.run: Running action 'debug_messages' with arguments {}
The text was updated successfully, but these errors were encountered:
Description
I use lazy.nvim to load Gitsigns lazily using keymaps like this
When I start neovim and I trigger above keymap I always get this stack trace, which is not an issue apart from showing up the first time I fire it
I made a simple fix by checking that signs_normal is not nil
Neovim version
NVIM v0.9.0 Build type: Release LuaJIT 2.1.0-beta3 system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.0/share/nvim"
Operating system and version
macOS ventura 13.3.1 (a)
Expected behavior
Gitsigns to load without showing any error message, in fact this works well with other functions such as
prev_hunk
Actual behavior
It crashes the first time I use the keymap
Minimal config
Steps to reproduce
nvim --clean -u minimal.lua
Gitsigns debug messages
cli.run: Running action 'toggle_current_line_blame' with arguments {}
cli.run: Running action 'debug_messages' with arguments {}
The text was updated successfully, but these errors were encountered: