4 Replies Last post: Oct 5, 2011 6:46 PM by Pavel Fatin  
David M. Lee Newbie 5 posts since
Apr 7, 2005
Currently Being Moderated

Jul 26, 2011 1:42 AM

FSC crashes all the time

I've been trying to get FSC to work with IntelliJ, with limited success.

 

My problem is that FSC crashes frequently.  Usually just when it's running in the background doing nothing.  I finally created a wrapper script to restart it immediately after a crash, but having FSC restart all the time defeats the purpose of running it in the first place.

 

When FSC crashes, it just exits with a non-zero error code.  There's no output or log file with any messages indicating what might have gone wrong.

 

How can I debug what's going on here?

 

Here's how I'm starting FSC from my script:

java -Xmx512m -XX:MaxPermSize=512m \

        -classpath $IVY_CACHE/org.scala-lang/scala-library/jars/scala-library-$SCALA_VERSION.jar:$IVY_CACHE/org.scala-lang/scala-compiler/jars/scala-compiler-$SCALA_VERSION.jar \

        scala.tools.nsc.CompileServer

 

SCALA_VERSION is 2.8.1.

 

Thanks!

dave

<><

Maarten Hazewinkel Novice 246 posts since
Feb 19, 2003
Currently Being Moderated
Jul 26, 2011 9:26 AM in response to: David M. Lee
Re: FSC crashes all the time

There is a 'feature' in FSC that times out and terminates the server if it is idle for 30 minutes. This is probably an attempt to conserve system resources.


Since Scala version 2.9.0 there is a parameter for fsc to configure the timeout value. Use

fsc -max-idle <minutes>

 

If you specify a value of 0 minutes, there is no timeout.

 

Found via Stack Overflow.

 

Cheers,

Maarten

Jason Zaugg Novice 106 posts since
Oct 20, 2009
Currently Being Moderated
Jul 26, 2011 11:28 AM in response to: Maarten Hazewinkel
Re: FSC crashes all the time
Alexander Podkhalyuzin JetBrains 1,101 posts since
Jun 7, 2008
Currently Being Moderated
Jul 26, 2011 11:12 AM in response to: David M. Lee
Re: FSC crashes all the time

We are planning full support of fsc after Pavel's vacation around september. I hope it will be much more user-friendly and usable (possibly enabled by default).

 

Best regards,

Alexander Podkhalyuzin.

Pavel Fatin JetBrains 256 posts since
Nov 12, 2009
Currently Being Moderated
Oct 5, 2011 6:46 PM in response to: David M. Lee
Re: FSC crashes all the time

You may check Real FSC support blog post.

More Like This

  • Retrieving data ...