Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/commit not rebuilding repo map #729

Closed
ErykCh opened this issue Jun 25, 2024 · 10 comments
Closed

/commit not rebuilding repo map #729

ErykCh opened this issue Jun 25, 2024 · 10 comments
Labels
question Further information is requested

Comments

@ErykCh
Copy link

ErykCh commented Jun 25, 2024

Issue

Hi,

I added files to the project, requested in #728 and I did /commit.

But it seems that /commit is not updating repo map because I'm not able to add new files using /add

/ls also not display them

Version and model info

No response

@ErykCh
Copy link
Author

ErykCh commented Jun 25, 2024

I use Visual Studio to preview code. And I did one refactoring outside Aider. And it looks like VS didn't add these files to the metadata kept in the .git directory

Because it looks like Aider uses data saved in .git and not actual files in the system.

It helped to do:
git update-index --really-refresh

so it looks like doing /commit in Aider after doing refactoring in an external tool doesn't update all files

@paul-gauthier paul-gauthier added the question Further information is requested label Jun 25, 2024
@paul-gauthier
Copy link
Owner

Thanks for trying aider and filing this issue.

Aider can only work with files that are part of your git repo. If you create new files, you need to git add them before aider can work with them.

@ErykCh
Copy link
Author

ErykCh commented Jun 28, 2024

I think it would be helpful if Aider verified the state of the repository before sending a query to the model.

It should say that in the meantime someone has modified the files and its status is not up to date.

It's best if /commit not only commits, but also adds all new files to the project. Then you can change it to some /sync command and then the description that if you make modifications outside the aider, you must synchronize the Aider before you start asking further questions.

@paul-gauthier
Copy link
Owner

Aider always uses the current state of the repo.

@ErykCh
Copy link
Author

ErykCh commented Jun 30, 2024

Yes, but the question is if Aider can check if current state of the repo is synchronized with file system?

@paul-gauthier
Copy link
Owner

I'm not sure I understand your question.

@ErykCh
Copy link
Author

ErykCh commented Jul 1, 2024

yeah, bots still need to evolve a bit as they respond to issues added by users on github.

Can you tell me your bot's name?

@paul-gauthier
Copy link
Owner

This tool is called aider.

@ErykCh
Copy link
Author

ErykCh commented Jul 3, 2024

Nice.
Well, I will say that he handles tickets quite well, he rarely gets lost. Unless you or the bot respond alternately :-)

@paul-gauthier
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants