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
{{ message }}
Repository navigation
bug: LSP assertion failed in sync.lua (compute_end_range) when sending snacks.picker.lines to quickfix #72
When sending the results of snacks.picker.lines (from snacks.nvim) to the quickfix list, quicker.nvim triggers a fatal Neovim LSP assertion error (compute_end_range in sync.lua).
Interestingly, this does not happen when using snacks.picker.grep or Telescope's live_grep. It seems to only occur when searching the current buffer (lines) where the active LSP incremental sync gets confused by the quickfix list update via setqflist.
Error Stack Trace
vim.schedule callback: Vim:Lua callback: ...s/neovim/current/share/nvim/runtime/lua/vim/lsp/sync.lua:225: assertion failed!
stack traceback:
[C]: in function 'assert'
...s/neovim/current/share/nvim/runtime/lua/vim/lsp/sync.lua:225: in function 'compute_end_range'
...s/neovim/current/share/nvim/runtime/lua/vim/lsp/sync.lua:406: in function 'compute_diff'
...rrent/share/nvim/runtime/lua/vim/lsp/_changetracking.lua:106: in function 'incremental_changes'
...rrent/share/nvim/runtime/lua/vim/lsp/_changetracking.lua:314: in function 'send_changes_for_group'
...rrent/share/nvim/runtime/lua/vim/lsp/_changetracking.lua:351: in function 'send_changes'
...p/apps/neovim/current/share/nvim/runtime/lua/vim/lsp.lua:980: in function <...p/apps/neovim/current/share/nvim/runtime/lua/vim/lsp.lua:974>
[C]: in function 'setqflist'
...a/Local/nvim-data/lazy/quicker.nvim/lua/quicker/init.lua:73: in function <...a/Local/nvim-data/lazy/quicker.nvim/lua/quicker/init.lua:70>
stack traceback:
[C]: in function 'setqflist'
...a/Local/nvim-data/lazy/quicker.nvim/lua/quicker/init.lua:73: in function <...a/Local/nvim-data/lazy/quicker.nvim/lua/quicker/init.lua:70>
### What is the severity of this bug?
minor (annoyance)
### Steps To Reproduce
### Steps to Reproduce
1. Open a file with an active LSP server attached.
2. Trigger `Snacks.picker.lines()`.
3. Type something to get search results.
4. Send the results to the quickfix list.
5. The LSP assertion error instantly appears.
### Expected Behavior
The search results from `snacks.picker.lines` should be sent to the quickfix list successfully, and `quicker.nvim` should work smoothly without throwing any LSP assertion errors at the bottom of the screen.
### Minimal example file
_No response_
### Minimal init.lua
```Lua
In my case the issue was because i had the copilot lsp ( https://github.com/zbirenbaum/copilot.lua ) attaching to the quickfix buffer.
My LLM couldn't find a clean fix for it, it had to patch both quicker.nvim and add some LspAttachFileType auto commands to detach the lsp from the quickfix buffer.
I don't think either are up-streamable.
My guess is that one trigger is a LSP client attaching to the quickfix buffer, then quicker.nvim updates the quickfix list with setqflist, and Neovim LSP incremental sync hits the sync.lua:225 assertion.
This may be better fixed in copilot.lua, but sharing here in case it helps others debug the same stack trace.
Activity
hoyuzhao commentedon Apr 8, 2026
Sorry, submitted by mistake. Closing this
uloco commentedon Apr 22, 2026
@hoyuzhao I am having the same issue... what did you do to solve it?
alcroito commentedon Jun 18, 2026
In my case the issue was because i had the copilot lsp ( https://github.com/zbirenbaum/copilot.lua ) attaching to the quickfix buffer.
My LLM couldn't find a clean fix for it, it had to patch both
quicker.nvimand add someLspAttachFileTypeauto commands to detach the lsp from the quickfix buffer.I don't think either are up-streamable.
bro69noscope commentedon Jul 7, 2026
having similar error, any snacks picker pipe to qf. Haven't tested much, suppressing seems to keep it working just fine.
uloco commentedon Jul 7, 2026
how can i surpress it?
gabrielgnsilva commentedon Jul 31, 2026
I hit the same stack trace on Neovim 0.12.4 with
quicker.nvim,snacks.picker.lines(), andzbirenbaum/copilot.lua.In my case the root cause was that Copilot was attaching to the quickfix buffer.
I confirmed it from inside the quickfix window with:
Output:
{ ft = "qf", bt = "quickfix", listed = false, clients = { "copilot" }, copilot_status = "attached", }Manually detaching Copilot fixed the
sync.lua:225assertion:This workaround prevents Copilot from staying attached to
qfbuffers:My guess is that one trigger is a LSP client attaching to the quickfix buffer, then
quicker.nvimupdates the quickfix list withsetqflist, and Neovim LSP incremental sync hits thesync.lua:225assertion.This may be better fixed in
copilot.lua, but sharing here in case it helps others debug the same stack trace.