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

Ignore directories in repo that have index errors #2764

Merged
merged 3 commits into from
Jan 4, 2025

Conversation

caseymcc
Copy link
Contributor

@caseymcc caseymcc commented Jan 3, 2025

Gracefully handle repos with index errors.

  • skips any directories with indexing issues

@paul-gauthier
Copy link
Collaborator

Can you share a traceback of the problem this is trying to solve?

@caseymcc
Copy link
Contributor Author

caseymcc commented Jan 4, 2025

When running against the UnrealEngine repo (which is quite large and likely the major issue), I was getting the following

~/projects/UnrealEngine$ aider
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Unable to list files in git repo: index out of range
Is your git repo corrupted?
Unable to read git repository, it may be corrupt?
index out of range

Tracking it down it has something todo with Engine/Build/BatchFiles/Linux although the repo itself looks fine. When the IndexError exception occurs the blob has the following

Blob path: Engine/Build/BatchFiles/Linux
Blob type: tree
Blob size: 792 bytes
Blob SHA-1: 5105a8667c86576bd67920c59df26af801b1285e

adding the above just allows it to skip the directory rather then stopping the repo map.

@paul-gauthier paul-gauthier merged commit f88adcf into Aider-AI:main Jan 4, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants