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
No popup or error for folders not part of a git repo
Actual behavior
Popup about assertion error executing luv callback:
Error executing luv callback:
... Gitsigns\gitsigns_issue\gitsigns/lua/gitsigns/async.lua:85: The coroutine failed with this message: ...im Gitsigns\gitsigns_issue\gitsigns/lua/gitsigns/git.lua:337: assertion failed!
stack traceback:
[C]: in function 'assert'
...im Gitsigns\gitsigns_issue\gitsigns/lua/gitsigns/git.lua:337: in function 'try_yadm'
...im Gitsigns\gitsigns_issue\gitsigns/lua/gitsigns/git.lua:372: in function 'new'
...im Gitsigns\gitsigns_issue\gitsigns/lua/gitsigns/git.lua:829: in function 'new'
...Gitsigns\gitsigns_issue\gitsigns/lua/gitsigns/attach.lua:270: in function 'fn'
...tsigns\gitsigns_issue\gitsigns/lua/gitsigns/debounce.lua:68: in function 'attach_throttled'
...Gitsigns\gitsigns_issue\gitsigns/lua/gitsigns/attach.lua:424: in function <...Gitsigns\gitsigns_issue\gitsigns/lua/gitsigns/attach.lua:423>
stack traceback:
[C]: in function 'error'
... Gitsigns\gitsigns_issue\gitsigns/lua/gitsigns/async.lua:85: in function 'cb'
... Gitsigns\gitsigns_issue\gitsigns/lua/gitsigns/async.lua:127: in function 'on_exit'
...gram Files\Neovim\share\nvim\runtime/lua/vim/_system.lua:300: in function <...gram Files\Neovim\share\nvim\runtime/lua/vim/_system.lua:270>
Minimal config
forname, urlinpairs{
gitsigns='https://github.com/lewis6991/gitsigns.nvim',
} 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
}
Steps to reproduce
nvim --clean -u minimal.lua
Open a file not in a git repo (including the minimal.lua above)
Description
Whenever I open a file in a folder that isn't part of a git repo, I get an error about an assertion failure.
As this file is not in a git repo, I don't expect gitsigns to be running, or providing error messages.
Neovim version
NVIM v0.10.0-dev-2930+g47ba96a6b
Build type: RelWithDebInfo
LuaJIT 2.1.1710088188
Operating system and version
Windows 10 Pro 22H2 19045.3803
Expected behavior
No popup or error for folders not part of a git repo
Actual behavior
Popup about assertion error executing luv callback:
Minimal config
Steps to reproduce
nvim --clean -u minimal.lua
minimal.lua
above)Gitsigns debug messages
Excluding the lines for deriving the signs
The text was updated successfully, but these errors were encountered: