Buildr
  1. Buildr
  2. BUILDR-588

Buildr passes malformed -g argument to scalac

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Duplicate
    • Affects Version/s: 1.4.5
    • Fix Version/s: None
    • Component/s: Compilers, Packaging
    • Labels:
    • Environment:

      Description

      scalac barfs on '-g' option:

      scalac error: Usage: -g:<level>
      where <level> choices are none, source, line, vars, notailcalls (default: vars)

      scalac -help gives more information
      scalac error: bad option: '-g'
      scalac -help gives more information

      The fix is pretty simple (I assume that "source" is the desired debug level here).

      229c229
      < args << "-g" if options[:debug]

      > args << "-g:source" if options[:debug]

        Activity

        Peter Donald made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Alex Boisvert added a comment -

        What I meant to say was Scala 2.9 is fully supported in trunk. We'll do a release now.

        Show
        Alex Boisvert added a comment - What I meant to say was Scala 2.9 is fully supported in trunk. We'll do a release now.
        Alex Boisvert made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Alex Boisvert [ boisvert ]
        Resolution Duplicate [ 3 ]
        Hide
        Alex Boisvert added a comment -

        Already fixed in trunk.

        Show
        Alex Boisvert added a comment - Already fixed in trunk.
        Hide
        Daniel Barowy added a comment -

        Oops-- the diff is for: ../buildr-1.4.5/lib/buildr/scala/compiler.rb

        Show
        Daniel Barowy added a comment - Oops-- the diff is for: ../buildr-1.4.5/lib/buildr/scala/compiler.rb
        Daniel Barowy created issue -

          People

          • Assignee:
            Alex Boisvert
            Reporter:
            Daniel Barowy
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1m
              1m
              Remaining:
              Remaining Estimate - 1m
              1m
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development