akinsho / git-conflict.nvim

A plugin to visualise and resolve merge conflicts in neovim
1k stars 35 forks source link

GitConflictListQf attempt to perform arithmetic on field 'range_start' #8

Closed ram02z closed 2 years ago

ram02z commented 2 years ago

nvim version: NVIM v0.7.0-dev+1364-g118409726

Reproduction:

  1. git clone https://github.com/ram02z/conflict-demo && cd conflict-demo
  2. git merge origin/demo
  3. nvim test.txt
  4. Run GitConflictListQf

Error traceback:

2> function: builtin#18 ...pack/packer/start/git-conflict.nvim/lua/git-conflict.lua:616: attempt to perform arithmetic on field 'range_start
' (a nil value)
stack traceback:
^I...pack/packer/start/git-conflict.nvim/lua/git-conflict.lua:616: in function 'quickfix_items_from_positions'
^I...pack/packer/start/git-conflict.nvim/lua/git-conflict.lua:643: in function 'callback'
^I...pack/packer/start/git-conflict.nvim/lua/git-conflict.lua:602: in function 'callback'
^I...acker/start/git-conflict.nvim/lua/git-conflict/utils.lua:13: in function <...acker/start/git-conflict.nvim/lua/git-conflict/utils.lua:1
akinsho commented 2 years ago

Thanks for pointing this out @ram02z, should be fixed now

thieung commented 2 years ago

I'm still facing this issue @akinsho

akinsho commented 2 years ago

@thieung can you provide instructions on how to reproduce what you are seeing, as the OP here kindly did. That makes debugging much easier