Merge pull request #4123 from eed3si9n/wip/repl

Re-fix console and JLine bug
This commit is contained in:
Dale Wijnand
2018-04-26 07:00:21 +01:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ def buildLevelSettings: Seq[Setting[_]] =
inThisBuild(
Seq(
organization := "org.scala-sbt",
version := "1.1.4-SNAPSHOT",
version := "1.1.5-SNAPSHOT",
description := "sbt is an interactive build tool",
bintrayOrganization := Some("sbt"),
bintrayRepository := {
@@ -41,7 +41,8 @@ final class Console(compiler: AnalyzingCompiler) {
implicit log: Logger): Try[Unit] = {
def console0() =
compiler.console(classpath, options, initialCommands, cleanupCommands, log)(loader, bindings)
JLine.usingTerminal { _ =>
JLine.usingTerminal { t =>
t.init
Run.executeTrapExit(console0, log)
}
}