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

Files added to the .aiderignore cannot be added to the repo chat #562

Open
zackees opened this issue Apr 16, 2024 · 4 comments
Open

Files added to the .aiderignore cannot be added to the repo chat #562

zackees opened this issue Apr 16, 2024 · 4 comments
Labels
question Further information is requested

Comments

@zackees
Copy link
Contributor

zackees commented Apr 16, 2024

Previously I submitted a bug report that when files like "install" or "run" or "test" were used, aider would catch onto these keywords and repeatedly ask to include "run" "test". It was suggested that there wouldn't be a fix so I patched it in my front end tool aicode.

However, now I want to work on my ./install and aider refuses because it's in the .aiderignore list.

Can we please allow an exception to this aiderignore when the file is explicitly added to the chat?

@zackees
Copy link
Contributor Author

zackees commented Apr 16, 2024

or have a force option to foce it in the chat. This actually could be simpler

@paul-gauthier
Copy link
Owner

Sorry, I'm not sure I have a great solution other than avoid making files named after very common words if you both want to edit them with aider and do not want aider to offer to add them to chats. Often such little shell scripts are named run.sh or install.sh, for example.

@paul-gauthier paul-gauthier added the question Further information is requested label Apr 17, 2024
@zackees
Copy link
Contributor Author

zackees commented Apr 19, 2024

Yeah. I'm adding them without the extension hence the problem.

I added them to aiderignore, but now when i try to modify an install file aider refuses because it's in the aiderignore.

Just adding exceptions for install/run/test would go a long way. Its these three keywords that are missing up my programming flow. Or else allow /add on a specific hole to break through the aider ignore directive.

@paul-gauthier
Copy link
Owner

I just pushed a change to the main branch that should help here. Aider will not offer to add bare filenames like make or run which may just be words.

The change is available in the main branch. You can get it by installing the latest version from github:

python -m pip install --upgrade git+https://github.com/paul-gauthier/aider.git

If you have a chance to try it, let me know if it works better for you.

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