Skip to content

Add a warning and instructions for new users. #2138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import sbt.Package.ManifestAttributes

object DottyBuild extends Build {

projectChecks()

val scalacVersion = "2.11.5" // Do not rename, this is grepped in bin/common.

val dottyOrganization = "ch.epfl.lamp"
Expand Down Expand Up @@ -903,4 +905,15 @@ object DottyInjectedPlugin extends AutoPlugin {
}
))
}

private def projectChecks(): Unit = {
val scalaScala = new File("scala-scala")
if (!scalaScala.exists()) {
println(
s"""[WARNING] Missing `dotty/scala-scala` library
|You can clone the library with:
| > git clone -b dotty-library https://github.com/DarkDimius/scala.git ${scalaScala.getAbsolutePath}
""".stripMargin)
}
}
}