rake published rdoc version and arity of Rake::Task#execute - wrongnumber of arguments (0 for 1)

Discussion in 'Ruby' started by James Mead, Jan 15, 2008.

  1. James Mead

    James Mead Guest

    Does anybody know if there is a reason why the rdoc for the rake gem
    [1] is currently at version 0.7.x while the gem itself is at 0.8.1?

    This caused me a bit of pain today when diagnosing a problem caused by
    the change to Rake::Task#execute method which used to not take any
    arguments, but now takes a single argument. I've posted the stack
    trace below in case it saves anyone else a bit of pain.

    Also, does anyone know why a single argument is now *required*? I've
    found I can pass in nil as the argument and my rakefile works.

    Thanks.
    --
    James.
    http://blog.floehopper.org
    http://tumble.floehopper.org

    [1] http://rake.rubyforge.org

    rake aborted!
    wrong number of arguments (0 for 1)
    ...../lib/tasks/acceptance.rake:16:in `execute'
    ...../lib/tasks/acceptance.rake:16
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in
    `invoke_with_call_chain'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
    `invoke_with_call_chain'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
    `standard_exception_handling'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
    `standard_exception_handling'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
    /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
    /opt/local/bin/rake:16:in `load'
    /opt/local/bin/rake:16

    $ ruby -v
    ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.10.3]

    $ rake --version
    rake, version 0.8.1

    $ gem -v
    0.9.4
     
    James Mead, Jan 15, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. James Britt

    [RAKE] rdoc task fails on Win2k

    James Britt, Nov 3, 2004, in forum: Ruby
    Replies:
    9
    Views:
    144
    Dave Thomas
    Nov 4, 2004
  2. peppermonkey
    Replies:
    1
    Views:
    249
    Gregory Brown
    Feb 10, 2007
  3. Stéphane Wirtel
    Replies:
    3
    Views:
    378
    Stephane Wirtel
    Jun 15, 2007
  4. Reacher

    rake task with arguments

    Reacher, Feb 25, 2008, in forum: Ruby
    Replies:
    8
    Views:
    177
    Aldric Giacomoni
    Dec 9, 2009
  5. Paul Mucur
    Replies:
    4
    Views:
    189
    Roger Pack
    Dec 15, 2009
Loading...

Share This Page