-
Notifications
You must be signed in to change notification settings - Fork 282
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
SearchStateExploded error #605
Comments
I thought you would pick up on this. I know, I'm a monster! Thanks for the quick response. |
Good news @cb372, see https://github.com/olafurpg/scalafmt/pull/621 Your ridiculously verbose test has now become a scalafmt unit test :D The change is limited to Term.Apply with a large number of arguments and large bodies. In those cases, scalafmt will force "config style" and dequeue the search space at the start of every argument. The optimization is controlled by two magic numbers, which are configurable inside I'll include this for v0.5! |
Closing this since your particular example now formats easily. |
Yay! Thanks for the fix! I love your flamegraph-style test output by the way. |
Version: 0.4.10
Integration: coursier, via my poor man's sbt plugin
Configuration:
maxColumn = 120; project.git = true
The input is this ridiculously verbose test I just wrote.
The text was updated successfully, but these errors were encountered: