Skip to content

Commit

Permalink
Default to a Scala version for REPL if there are no Scala artifacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
trilleplay committed Sep 27, 2023
1 parent 753e14c commit c525b47
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/cli/src/main/scala/scala/cli/commands/repl/Repl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,10 @@ object Repl extends ScalaCommand[ReplOptions] {
val cache = options.internal.cache.getOrElse(FileCache())
val shouldUseAmmonite = options.notForBloopOptions.replOptions.useAmmonite

val scalaParams = artifacts.scalaOpt
.getOrElse {
sys.error("Expected Scala artifacts to be fetched")
}
.params
val scalaParams = artifacts.scalaOpt match {
case Some(artifacts) => artifacts.params
case None => ScalaParameters(Constants.defaultScalaVersion)
}

val (scalapyJavaOpts, scalapyExtraEnv) =
if (setupPython) {
Expand Down

0 comments on commit c525b47

Please sign in to comment.