copilot.lua
copilot.lua copied to clipboard
invalid document uri
on macOS neovim 0.11
to reproduce, open neovim, :enew, start editing, :w [filename], start insert editing again, this error will show
[Copilot.lua] RPC[Error] code_name = InvalidParams, message = "Document for URI could not be found: file:///Users/aqothy/.dotfiles/test.txt"
Yeah I've seen this too it has been an issue for a while, thanks for opening an issue it'll motivate me to look into it 😂
[Copilot.lua] RPC[Error] code_name = InvalidParams, message = "Document for URI could not be found: file:///Users/james/bar/cppdebugtest/14/spectre"
I had this error
In my case fixed with
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = { "spectre_panel" },
callback = function()
vim.b.copilot_suggestion_auto_trigger = false
end,
})