Skip to content

Commit

Permalink
bump libisabelle version (improves error handling)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsrh committed Jul 12, 2016
1 parent 4d00042 commit 7a55e01
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resolvers ++= Seq(
"Sonatype OSS Releases" at "https://oss.sonatype.org/content/repositories/releases"
)

val libisabelleVer = "0.3.1"
val libisabelleVer = "0.3.4"

libraryDependencies ++= Seq(
"org.scala-lang" % "scala-compiler" % scalaVer,
Expand Down
6 changes: 5 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "0.8.1")

addSbtPlugin("info.hupel" % "sbt-libisabelle" % "0.1")
addSbtPlugin("info.hupel" % "sbt-libisabelle" % "0.1.1")

resolvers ++= Seq(
"Sonatype OSS Releases" at "https://oss.sonatype.org/content/repositories/releases"
)
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import leon.purescala.Common._
import leon.solvers._
import leon.utils._

import cats.data.Xor

import edu.tum.cs.isabelle._
import edu.tum.cs.isabelle.api._
import edu.tum.cs.isabelle.setup._
Expand Down Expand Up @@ -53,7 +55,10 @@ object IsabelleEnvironment {
}.toList

context.reporter.info(s"Preparing Isabelle setup (this might take a while) ...")
val setup = Setup.defaultSetup(version)
val setup = Setup.defaultSetup(version) match {
case Xor.Left(reason) => context.reporter.fatalError(s"Isabelle setup failed: ${reason.explain}")
case Xor.Right(setup) => setup
}

val system = setup.flatMap { setup =>
val resources = Resources.dumpIsabelleResources()
Expand Down

0 comments on commit 7a55e01

Please sign in to comment.