Scala Programming Language
  1. Scala Programming Language
  2. SI-5196

FastScalac Ant task is broken resp. outdated

    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:
    • Environment:

      Apache Ant

      Description

      -compile-scala:
      [scalac] Scala compiler version 2.9.1.final - http://scala-lang.org
      [fsc] Compiling 76 scala and 17 java source files to /home/user/workspace/prj/bin/classes
      [fsc] /home/user/workspace/prj/build-scala.xml:44: Compile failed; see the compiler error output for details.
      [fsc] at scala.tools.ant.ScalaTask$class.buildError(ScalaMatchingTask.scala:27)
      [fsc] at scala.tools.ant.ScalaMatchingTask.buildError(ScalaMatchingTask.scala:30)
      [fsc] at scala.tools.ant.FastScalac.execute(FastScalac.scala:107)
      [...]

        Activity

        Hide
        Stephane Micheloud added a comment -

        Fixed in r26023.

        I have a modified version of partest.PartestTask ready which provides the nested element

        <anttests dir="..." includes="..."/>

        Can I commit the change ?

        Show
        Stephane Micheloud added a comment - Fixed in r26023. I have a modified version of partest.PartestTask ready which provides the nested element <anttests dir="..." includes="..."/> Can I commit the change ?
        Hide
        Alan Burlison added a comment -

        This looks suspiciously like the same bug as SI-5174, is there any way I can get hold of the fix for this to check?

        Show
        Alan Burlison added a comment - This looks suspiciously like the same bug as SI-5174 , is there any way I can get hold of the fix for this to check?
        Hide
        Alan Burlison added a comment - - edited

        It's still broken as of the latest nightly (scala-2.10.0.r26071-b20111125023256), the scalac task works fine with the same Ant file:

        scala-compile:
        [fsc] Compiling 20 source files to /pool1/homedir/alanbur/scala/Browse/build/web/WEB-INF/classes
        [fsc] error: fatal error: class scala.reflect.BeanInfo not found.
        [fsc] one error found
        [fsc] /pool1/homedir/alanbur/scala/Browse/build-scala.xml:53: Compile failed; see the compiler error output for details.
        [fsc] at scala.tools.ant.ScalaTask$class.buildError(ScalaMatchingTask.scala:27)
        [fsc] at scala.tools.ant.ScalaMatchingTask.buildError(ScalaMatchingTask.scala:30)
        [fsc] at scala.tools.ant.FastScalac.execute(FastScalac.scala:144)
        [fsc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        [fsc] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        [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:106)
        [fsc] at org.apache.tools.ant.Task.perform(Task.java:348)
        [fsc] at org.apache.tools.ant.Target.execute(Target.java:390)
        [fsc] at org.apache.tools.ant.Target.performTasks(Target.java:411)
        [fsc] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        [fsc] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        [fsc] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        [fsc] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        [fsc] at org.apache.tools.ant.Main.runBuild(Main.java:809)
        [fsc] at org.apache.tools.ant.Main.startAnt(Main.java:217)
        [fsc] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        [fsc] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

        BUILD FAILED

        Show
        Alan Burlison added a comment - - edited It's still broken as of the latest nightly (scala-2.10.0.r26071-b20111125023256), the scalac task works fine with the same Ant file: scala-compile: [fsc] Compiling 20 source files to /pool1/homedir/alanbur/scala/Browse/build/web/WEB-INF/classes [fsc] error: fatal error: class scala.reflect.BeanInfo not found. [fsc] one error found [fsc] /pool1/homedir/alanbur/scala/Browse/build-scala.xml:53: Compile failed; see the compiler error output for details. [fsc] at scala.tools.ant.ScalaTask$class.buildError(ScalaMatchingTask.scala:27) [fsc] at scala.tools.ant.ScalaMatchingTask.buildError(ScalaMatchingTask.scala:30) [fsc] at scala.tools.ant.FastScalac.execute(FastScalac.scala:144) [fsc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [fsc] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [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:106) [fsc] at org.apache.tools.ant.Task.perform(Task.java:348) [fsc] at org.apache.tools.ant.Target.execute(Target.java:390) [fsc] at org.apache.tools.ant.Target.performTasks(Target.java:411) [fsc] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [fsc] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [fsc] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [fsc] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [fsc] at org.apache.tools.ant.Main.runBuild(Main.java:809) [fsc] at org.apache.tools.ant.Main.startAnt(Main.java:217) [fsc] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [fsc] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) BUILD FAILED
        Hide
        Stephane Micheloud added a comment -

        Should be fixed in r26073. Confirmation is welcome!

        Show
        Stephane Micheloud added a comment - Should be fixed in r26073. Confirmation is welcome!
        Hide
        Alan Burlison added a comment -

        I've pulled down scala-2.10.0.dev-1302-g6a33a20 and can confirm that the fix works for me. Thanks

        Show
        Alan Burlison added a comment - I've pulled down scala-2.10.0.dev-1302-g6a33a20 and can confirm that the fix works for me. Thanks
        Hide
        Stephane Micheloud added a comment -

        Reported as fixed.

        Show
        Stephane Micheloud added a comment - Reported as fixed.

          People

          • Assignee:
            Stephane Micheloud
            Reporter:
            Stephane Micheloud
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development