Skip to content

Commit d834bcc

Browse files
committed
Add a warning and instructions for new users.
1 parent 5fd7a95 commit d834bcc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

project/Build.scala

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

1313
object DottyBuild extends 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"
@@ -903,4 +905,18 @@ object DottyInjectedPlugin extends AutoPlugin {
903905
}
904906
))
905907
}
908+
909+
private def projectChecks(): Unit = {
910+
val scalaScala = new File("scala-scala")
911+
if (!scalaScala.exists()) {
912+
println(
913+
s"""[WARNING] Missing `dotty/scala-scala` library
914+
|You can clone the library with:
915+
| > git clone https://github.com/DarkDimius/scala.git ${scalaScala.getAbsolutePath}
916+
| > cd ${scalaScala.getAbsolutePath}
917+
| > git checkout dotty-library
918+
| > cd ${new File("").getAbsolutePath}
919+
""".stripMargin)
920+
}
921+
}
906922
}

0 commit comments

Comments
 (0)