Internal error due to second pass mismatch #2068
Labels
C: unstable formatting
Formatting changed on the second pass
R: duplicate
This issue or pull request already exists
T: bug
Something isn't working
Describe the bug
Black fails to format a file due to inconsistent subsequent reformatting (
INTERNAL ERROR: Black produced different code on the second pass of the formatter.
)To Reproduce Steps to reproduce the behavior:
➜ ~ cat black_repro.py
Environment (please complete the following information):
Repros on Linux:
and MacOS:
Does this bug also happen on master? To answer this, you have two options:
repros (black.now.sh is amazing stuff btw, thanks!):
Additional context
This bug wasn't found as a result of fuzzing or any other testing technique, it was found in our codebase (if you are a FB employee: https://fburl.com/diffusion/9t7h8e06). I just minimised it a bit.
Thanks!!
The text was updated successfully, but these errors were encountered: