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
Enable range positions (-Yrangepos
) by default
#9146
Conversation
Wait, this is |
Yea. That makes sense! |
|
@eed3si9n is this ready for a trip through the community build? |
I think so. |
-Yrangepos
) by default
run 3638 was green |
Nice! |
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.
LGTM. Any trailing reason this is draft?
@@ -1 +1 @@ | |||
Line: 3. Width: 1. | |||
Line: 3. Width: 5. |
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.
Reverts 0412783#diff-0298f348965a4dcbd2f8e4b61ae8ab22, so all good.
@@ -1,63 +1,63 @@ | |||
[[syntax trees at end of patmat]] // newSource1.scala | |||
[6]package [6]<empty> { | |||
[6]class Switch extends [13][187]scala.AnyRef { | |||
[0:187]package [0:0]<empty> { |
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.
That [0:0]
looks wrong... but doesn't seem to affect anything.
@SethTisue set to draft initially presumably because the build was still failing and it was unproven at the time. Now that it's passing on Community Build, I think it's ready for review / discussion. |
oh haha I already said that stuff at scala/scala-dev#472. but I still believe it :-) also there I said "an upcoming 2.13.x release" but now we're saying 2.13.4 specifically |
This mainly affects users of Scalameta SemanticDB, which previously required adding
-Yrangepos
toscalacOptions
. (But continuing to supply the flag, for example when cross-building to 2.12, is harmless.)Note that for a long time now, Metals has enabled
-Yrangepos
on users' behalf. So Metals users won't notice any difference, and the fact that so many users have had-Yrangepos
enabled for them behind the scenes increases our confidence that the flag is robust.Fixes scala/scala-dev#472