fork and connect input not working in xp

20 views
Skip to first unread message

Alexey Lunacharsky

unread,
Nov 20, 2012, 4:15:47 AM11/20/12
to simple-b...@googlegroups.com
Greetings, sbt community!

Could anybody please advice why following sample does what expected on Mac, Win7 but doesn't on WinXP?

https://gist.github.com/4116850

I'm trying to read input from sbt console within forked java process.

I've found connectInput := true setting should be used to let it work.

That works perfectly on Mac and Win7.
But when I'm doing "sbt run" on WinXP Pro SP3 input is ignored.
A program just prints "Press any key" and hangs forever.

Is there a solution for this?

Regards,
Alex

P.S. I'm running sbt 0.12.1

Alexey Lunacharsky

unread,
Nov 21, 2012, 2:26:22 AM11/21/12
to simple-b...@googlegroups.com
As I've figured out - not a problem of WinXP itself.

The problem was laying in used java version.

Java7 u7 wasn't reading input in forked process.

Downgraded to Java6 u37 - problem is gone.

Perhaps ticket for that problem should be created, if haven't one yet.

вторник, 20 ноября 2012 г., 16:15:47 UTC+7 пользователь Alexey Lunacharsky написал:
Reply all
Reply to author
Forward
0 new messages