Very difficult to reproduce, but occasionally when I start Neovim, I get the following error (which I've had for several months already):
Error executing luv callback:
...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/async.lua:105: The coroutine failed with this message: ...ocal/share/nvim/l
azy/gitsigns.nvim/lua/gitsigns/diff.lua:8: module 'gitsigns.diff_int' not found:
no field package.preload['gitsigns.diff_int']e/luajit-2.1.0-beta3/gitsigns/diff_int.lua'
cache_loader: module gitsigns.diff_int not found
cache_loader_lib: module gitsigns.diff_int not found
no file './gitsigns/diff_int.lua'
no file '/home/axie/dev/neovim/.deps/usr/share/luajit-2.1.0-beta3/gitsigns/diff_int.lua'
no file '/usr/local/share/lua/5.1/gitsigns/diff_int.lua'
no file '/usr/local/share/lua/5.1/gitsigns/diff_int/init.lua'
no file '/home/axie/dev/neovim/.deps/usr/share/lua/5.1/gitsigns/diff_int.lua'
no file '/home/axie/dev/neovim/.deps/usr/share/lua/5.1/gitsigns/diff_int/init.lua'
no file './gitsigns/diff_int.so'
no file '/usr/local/lib/lua/5.1/gitsigns/diff_int.so'
no file '/home/axie/dev/neovim/.deps/usr/lib/lua/5.1/gitsigns/diff_int.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './gitsigns.so'
no file '/usr/local/lib/lua/5.1/gitsigns.so'
no file '/home/axie/dev/neovim/.deps/usr/lib/lua/5.1/gitsigns.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
...ocal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/diff.lua:8: in function 'run_diff'
...l/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/manager.lua:304: in function 'fn'
.../share/nvim/lazy/gitsigns.nvim/lua/gitsigns/debounce.lua:76: in function 'update'
...al/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/attach.lua:342: in function 'fn'
.../share/nvim/lazy/gitsigns.nvim/lua/gitsigns/debounce.lua:76: in function 'attach_throttled'
...al/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/attach.lua:408: in function 'attach'
...ie/.local/share/nvim/lazy/gitsigns.nvim/lua/gitsigns.lua:132: in function 'setup_attach'
...ie/.local/share/nvim/lazy/gitsigns.nvim/lua/gitsigns.lua:191: in function <...ie/.local/share/nvim/lazy/gitsigns.n
vim/lua/gitsigns.lua:167>
stack traceback:
[C]: in function 'error'
...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/async.lua:105: in function 'cb'
...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/async.lua:140: in function 'callback'
...hare/nvim/lazy/gitsigns.nvim/lua/gitsigns/subprocess.lua:93: in function <...hare/nvim/lazy/gitsigns.nvim/lua/gits
igns/subprocess.lua:83>
[C]: in function 'nvim_get_runtime_file'
vim/loader.lua: in function 'get_rtp'
vim/loader.lua: in function 'find'
vim/loader.lua: in function <vim/loader.lua:0>
[C]: in function 'require'
/home/axie/.config/nvim/lua/axie/plugins/lsp/aerial.lua:9: in function 'config'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:323: in function <...local/share/nvim/lazy/lazy.nvim/lua/
lazy/core/loader.lua:321>
...
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:306: in function '_load'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:180: in function 'load'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:467: in function 'auto_load'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:482: in function <...local/share/nvim/lazy/lazy.nvim/lua/
lazy/core/loader.lua:478>
[C]: at 0x55ba053f41e0
[C]: in function 'pcall'
/home/axie/.config/nvim/lua/axie/winbar.lua:90: in function 'context'
/home/axie/.config/nvim/lua/axie/winbar.lua:143: in function </home/axie/.config/nvim/lua/axie/winbar.lua:136>
[C]: in function 'pcall'
/home/axie/.config/nvim/lua/axie/winbar.lua:136: in function </home/axie/.config/nvim/lua/axie/winbar.lua:131>
Here's a video showing how this issue only pops up sometimes:
I'm not sure which plugin is causing this to happen, and it doesn't seem very clear from the error either. Could be related to https://github.com/LunarVim/LunarVim/issues/2490 but not too sure.
Neovim version
NVIM v0.10.0-dev-57+gb85ac8932
Operating system and version
Arch Linux
NOTE: this issue occurs on MacOS as well
Expected behavior
No error
Actual behavior
The error above appears
Minimal config
Full dotfiles in https://github.com/axieax/dotconfig/tree/main/nvim
gitsigns.nvim loaded with "VeryLazy"
Relevant [winbar.lua] config loaded at the end of init.lua:
https://github.com/axieax/dotconfig/blob/eb2aec0d58f7ab882103ad3f3e68dce4ee3f9f93/nvim/lua/axie/winbar.lua
Relevant [aerial.lua] config loaded by [winbar.lua]
https://github.com/axieax/dotconfig/blob/eb2aec0d58f7ab882103ad3f3e68dce4ee3f9f93/nvim/lua/axie/plugins/lsp/aerial.lua
Steps to reproduce
nvim
Open a file
Sometimes it produces the error, most often not
Gitsigns debug messages
The following logs were produced when the error occurred
signs.init: Using vimfn signs
dprintf: Highlight GitSignsAdd is already defined
dprintf: Highlight GitSignsChange is already defined
dprintf: Highlight GitSignsDelete is already defined
dprintf: Deriving GitSignsChangedelete from GitSignsChange
dprintf: Deriving GitSignsTopdelete from GitSignsDelete
dprintf: Deriving GitSignsUntracked from GitSignsAdd
dprintf: Deriving GitSignsAddNr from GitSignsAdd
dprintf: Deriving GitSignsChangeNr from GitSignsChange
dprintf: Deriving GitSignsDeleteNr from GitSignsDelete
dprintf: Deriving GitSignsChangedeleteNr from GitSignsChangeNr
dprintf: Deriving GitSignsTopdeleteNr from GitSignsDeleteNr
dprintf: Deriving GitSignsUntrackedNr from GitSignsAddNr
dprintf: Deriving GitSignsAddLn from DiffAdd
dprintf: Deriving GitSignsChangeLn from DiffChange
dprintf: Deriving GitSignsChangedeleteLn from GitSignsChangeLn
dprintf: Deriving GitSignsUntrackedLn from GitSignsAddLn
dprintf: Deriving GitSignsStagedAdd from GitSignsAdd
dprintf: Deriving GitSignsStagedChange from GitSignsChange
dprintf: Deriving GitSignsStagedDelete from GitSignsDelete
dprintf: Deriving GitSignsStagedChangedelete from GitSignsChangedelete
dprintf: Deriving GitSignsStagedTopdelete from GitSignsTopdelete
dprintf: Deriving GitSignsStagedAddNr from GitSignsAddNr
dprintf: Deriving GitSignsStagedChangeNr from GitSignsChangeNr
dprintf: Deriving GitSignsStagedDeleteNr from GitSignsDeleteNr
dprintf: Deriving GitSignsStagedChangedeleteNr from GitSignsChangedeleteNr
dprintf: Deriving GitSignsStagedTopdeleteNr from GitSignsTopdeleteNr
dprintf: Deriving GitSignsStagedAddLn from GitSignsAddLn
dprintf: Deriving GitSignsStagedChangeLn from GitSignsChangeLn
dprintf: Could not derive GitSignsStagedDeleteLn
dprintf: Deriving GitSignsStagedChangedeleteLn from GitSignsChangedeleteLn
dprintf: Could not derive GitSignsStagedTopdeleteLn
dprintf: Highlight GitSignsAddPreview is already defined
dprintf: Highlight GitSignsDeletePreview is already defined
dprintf: Deriving GitSignsCurrentLineBlame from NonText
dprintf: Deriving GitSignsAddInline from TermCursor
dprintf: Deriving GitSignsDeleteInline from TermCursor
dprintf: Deriving GitSignsChangeInline from TermCursor
dprintf: Deriving GitSignsAddLnInline from GitSignsAddInline
dprintf: Deriving GitSignsChangeLnInline from GitSignsChangeInline
dprintf: Deriving GitSignsDeleteLnInline from GitSignsDeleteInline
dprintf: Deriving GitSignsDeleteVirtLn from DiffDelete
dprintf: Deriving GitSignsDeleteVirtLnInLine from GitSignsDeleteLnInline
attach(1): Attaching (trigger=setup)
run_job: git --version
run_job: git --no-pager --literal-pathspecs -c gc.auto=0 config user.name
run_job: git --no-pager --literal-pathspecs -c gc.auto=0 rev-parse --show-toplevel --absolute-git-dir --abbrev-ref HEAD
run_job: git --no-pager --literal-pathspecs -c gc.auto=0 --git-dir /home/axie/dotconfig/.git -c core.quotepath=off ls-files --stage --others --exclude-standard --eol /home/axie/do
tconfig/nvim/lua/axie/plugins/editor/init.lua
watch_gitdir(1): Watching git dir
run_job: git --no-pager --literal-pathspecs -c gc.auto=0 --git-dir /home/axie/dotconfig/.git show :0:nvim/lua/axie/plugins/editor/init.lua
cli.run: Running action 'debug_messages' with arguments {}
cli.run: Running action 'debug_messages' with arguments {}
cli.run: Running action 'dump_cache' with arguments {}
cli.run: Running action 'debug_messages' with arguments {}
Description
Very difficult to reproduce, but occasionally when I start Neovim, I get the following error (which I've had for several months already):
Here's a video showing how this issue only pops up sometimes:
https://user-images.githubusercontent.com/62098008/234017791-8b39de56-94ce-4eb8-9e26-a9561360d401.mp4
I'm not sure which plugin is causing this to happen, and it doesn't seem very clear from the error either. Could be related to https://github.com/LunarVim/LunarVim/issues/2490 but not too sure.
Neovim version
NVIM v0.10.0-dev-57+gb85ac8932
Operating system and version
Arch Linux
NOTE: this issue occurs on MacOS as well
Expected behavior
No error
Actual behavior
The error above appears
Minimal config
Steps to reproduce
nvim
Gitsigns debug messages
The following logs were produced when the error occurred