sbt.TrapExitSecurityException thrown at "sbt run"

sbt, scala

Solution

// build.sbt
trapExit := false

worked for me

Problem

I've created a simple Scala console application. I run it by `sbt run` and always receive the following exception on exit: ``` Exception: sbt.TrapExitSecurityException thrown from the UncaughtExceptionHandler in thread "run-main-0" [success] Total time: 17 s, completed 30.01.2014 22:19:37 ``` After that all my console output becomes invisible. I can type and run applications but I cannot see what I'm typing. What does this exception means? What am I doing wrong?

Original source