Skip to content

Find a way forward for JLine updates #912

@lrytz

Description

@lrytz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions