copilot.lua icon indicating copy to clipboard operation
copilot.lua copied to clipboard

invalid document uri

Open Aqothy opened this issue 7 months ago • 1 comments

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"

Aqothy avatar May 21 '25 01:05 Aqothy

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 😂

AntoineGS avatar May 21 '25 01:05 AntoineGS

[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,
})

jamylak avatar Aug 10 '25 06:08 jamylak