Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.9.1
    • Fix Version/s: Scala 2.10.0
    • Component/s: Build, Developer Tools
    • Labels:
      None
    • Environment:

      Solaris 11, JVM 1.6.0_26, Ant

      Description

      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)

        Activity

        Hide
        Alan Burlison added a comment -

        May be the same bug as SI-5196

        Show
        Alan Burlison added a comment - May be the same bug as SI-5196
        Hide
        Stephane Micheloud added a comment -

        See SI-5196

        Show
        Stephane Micheloud added a comment - See SI-5196

          People

          • Assignee:
            Stephane Micheloud
            Reporter:
            Alan Burlison
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development