We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d528014 commit f4968e7Copy full SHA for f4968e7
compiler/src/dotty/tools/repl/ReplDriver.scala
@@ -534,8 +534,15 @@ class ReplDriver(settings: Array[String],
534
}
535
536
537
+ // TODO: no idea how to access and reload the class paths
538
+ val newClassPath = state.context.platform.classPath(using state.context).asURLs :+ f.toURI.toURL
539
+ println(s"new class path=${newClassPath.mkString(", ")}")
540
val clsl = rendering.classLoader()(using state.context)
541
+ val newClsl = fromURLsParallelCapable(newClassPath, clsl)
542
+ println(s"newClsl getResource=${newClsl.getURLs.toList}")
543
+ newClsl.asContext(state.context)
544
545
+// Scala 2:
546
// def alreadyDefined(clsName: String) = classLoader.tryToLoadClass(clsName).isDefined
547
// val existingClass = entries.filter(_.ext.isClass).map(classNameOf).find(alreadyDefined)
548
0 commit comments