I tried running the new formatter on my project and it got stuck on a certain file. I eventually narrowed it down to some specific string interpolation code. For example running dart format --enable-experiment=tall-style example.dart with SDK 3.5.0
Thanks! Yeah, I think large strings with complex interpolation expressions are still a corner where the solver can go pathological. I need to think more about how to handle that.
I tried running the new formatter on my project and it got stuck on a certain file. I eventually narrowed it down to some specific string interpolation code. For example running
dart format --enable-experiment=tall-style example.dart
with SDK 3.5.0You can play with the number of rows and columns, but the important bits seem to be:
Playing with the above input:
Note: the formatted output for 4 lines looks like:
FWIW, the original code is a generated SQL statement that glues together different query fragments via function calls.