-
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
Router: don't add extra indent for fewer braces #3518
Conversation
Depends on #3514. |
docs/configuration.md
Outdated
indent.fewerBraces | ||
``` | ||
|
||
> In Scala 3.3.0-RC3, only `never` provides compiler-compatible code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we introduce a setting based on something that might be fixed? I would hold off in that case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you explain it, please? if this is fixed in the compiler, some people might still prefer different options. and if it's not, then the current implementation doesn't work.
by the way, are you and Martin close to an agreement on that fix? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only
never provides compiler-compatible code.
That's what worries me, if user sets something wrong it breaks their compilation, no?
by the way, are you and Martin close to an agreement on that fix? :)
I need to come back to it, don't remember what's the current status :O
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only
neverprovides compiler-compatible code.
That's what worries me, if user sets something wrong it breaks their compilation, no?
so what's the solution, then? right now, it will always break their compilation...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the only other suggestion i might have is
- add a new dialect field in scalameta to say select can be indented after fewer braces
- set that flag in scala33
- add a new intermediate scala330rc2 dialect where this flag is not set
- move fewer braces to that dialect as well, as it hadn't been available before that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so what's the solution, then? right now, it will always break their compilation...
Couldn't we make never
the default without the new setting for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so what's the solution, then? right now, it will always break their compilation...
Couldn't we make
never
the default without the new setting for now?
done
And don't indent select after them, as that's not yet supported by the compiler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
And don't indent select after them, as that's not yet supported by the compiler. Fixes #3489.