-
Notifications
You must be signed in to change notification settings - Fork 278
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
unexpected changes in 3.8.4 #4717
Comments
@mr-git what kind of fix are you requesting, specifically? restore the bug that was there before? |
oh, I didn't expected that the default was intended to be 4. |
I am getting unexpected doc changes too. I can create another issue if needed. https://github.com/ekrich/sconfig/pull/416/files |
@ekrich yes, please, separate issue. |
@ekrich correction: for these changes, there's an issue submitted already. but you need to change
to
yourself. |
i am closing this particular issue since it refers to a bug that had been properly fixed. |
Only now I found the https://scalameta.org/scalafmt/docs/configuration.html#indentdefnsite and I've missed that 4 years ago in c61232c config name changed from |
are you saying that
|
probably something else is affecting the formatting in our case... Our config is:
When I change version to 3.8.4, all multi-line case class and function definitions get reformatted, which is unexpected. When I replace I cannot repeat the issue on Scala 3 project with smaller config:
Could it be, that something else affects application of |
Honestly, I was not fully aware how the scalafmt config is defined - I inherited the project with config and made [wrong] assumption that default indent is |
i don't see anything that springs at me. is your case available to check out and try? paldies. |
you can try with https://github.com/evolution-gaming/kafka-journal, I just tried to update version to 3.8.4 and ran |
evolution-gaming/kafka-journal#711 - PR for upgrade to 3.8.4 - it, unexpectedly, affected 128 files :( |
Required: Configuration
Please paste the smallest possible set of
.scalafmt.conf
configuration parameters that reproduces the problem:
Steps
Given code like this:
Problem
Scalafmt formats code like this:
There are extra 2 spaces added before
field: Int
Expectation
I would like the formatted output to look like this:
Workaround
Have to add extra config:
The text was updated successfully, but these errors were encountered: