Skip to content

Document for URI could not be found: file:///real/path/file.txt #657

Description

@carlos-algms

If the file name changes, in the same buffer, every key press triggers an error until you reset neovim.

[Copilot.lua] RPC[Error] code_name = InvalidParams, message = "Document for URI could not be found: 
  file:///redacted/file.txt"

This can happen when:

  1. a new file got saved and hence gets a new name
  2. user run :file new-name.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions