-
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
Can't align def and val on the same token #3465
Comments
@Driox unfortunately, for now, i don't know how to fix this problem. it was probably introduced in #3335, to be able to align parameters on adjacent lines, as requested by another user. alas, your use case was not protected by regression tests at that time. since you have both to make this work, we'd have to rewrite the entire alignment logic, to be able to assign priority to alignment stops, remove assumptions about alignment stops being contiguous etc., and i don't have the time to do that. |
I can't align def and val on the same token
This used to work on previous version, like
3.5.9
NB: this issue follow the discussion here
Configuration (required)
Command-line parameters (required)
When I run scalafmt via CLI like this:
Steps
Given code like this:
Problem
Scalafmt formats code like this:
Expectation
I would like the formatted output to look like this:
Note
this is the output when I switch version to 3.5.9
=
The text was updated successfully, but these errors were encountered: