Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ant FSC task fails #5174

Closed
scabug opened this issue Nov 10, 2011 · 3 comments
Closed

Ant FSC task fails #5174

scabug opened this issue Nov 10, 2011 · 3 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Nov 10, 2011

I'm trying to use the Ant fsc task. I have a target that works fine with the scalac task but if I switch it over to using fsc it fails, yet it apparently does actually build the files correctly. Resetting the FSC cache, restarting FSC etc makes no difference.

[running phase dce on ScalaTestClass.scala]
[running phase dce on TestClass2.scala]
[running phase dce on JavaTestClass.java]
[dce in 0ms]
[running phase jvm on icode]
[wrote 'TestClass2' to /home/alanbur/scala/web/build/web/WEB-INF/classes/scala/TestClass2.class]
[wrote 'ScalaTestClass' to /home/alanbur/scala/web/build/web/WEB-INF/classes/scala/ScalaTestClass.class]
[jvm in 5ms]
[total in 48ms]
/home/alanbur/scala/web/build-scala.xml:38: Compile failed; see the compiler error output for details.
at scala.tools.ant.ScalaTask$class.buildError(ScalaMatchingTask.scala:27)
at scala.tools.ant.ScalaMatchingTask.buildError(ScalaMatchingTask.scala:30)
at scala.tools.ant.FastScalac.execute(FastScalac.scala:107)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor198.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
/home/alanbur/scala/web/build-scala.xml:38: Compile failed because of an internal compiler error (Compile failed; see the compiler error output for details.); see the error output for details.
at scala.tools.ant.ScalaTask$class.buildError(ScalaMatchingTask.scala:27)
at scala.tools.ant.ScalaMatchingTask.buildError(ScalaMatchingTask.scala:30)
at scala.tools.ant.FastScalac.execute(FastScalac.scala:112)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor198.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 1 second)

@scabug
Copy link
Author

scabug commented Nov 10, 2011

Imported From: https://issues.scala-lang.org/browse/SI-5174?orig=1
Reporter: Alan Burlison (alanbur)
Affected Versions: 2.9.1

@scabug
Copy link
Author

scabug commented Nov 20, 2011

Alan Burlison (alanbur) said:
May be the same bug as #5196

@scabug
Copy link
Author

scabug commented Nov 21, 2011

@michelou said:
See #5196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants