Closed aelaguiz closed 2 months ago
Thanks for trying aider and filing this issue. This doc may be helpful:
https://aider.chat/docs/troubleshooting/edit-errors.html
It looks like you added a lot of files to the chat?
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 functionally on large projects I am finding myself spending a lot of time managing what is in the chat context.
For me sometimes I get it set up perfectly and then something happens, I lose it, and this can take a while in large projects.
Is there something I'm missing that would allow me to save my context setup, for when I'm working on specific parts of the code base for instance?
Can you help me understand this better? What does it mean to set up your context? How does this setup differ in different "parts of the code base"?
I'm happy to try and help if I can understand the need better.
Sorry for the slow response here.
So for instance in a code tree that looks like:
If I'm working on unit tests + module 3, I frequently will find that to get the right answers from the LLM it really does need to have the headers from module1 & 2 in the chat context.
So I'll add:
module1/class1.h module1/class2.h module3/my_class.cpp module3/my_class.h unittests/test_my_class.cpp
Obviously quite simplified, but I'm working on an AI system and frequently getting the exact correct files in context is the difference between a nonsensical answer from aider. + sonnet 3.5 or something really helpful.
The process of getting the right items into the chat can be cumbersome and if I accidentally close aider I have to start over.
Inside vs code I actually use different workspace layouts for different parts of project so I can see the things I need to in the right way while I'm coding. That's the analogy I use in my head when describing what I'm doing to set up aider properly.
Is this making any sense, I apologize if it's hard to follow. I'm sure you've got a feature that I'm ignorant of that would make this easier.
You could launch aider with the right set of files from the command line. And then use your shell history to launch aider with different collections of files?
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.
Issue
After a chat-mode ask I told aider to make the change, it showed diffs but didn't actually make the change even though diffs were correct.
Unrelated...Paul is there anything I can do to support the project? I have minimal time to contribute, are you accepting corporate donations?
Version and model info
Aider v0.47.1 Models: claude-3-5-sonnet-20240620 with diff edit format, weak model claude-3-haiku-20240307 Git repo: .git with 1,814 files Warning: For large repos, consider using an .aiderignore file to ignore irrelevant files/dirs. Repo-map: using 1024 tokens