Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assertion fails in coroutine #814

Closed
folke opened this issue Jun 14, 2023 · 1 comment
Closed

assertion fails in coroutine #814

folke opened this issue Jun 14, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@folke
Copy link

folke commented Jun 14, 2023

Description

I'm randomly getting the error below with the latest updates. Not sure what's causing it.

If the error message would not be enough, let me know and I'll try to reproduce it somehow.

Error executing vim.schedule lua callback: ...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/async.lua:76: The coroutine failed with this message: ...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/hunks.lua:348: assertion failed!
stack traceback:
	[C]: in function 'assert'
	...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/hunks.lua:348: in function 'compare_heads'
	...l/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/manager.lua:438: in function 'fn'
	.../share/nvim/lazy/gitsigns.nvim/lua/gitsigns/debounce.lua:76: in function <.../share/nvim/lazy/gitsigns.nvim/lua/gitsigns/debounce.lua:62>
stack traceback:
	[C]: in function 'error'
	...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/async.lua:76: in function 'cb'
	...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/async.lua:113: in function 'cb'
	...l/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/manager.lua:38: in function <...l/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/manager.lua:36>

Neovim version

nightly

Operating system and version

arch

Expected behavior

No response

Actual behavior

error

Minimal config

for name, url in pairs{
  gitsigns = 'https://github.com/lewis6991/gitsigns.nvim',
  -- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
} do
  local install_path = vim.fn.fnamemodify('gitsigns_issue/'..name, ':p')
  if vim.fn.isdirectory(install_path) == 0 then
    vim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
  end
  vim.opt.runtimepath:append(install_path)
end

require('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 ISSUE

Steps to reproduce

  1. nvim --clean -u minimal.lua
  2. ...

Gitsigns debug messages

No response

@folke folke added the bug Something isn't working label Jun 14, 2023
@folke
Copy link
Author

folke commented Jun 14, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant