code |
!!! Tested using Scala 2.6.0-RC1 on cygwin (also occur with past releases)
!!! Stop any resident Scala compiler process (java.exe in Task Manager)
$ echo {} > test.scala
$ cat test.scala
{}
$ rm -f ./test.jar
$ scala -savecompiled ./test.scala 2>&1 | tee log.txt
!!! We never receive a command prompt
!!! Using -nocompdaemon avoids the problem
!!! Having an existing test.jar, or an existing resident Scala compiler process, avoids the problem
!!! Using Windows Command Prompt
!!! Stop any resident Scala compiler process (java.exe in Task Manager)
C:\experiment>del test.jar
C:\experiment>"c:/....2.6.0-RC1/files/bin/scala.bat" ./test.scala | more
!!! We never receive a command prompt
!!! Using -nocompdaemon avoids the problem
!!! In each case, I suspect the next command in the pipe (tee, more)
!!! is waiting for output from the newly resident Scala compiler |