This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Question about running fsc with Ant on OS X

No replies
zsejki
Joined: 2008-12-27,
User offline. Last seen 3 years 41 weeks ago.

Hi,

I am having some problems running the fsc task. I am using Eclipse
3.4.1, which comes with Ant 1.7.0, under OS X. I've read the articles
about configuring the firewall, I added those binaries and eclipse, I
have even tried letting all incoming connections, but to no avail. I
always get:

[fsc] Cannot start compilation daemon.
[fsc] tried command: scala scala.tools.nsc.CompileServer
[fsc] org.eclipse.ant.internal.ui.antsupport.AntSecurityException
[fsc] at
org.eclipse.ant.internal.ui.antsupport.AntSecurityManager.checkExit(AntSecurityManager.java:54)
[fsc] at java.lang.Runtime.exit(Runtime.java:88)
[fsc] at java.lang.System.exit(System.java:906)
[fsc] at scala.Predef$.exit(Predef.scala:81)
[fsc] at scala.tools.nsc.CompileSocket.fatal(CompileSocket.scala:53)
[fsc] at
scala.tools.nsc.CompileSocket.startNewServer(CompileSocket.scala:134)
[fsc] at scala.tools.nsc.CompileSocket.getPort(CompileSocket.scala:167)
[fsc] at scala.tools.nsc.CompileSocket.getsock$1(CompileSocket.scala:206)
[fsc] at
scala.tools.nsc.CompileSocket.getOrCreateSocket(CompileSocket.scala:227)
[fsc] at
scala.tools.nsc.StandardCompileClient.main0(CompileClient.scala:94)
[fsc] at scala.tools.ant.FastScalac.execute(FastScalac.scala:100)
[fsc] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[fsc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[fsc] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[fsc] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[fsc] at java.lang.reflect.Method.invoke(Method.java:597)
[fsc] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[fsc] at org.apache.tools.ant.Task.perform(Task.java:348)
[fsc] at org.apache.tools.ant.Target.execute(Target.java:357)
[fsc] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[fsc] at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
[fsc] at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
[fsc] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[fsc] at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[fsc] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
[fsc] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[fsc] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

Thank you in advance.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland