You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Black produced different code when formatting a function with a comment over max line length.
To Reproduce
Take this code
deffoo():
context.this_is_here_so_we_get_a_line_that_is_too_long=Bar( # and now it is too longsome=argument
)
Run Black on it
See error
$ black make_black_sick.py
error: cannot format make_black_sick.py: INTERNAL ERROR: Black produced different code on the second pass of the formatter. Please report a bug on https://github.com/psf/black/issues. This diff might be helpful: /tmp/blk_frk8cnu0.log
Oh no! 💥 💔 💥
1 file failed to reformat.
That code issue now formats without error on master.
Since we use the issue tracker as a reflection of what's on master, I'll be closing this issue. If you have any issues, especially with the new (but stable) output, please open a new issue. Oh and the fix should be available in a published release soon, see GH-2125 for more info.
Describe the bug
Black produced different code when formatting a function with a comment over max line length.
To Reproduce
blk_frk8cnu0.log
Expected behavior
The file is reformatted
Environment (please complete the following information):
Does this bug also happen on master?
Yes, show code on black.vercell.app
Additional context
May be related/dupe to #2065
The text was updated successfully, but these errors were encountered: