-
Notifications
You must be signed in to change notification settings - Fork 276
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
State Exploded when many members #582
Comments
Yes, this is a shame. It's fixable but requires a change to the best-first search, which I avoid whenever I can. I opened #140 for this exact issue with config-style lists, since it's possible to clear the search queue on between each argument. Your example does not trigger the error for me but any big enough argument list will typically do. I can't promise when I'll get around to fix this. Your options for now are documented here: https://olafurpg.github.io/scalafmt/#Deeplynestedcode |
thanks a lot for your timely feedback. |
@peter-empen #621 fixes a large number of "search state exploded cases. Once v0.5 is out, please give it a try and see if it helps. |
Hi, I get 'State exploded' for the following source:
Version: 0.4.9
Integration: intellij
Configuration:
style = defaultWithAlign
danglingParentheses = true
maxColumn = 120
align.openParenCallSite = true
binPack.callSite = true
binPack.defnSite = true
binPack.parentConstructors = true
binPackImportSelectors = true
indentOperator.exclude = "^(~|&&|\|\|)$"
Scalafmt:
To get rid of this, it suffices to remove some lines.
The text was updated successfully, but these errors were encountered: