Sunday, 18 August 2013

SBT Broken Pipe

SBT Broken Pipe

I've been avoiding using SBT since the support in intellij for maven has
always been far superior, plus I don't see much advantage in SBT; but I
figure why fight the masses.
So one of my open source projects I've converted over to SBT. Now when I
run tests (approx 1000 test cases), I get OOMs. Ok so I've tried
fork in Test := true
javaOptions in Test ++= Seq("-Xmx2048m", "-XX:MaxPermSize")
Ok so my OOMs go away but now I get
sbt.ForkMain$Run$RunAborted: java.net.SocketException: Broken pipe
at sbt.ForkMain$Run.write(ForkMain.java:114)
at sbt.ForkMain$Run$1.info(ForkMain.java:132)
Seems to be in different places each time.
These tests all pass if I'm building via maven (scala test maven plugin).
Help me Obi-wan or SBT lovers.

No comments:

Post a Comment