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
I would like the formatted output to look like this:
deftest=Option("").map(identity)
Workaround
¯_(ツ)_/¯ :)
Notes
The trailing comma here is "bad" - I ended up having it by accident (it was a tuple at some point, then I no longer needed a tuple there but didn't clean up the parens and the comma).
In this minified example scalafmt produces broken code, but in my project the file that contained this pattern was larger (though it was simple, no deep nesting etc) – there, scalafmt is exploding with this:
scalafmt: Search state exploded on ',∙.[4915:4926]', line 148
In my case, IDEA is the main driver for scalafmt and in this case the file was just not getting formatted and no messages were shown anywhere – thus I started investigating and ended up with this.
The text was updated successfully, but these errors were encountered:
Configuration (required)
Command-line parameters (required)
Steps
Given code like this:
Problem
Scalafmt formats code like this:
Expectation
I would like the formatted output to look like this:
Workaround
¯_(ツ)_/¯ :)
Notes
The trailing comma here is "bad" - I ended up having it by accident (it was a tuple at some point, then I no longer needed a tuple there but didn't clean up the parens and the comma).
In this minified example scalafmt produces broken code, but in my project the file that contained this pattern was larger (though it was simple, no deep nesting etc) – there, scalafmt is exploding with this:
In my case, IDEA is the main driver for scalafmt and in this case the file was just not getting formatted and no messages were shown anywhere – thus I started investigating and ended up with this.
The text was updated successfully, but these errors were encountered: