aider icon indicating copy to clipboard operation
aider copied to clipboard

Refresh files content

Open asystat opened this issue 1 year ago • 3 comments

When using aider, I always modify my project files myself through the IDE, using aider as some kind of "helper" to improve parts of the code and such. But, when I modify the files myself on the IDE and save them, aider seems to not be aware of the changes made, so from then on, any aider git directives fail. I solve this by restarting aider or removing and and adding the files again, but it would be nice if aider was aware of the changes made automatically.

Thanks for the great work

asystat avatar Apr 14 '24 18:04 asystat

Thanks for trying aider and filing this issue.

As long as you save the edits in your IDE, aider should see them and always be working off the latest copy of the files.

What makes you think aider is not seeing the changes after you edit files in your IDE?

paul-gauthier avatar Apr 15 '24 19:04 paul-gauthier

Maybe I didn't diagnose the behavior right. I assumed this was the case because when I make changes myself on the code, usually aider starts making mistakes on the git directives, resulting in aider falling a loop trying to fix its own commits. But you are right, apparently it does know the content of the file, even after modified.

Anyways, when this happens, I ctrl+c aider and fix the code by hand myself. are there any additional tips or ways of using it so that it doesn't incur in git errors and me having to constantly fix the changes?

asystat avatar Apr 16 '24 12:04 asystat

There's a FAQ entry that might contain helpful information:

https://aider.chat/docs/faq.html#aider-isnt-editing-my-files

paul-gauthier avatar Apr 17 '24 17:04 paul-gauthier

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.

paul-gauthier avatar Apr 23 '24 20:04 paul-gauthier