-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
black 24.4.1 hangs with python 3.10.12 #4330
Comments
Can reproduce on Python 3.11.4 only running Black on the |
Minimum reproducible example seems to be: f'{{\\"kind\\":\\"ConfigMap\\",\\"metadata\\":{{\\"annotations\\":{{}},\\"name\\":\\"cluster-info\\",\\"namespace\\":\\"amazon-cloudwatch\\"}}}}' Black 24.4.1, stable style, all default options |
Thanks @RedGuy12, I was just starting to try and minimize when you posted that :) I used py-spy to figure out what Black is doing, and it's just stuck in the tokenizer: So it's somewhere in |
@JelleZijlstra using I'm looking into the issues as well now. |
Fix in #4331. |
Thanks! |
Describe the bug
black hangs and does not exit.
To Reproduce
Sending ^C:
Expected behavior
Not hang
Environment
Additional context
Black 24.4.0 works fine
The text was updated successfully, but these errors were encountered: