Skip to content

Commit 1fe7304

Browse files
authored
Merge pull request #2138 from dotty-staging/add-warning-on-missin-scala-scala
Add a warning and instructions for new users.
2 parents 90eb9d2 + 598705e commit 1fe7304

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

project/Build.scala

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import sbt.Package.ManifestAttributes
1212

1313
object Build {
1414

15+
projectChecks()
16+
1517
val scalacVersion = "2.11.5" // Do not rename, this is grepped in bin/common.
1618

1719
val dottyOrganization = "ch.epfl.lamp"
@@ -905,4 +907,15 @@ object DottyInjectedPlugin extends AutoPlugin {
905907
}
906908
))
907909
}
910+
911+
private def projectChecks(): Unit = {
912+
val scalaScala = new File("scala-scala")
913+
if (!scalaScala.exists()) {
914+
println(
915+
s"""[WARNING] Missing `dotty/scala-scala` library
916+
|You can clone the library with:
917+
| > git clone -b dotty-library https://github.com/DarkDimius/scala.git ${scalaScala.getAbsolutePath}
918+
""".stripMargin)
919+
}
920+
}
908921
}

0 commit comments

Comments
 (0)