CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

Reindex files

Open Urkman opened this issue 6 months ago • 5 comments

Copilot keeps working with outdated (changed) files.

Describe the bug When there are changes to a file, Copilot keeps working with the old outdated files. Even when I start a new chat or tell him to reload the files

It would be nice to have a way to manually reindex the files

Urkman avatar Jun 28 '25 11:06 Urkman

There is also a problem with reindexing the files internally. When doing changes in multiple steps he overrides the changes from the previous step. And this could get back and force, see my screenshot.

Image

Urkman avatar Jun 29 '25 11:06 Urkman

Here one more example, where Copilot loses the context of it's own last changes to a file.

Image

Urkman avatar Jun 29 '25 14:06 Urkman

Hi @Urkman, thanks for reaching out.

  1. As to the issue Copilot keeps working with outdated (changed) files, Could you share more context like:

    • The version of GitHub Copilot for Xcode
    • The sample of the folder structure of the workspace / project
    • The log located at ~/Library/Logs/GitHubCopilot, named by github-copilot-for-xcode.log.
  2. As to the Copilot loses the context of it's own last changes to a file, it may related to the editing file tool. The tool got improved within the latest version 0.38.0

lijie-lee avatar Jul 01 '25 02:07 lijie-lee

1.) This is easy to reproduce:

  • just ask Copilot to add a function to a class.
  • make manual changes to that class.
  • ask Copilot to add another function to the class. Now the manual changes are reverted.

2.) This is still not solved, see screenshot. It's still a back and forth between adding and removing code...

Infos:

  • Copilot Version: 0.38.0
  • This is a default Xcode project, nothing special.
Image

Urkman avatar Jul 02 '25 15:07 Urkman

I can confirm this is still the case, and extremely annoying to the point of rendering Copilot often useless. Basically as soon as you make a small change to a file, Copilot won't know it was changed until I specifically explain it. So with Copilot I not only have to look at what it did, I have to also keep track of the parallel dimension it's working on. See screenshots below where Copilot itself is explaining this pitfall and that there's supposedly no way to avoid it without being explicit about rechecking files and particular lines of code.

Image Image Image Image

vlad-roid avatar Sep 03 '25 05:09 vlad-roid