-
Notifications
You must be signed in to change notification settings - Fork 14
Description
It looks like the JLine version used by the REPL (scala-compiler.jar) and the one used by the sbt shell need to be "compatible enough".
It's not just that the JLine jar from sbt may end up being used by the compiler, but it looks like when running the REPL through sbt we can end up with a mix of classes loaded from either jar (sbt/sbt#8294).
In 2.13.17, we reverted JLine from 3.30 back to 3.29 for that reason (scala/scala#11135), the nightly REPL crashed when launched via current sbt 1.11.6. Similar situations are probably common when mixing older sbt versions with new Scala releases (e.g., sbt 1.9.7 and Scala 2.13.16).
JLine development is quite active lately and we don't want sbt and Scala blocking each other from updating. jline/jline3#1374 mentions JLine 4.0.
I assume Scala 3 has the same issue - wanted to try it with a locally published build but failed wrestling with the build.