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
Error executing vim.schedule lua callback: ...l/share/nvim/lazy/copilot-lsp/lua/copilot-lsp/nes/ui.lua:136: Invalid 'end_col': out of range
stack traceback:
[C]: in function 'nvim_buf_set_extmark'
...l/share/nvim/lazy/copilot-lsp/lua/copilot-lsp/nes/ui.lua:136: in function '_display_preview'
...l/share/nvim/lazy/copilot-lsp/lua/copilot-lsp/nes/ui.lua:176: in function '_display_next_suggestion'
...share/nvim/lazy/copilot-lsp/lua/copilot-lsp/nes/init.lua:25: in function 'handler'
.../neovim/0.11.3/share/nvim/runtime/lua/vim/lsp/client.lua:682: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Heres my config for copilot_lsp:
return {
"copilotlsp-nvim/copilot-lsp",
init=function()
vim.g.copilot_nes_debounce=500vim.lsp.enable("copilot_ls")
vim.keymap.set("n", "<tab>", function()
localbufnr=vim.api.nvim_get_current_buf()
localstate=vim.b[bufnr].nes_stateifstatethenlocal_=require("copilot-lsp.nes").apply_pending_nes() andrequire("copilot-lsp.nes").walk_cursor_end_edit()
returnnilelse-- Resolving the terminal's inability to distinguish between `TAB` and `<C-i>` in normal modereturn"<C-i>"endend, { desc="Accept Copilot NES suggestion", expr=true })
end,
opts= {
nes= {
move_count_threshold=3,
},
},
}
It happens when the cursor is close to end of buffer. I don't have space underneath the buffer, it just ends
Activity
tris203 commentedon Sep 2, 2025
I have seen this error before, but have really struggled with a consistent reproduction
I have just been retrying now, and even forcing edits close to the end of a file, i cant reproduce this
frankfriberg commentedon Sep 10, 2025
Yeah, its hard to recreate. I sometimes get it alot but cant find a pattern...
PMassicotte commentedon Nov 6, 2025
Still having that popping all the time.
tris203 commentedon Nov 6, 2025
I think this should be fixed by #60
It would be great if you could test
PMassicotte commentedon Nov 8, 2025
I am no longer receiving errors. Thank you for the fix.