Skip to content

Commit 43f3916

Browse files
committed
Fix stdin/out for repl launched by SBT
Launching the repl with: `runMain dotty.tools.dotc.repl.Main` is now working correctly
1 parent f010c62 commit 43f3916

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

project/Build.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ object DottyBuild extends Build {
6464
unmanagedSourceDirectories in Compile := Seq((scalaSource in Compile).value),
6565
unmanagedSourceDirectories in Test := Seq((scalaSource in Test).value),
6666

67+
// set system in/out for repl
68+
connectInput in run := true,
69+
outputStrategy := Some(StdoutOutput),
70+
6771
// Generate compiler.properties, used by sbt
6872
resourceGenerators in Compile += Def.task {
6973
val file = (resourceManaged in Compile).value / "compiler.properties"

0 commit comments

Comments
 (0)