-
Notifications
You must be signed in to change notification settings - Fork 277
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
ScalafmtSbtReporter$ScalafmtSbtError: scalafmt: Search state exploded #3141
Comments
Facing the same issue. Trying to re-create a build will post it here shortly. |
@AlexITC @tusharmath where in the documentation did you look fo ways to deal with this? i will make sure the answer is there. |
perhaps that's not a good place to explain this problem. ok, I'll add it somewhere in that file, hopefully that will solve the problem |
The documentation is here https://scalameta.org/scalafmt/docs/known-issues.html#deeply-nested-code However, I don't know if my code qualifies for "deeply nested code". |
The other thing that I have observed is that it is happening on line number 267 in |
This template is a guideline, not a strict requirement.
Steps
Unfortunately, I haven't had enough time to isolate the problem but I'm linking a Scala file that crashes scalafmt, the problem seems related to snippets like:
Going to the linked repository and running
sbt scalafmtCheckAll
reproduces the problem.Problem
Scalafmt formats code like this:
Workaround
I have had to disable scalafmt for such file.
The text was updated successfully, but these errors were encountered: