Frequently Asked questions
Why does stream evaluation sometimes hang in the REPL?
Sometimes, stream programs that call
unsafeRunSync or other blocking operations hang in the REPL. This is a result of the Scala 2.12’s lambda encoding and is tracked in SI-9076. There are various workarounds:
-Ydelambdafy:inlineto REPL arguments
- In Ammonite, run
- In SBT, add
scalacOptions in Console += "-Ydelambdafy:inline"
- Instead of calling