-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
"IndexError: list index out of range" on all files in folder #2351
Comments
This was due to a misconfigured .gitignore file. Fixed. |
It's great you were able to fix the issue on your own @adamklaff but that uncaught exception + traceback probably wasn't the most easy thing to debug I can imagine! For that I've opened a new issue asking for a more user-friendly error to be emitted when the .gitignore related code blows up :) #2359 Thanks for the report and therefore idea! |
@adamklaff I was looking into your bug and I wasn't able to reproduce it. Do you happen to have the fragment of your Edit: A line with a single backslash ( |
The last line just had a “/“ by itself
… On Jul 9, 2021, at 5:39 AM, Sebastiaan Zeeff ***@***.***> wrote:
@adamklaff I was looking into your bug and I wasn't able to reproduce it. Do you happen to have the fragment of your .gitignore file that triggers the exception? I want to provide a nice solution for #2359.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I'm running black via pipx, and I am getting this on every file I run black on in my project folder. If I move the file outside my project folder, it will process. Any ideas?
The text was updated successfully, but these errors were encountered: