mirror of https://github.com/sbt/sbt.git
Merge pull request #4123 from eed3si9n/wip/repl
Re-fix console and JLine bug
This commit is contained in:
commit
bf8df381f5
|
|
@ -9,7 +9,7 @@ def buildLevelSettings: Seq[Setting[_]] =
|
||||||
inThisBuild(
|
inThisBuild(
|
||||||
Seq(
|
Seq(
|
||||||
organization := "org.scala-sbt",
|
organization := "org.scala-sbt",
|
||||||
version := "1.1.4-SNAPSHOT",
|
version := "1.1.5-SNAPSHOT",
|
||||||
description := "sbt is an interactive build tool",
|
description := "sbt is an interactive build tool",
|
||||||
bintrayOrganization := Some("sbt"),
|
bintrayOrganization := Some("sbt"),
|
||||||
bintrayRepository := {
|
bintrayRepository := {
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,8 @@ final class Console(compiler: AnalyzingCompiler) {
|
||||||
implicit log: Logger): Try[Unit] = {
|
implicit log: Logger): Try[Unit] = {
|
||||||
def console0() =
|
def console0() =
|
||||||
compiler.console(classpath, options, initialCommands, cleanupCommands, log)(loader, bindings)
|
compiler.console(classpath, options, initialCommands, cleanupCommands, log)(loader, bindings)
|
||||||
JLine.usingTerminal { _ =>
|
JLine.usingTerminal { t =>
|
||||||
|
t.init
|
||||||
Run.executeTrapExit(console0, log)
|
Run.executeTrapExit(console0, log)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue