From fcf17beee7304928cb97c4902a2e2833091d3a8f Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Sat, 4 Jun 2016 15:11:26 -0700 Subject: SI-7898 Preserve reader against subversion SBT tries to install its own SimpleReader (for some reason) if it needs to create its own IMain. Because Rube Goldberg needs to execute some postinit hooks, don't let SBT do that. --- src/repl/scala/tools/nsc/interpreter/ILoop.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/repl/scala/tools') diff --git a/src/repl/scala/tools/nsc/interpreter/ILoop.scala b/src/repl/scala/tools/nsc/interpreter/ILoop.scala index 7dab371caf..b086b2181e 100644 --- a/src/repl/scala/tools/nsc/interpreter/ILoop.scala +++ b/src/repl/scala/tools/nsc/interpreter/ILoop.scala @@ -966,7 +966,10 @@ class ILoop(in0: Option[BufferedReader], protected val out: JPrintWriter) // while we go fire up the REPL try { - createInterpreter() + // don't allow ancient sbt to hijack the reader + savingReader { + createInterpreter() + } intp.initializeSynchronous() globalFuture = Future successful true if (intp.reporter.hasErrors) { -- cgit v1.2.3