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
Fix regression in large string interpolations with non-String typed splices #8315
Conversation
test/files/run/t11665.scala
Outdated
test(125, s"$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a") | ||
test(126, s"$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a") | ||
test(127, s"$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a") | ||
test(128, s"$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a") |
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.
If scalacenter ran an annual "christmas tree of code" contest, it might help guard against regressions like this.
Crowdsource the test!
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.
test(1, s"$a")// ~~~ | WHEEEE |
test(2, s"$a$a") // ~~ # /
test(3, s"$a$a$a") // @ /
test(4, s"$a$a$a$a") // _/\\
test(5, s"$a$a$a$a$a") // \\
test(6, s"$a$a$a$a$a$a") // ~~~~
test(7, s"$a$a$a$a$a$a$a")
test(8, s"$a$a$a$a$a$a$a$a")
test(9, s"$a$a$a$a$a$a$a$a$a")
test(10, s"$a$a$a$a$a$a$a$a$a$a")
test(11, s"$a$a$a$a$a$a$a$a$a$a$a")
test(12, s"$a$a$a$a$a$a$a$a$a$a$a$a")
test(13, s"$a$a$a$a$a$a$a$a$a$a$a$a$a")
test(14, s"$a$a$a$a$a$a$a$a$a$a$a$a$a$a")
test(15, s"$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a")
test(16, s"$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a")
test(17, s"$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a")
?
This issue breaks a number of projects in the Twitter code base preventing us from upgrading to 2.12.9. Will this PR merit a hotfix release? |
went away on /rebuild |
The test doesn't compile under 2.13.
|
Why is the test file indented with four-space indents? Also, making each interpolation its own def would fix the method size problem.
|
I've tweaked the test to fix indentation and avoid the large method size. |
I was curious why 2.13 switches to fallback mode after 64. I'm too tired to think about that, but I did just do the Scalafix tutorial:
|
55308dc
to
cccc4d1
Compare
Seems likely, depending on how hot “hot” is. We'll discuss at the next Scala team meeting. (for further discussion on 2.12.10 timing and contents, better to open a https://contributors.scala-lang.org thread) |
If only folks running |
Fixes scala/bug#11665