-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Make dotty compile with 2.12.3 #2827
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
Conversation
project/Build.scala
Outdated
@@ -461,7 +461,7 @@ object Build { | |||
|
|||
// get libraries onboard | |||
libraryDependencies ++= Seq("com.typesafe.sbt" % "sbt-interface" % sbtVersion.value, | |||
("org.scala-lang.modules" %% "scala-xml" % "1.0.1").withDottyCompat(), | |||
"org.scala-lang.modules" %% "scala-xml" % "1.0.6", |
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.
Until you change withDottyCompat, you can rewrite this to:
"org.scala-lang.modules" % "scala-xml_2.12" % "1.0.6",
@sjrd - you removed the |
8477039
to
c6a6926
Compare
Apparently I also removed that very test from Scala 2.12, so it's indeed irrelevant. |
c6a6926
to
7e0de14
Compare
It seems the error is that it does not find |
There's multiple errors (see 01ff24f for some tests that fail at runtime due to some issues with the mixin encoding), but that's one of the issue yes, see scala/scala@cce7016 for what changed in Scalac (this commit only deprecated ScalaRunTime.hash but it got removed in a subsequent commit). |
I fixed the mixin encoding problem that showed up in unittest_collection. I could not reproduce the LazyValsLong problem. @felixmulder can you take over? |
Thanks @odersky, we'll take it from here, enjoy your vacay! 🍹 🏖 |
38b0674
to
f745117
Compare
2.12 seems to always assume the enclsing mixin class as the type of the "$this" self parameter of a mixin implementation method whereas 2.11 used the self type of this class instead. This commit compensates or the difference.
The dotty fixes were ported from the dotty-library branch, we are now using a new branch at https://github.com/lampepfl/scala/commits/dotty-library2.12
scala-xml 1.0.1 isn't published for 2.12
1835fa2
to
81b95a6
Compare
81b95a6
to
97ed06e
Compare
Merging as @smarter approved in person 🎉 |
project/Build.scala
Outdated
@@ -35,7 +35,7 @@ object ExposedValues extends AutoPlugin { | |||
|
|||
object Build { | |||
|
|||
val scalacVersion = "2.11.11" // Do not rename, this is grepped in bin/common. | |||
val scalacVersion = "2.12.2" // Do not rename, this is grepped in bin/common. |
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.
Maybe I'm missing something, but this series isn't updating bin/common for 2.12, is it intentional?
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.
It wasn't intentional,no. But, we are aware: #3026
If you think you can fix the ./bin/*
scripts, then we'd be more than happy to accept a PR! :)
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.
Great, until now I hadn't even noticed that there is both ./bin and ./dist/bin ;)
This PR makes dotty compile with 2.12.3
TODO
Fix warnings (discussed the Eta-expansion errors, we will not be fixing them)ImplementJFunctionX
methods that were left with aUnsupportedOperationException
Reimplementkept the interfaces insteadFunctionalInterfaces