You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
fabianhjr
changed the title
Reading Scala 3 .class files from Scala 2.13 Ammonite.Main().run()
Reading Scala 3 class files from Scala 2.13 Ammonite.Main().run()Feb 22, 2023
Looking at the source of ammonite.Main.run seems like the replArgs get evaluated before other things.
def run(replArgs: Bind[_]*): (Res[Any], Seq[(Watchable, Long)]) = {
instantiateRepl(replArgs.toIndexedSeq) match{
case Left(missingPredefInfo) => missingPredefInfo
case Right(repl) =>
So I am a bit confused about how to add this flags to ammonite Main.run on the debug and instinctively I think this function might require an extra argument for the flags/settings. (Tough would appreciate maintainer input on whether such a change would be desired, can work on a fix on my spare time)
From: https://docs.scala-lang.org/scala3/guides/migration/compatibility-classpath.html
Minimum example: https://github.com/fabianhjr/ammonite-scala3-issue
Use case is debug repl
Attempted Workarounds
Tried:
and
The text was updated successfully, but these errors were encountered: