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