Skip to content

Commit bdfe742

Browse files
committed
Add sbt dotr instuctions for repl
1 parent 03d660a commit bdfe742

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

project/Build.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,15 +504,17 @@ object Build {
504504
val args: Seq[String] = spaceDelimited("<arg>").parsed
505505
val java: String = Process("which" :: "java" :: Nil).!!
506506
val attList = (dependencyClasspath in Runtime).value
507-
val _ = packageAll.value
507+
val _ = packageAll.value
508508
val scalaLib = attList
509509
.map(_.data.getAbsolutePath)
510510
.find(_.contains("scala-library"))
511511
.toList.mkString(":")
512512

513-
if (java == "")
513+
if (args.isEmpty) {
514+
println("Couldn't run `dotr` without args. Use `repl` to run the repl or add args to run the dotty application")
515+
} else if (java == "") {
514516
println("Couldn't find java executable on path, please install java to a default location")
515-
else if (scalaLib == "") {
517+
} else if (scalaLib == "") {
516518
println("Couldn't find scala-library on classpath, please run using script in bin dir instead")
517519
} else {
518520
val dottyLib = packageAll.value("dotty-library")

0 commit comments

Comments
 (0)