Skip to content

Autocompleting suggestion broken after latest Neovim update #273

@danielpost

Description

@danielpost

After updating Neovim, I'm getting the following error when trying to autocomplete:

E5108: Error executing lua: ...vim/HEAD-0fcbda5/share/nvim/runtime/lua/vim/lsp/util.lua:423: Explicit buffer number is required
stack traceback:
	[C]: in function 'assert'
	...vim/HEAD-0fcbda5/share/nvim/runtime/lua/vim/lsp/util.lua:423: in function 'apply_text_edits'
	...l/share/nvim/lazy/copilot.lua/lua/copilot/suggestion.lua:487: in function <...l/share/nvim/lazy/copilot.lua/lua/copilot/suggestion.lua:445>

It is almost definitely related to this change: neovim/neovim#27614, and I think the fix would be to pass the current buffer here, but I don't know enough about Lua to be 100% sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions