Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-462

undefined method `length' for -1:Fixnum

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • None
    • Packaging
    • None
    • ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux]

    Description

      kjozsa@walrus:/tmp/test$ ls
      buildfile
      kjozsa@walrus:/tmp/test$ cat buildfile
      define 'stuff' do
      project.group = 'x'
      project.version = '1.0.0'

      package :jar, :id => 'ziperror'

      end
      kjozsa@walrus:/tmp/test$ buildr package
      (in /tmp/test, development)
      Building stuff
      Packaging stuff
      Packaging ziperror-1.0.0.jar
      Buildr aborted!
      NoMethodError : undefined method `length' for -1:Fixnum

      (See full trace by running task with --trace)
      kjozsa@walrus:/tmp/test$ buildr package --trace 2>&1 | grep -A3 NoMethod
      NoMethodError : undefined method `length' for -1:Fixnum
      /usr/lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:732:in `write_c_dir_entry'
      /usr/lib/ruby/gems/1.9.1/gems/buildr-1.4.0/lib/buildr/packaging/zip.rb:37:in `block in write_to_stream'
      /usr/lib/ruby/gems/1.9.1/gems/buildr-1.4.0/lib/buildr/packaging/zip.rb:37:in `each'
      kjozsa@walrus:/tmp/test$

      Attachments

        Activity

          People

            Unassigned Unassigned
            kjozsa Kristof Jozsa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment