After #336 was merged, creating a new file in Neovim and attempting to complete with Copilot triggers the following error, disrupting the completion process:
Error executing vim.schedule lua callback: ...oad/nvim-linux64/share/nvim/runtime/lua/vim/lsp/util.lua:178: Invalid encoding: ""
stack traceback:
[C]: in function 'error'
...oad/nvim-linux64/share/nvim/runtime/lua/vim/lsp/util.lua:178: in function 'get_line_byte_from_position'
...oad/nvim-linux64/share/nvim/runtime/lua/vim/lsp/util.lua:485: in function 'apply_text_edits'
...l/share/nvim/lazy/copilot.lua/lua/copilot/suggestion.lua:491: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
set encoding? shows encoding=utf-8. Closing and reopening the file resolves the issue.
NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1713484068
After #336 was merged, creating a new file in Neovim and attempting to complete with Copilot triggers the following error, disrupting the completion process:
set encoding?showsencoding=utf-8. Closing and reopening the file resolves the issue.NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1713484068