From 7f3ce500140fb4be342291fd009604e8f980cdc6 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Mon, 30 Nov 2020 14:44:41 +0100 Subject: [PATCH] dotty-library is called scala3-library now I though this would help with https://github.com/lampepfl/dotty/issues/10558 but `sbt repl` still hides the input after typing a line and pressing enter even after this change. --- .../main/scala/sbt/internal/classpath/ClassLoaderCache.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main-command/src/main/scala/sbt/internal/classpath/ClassLoaderCache.scala b/main-command/src/main/scala/sbt/internal/classpath/ClassLoaderCache.scala index 0ef7d3911f..fd886f7921 100644 --- a/main-command/src/main/scala/sbt/internal/classpath/ClassLoaderCache.scala +++ b/main-command/src/main/scala/sbt/internal/classpath/ClassLoaderCache.scala @@ -179,7 +179,8 @@ private[sbt] class ClassLoaderCache( } override def apply(files: List[File]): ClassLoader = { files match { - case d :: s :: Nil if d.getName.startsWith("dotty-library") => + case d :: s :: Nil + if d.getName.startsWith("dotty-library") || d.getName.startsWith("scala3-library") => apply(files, classOf[org.jline.terminal.Terminal].getClassLoader) case _ => val key = new Key(files)