Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Sake fails on Rake 0.8.2

#246

I just upgraded my local gems and got a new fresh(?) Rake release (0.8.2). After this my local sake tasks fail to execute.

Sake is installed as a gem (1.0.15).

A simple rake task (installed in sake) like:


namespace :test do
  task :dummy do
    puts "Yeah"
  end
end

Results in the following error:


rake aborted!
can't convert true into String
/Library/Ruby/Gems/1.8/gems/rake-0.8.2/lib/rake.rb:2361:in `expand_path'
/Library/Ruby/Gems/1.8/gems/rake-0.8.2/lib/rake.rb:2361:in `raw_load_rakefile'
/Library/Ruby/Gems/1.8/gems/rake-0.8.2/lib/rake.rb:1997:in `load_rakefile'
/Library/Ruby/Gems/1.8/gems/rake-0.8.2/lib/rake.rb:2048:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.2/lib/rake.rb:1996:in `load_rakefile'
/Library/Ruby/Gems/1.8/gems/rake-0.8.2/lib/rake.rb:1981:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.2/lib/rake.rb:2048:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.2/lib/rake.rb:1979:in `run'
/Library/Ruby/Gems/1.8/gems/sake-1.0.15/lib/sake.rb:282:in `run_rake'
/Library/Ruby/Gems/1.8/gems/sake-1.0.15/lib/sake.rb:188:in `run'
/Library/Ruby/Gems/1.8/gems/sake-1.0.15/bin/sake:5
/usr/bin/sake:19:in `load'
/usr/bin/sake:19

Reported by Anders Engström · September 23rd, 2008 @ 08:08 AM

State: new
Milestone: none
Assigned to: Chris Wanstrath Chris Wanstrath

Activity

  1. Anders Engström
    Anders Engström

    Just tried upgrading to the newest Rake 0.8.3 but I'm getting the same exception.

    I've also tried installing the latest Sake and Rake on a reasonably clean machine and have confirmed that the same error exists there :/

    September 25th, 2008 @ 02:34 AM

  2. Doug Feuerbach
    Doug Feuerbach

    Rake 0.8.2's have_rakefile() now returns an rake filename with an empty string if none is found. Sake's aliased have_rakefile() returns true for this case. A patch is attached that modifies Sake's have_rakefile() to mimic the Rake's new one, and works with Rake 0.8.3 as well.

    October 1st, 2008 @ 09:07 PM

  3. cldwalker
    cldwalker

    this patch fixed my problem with rake 0.8.3

    December 18th, 2008 @ 01:50 AM

  4. Xavier Shay
    Xavier Shay

    +1, fixes for me on sake 1.0.15 and rake 0.8.3

    December 27th, 2008 @ 04:14 PM

  5. Alistair Holt
    Alistair Holt

    This worked although the path to the sake gem was different for me. sake 1.0.15 and rake 0.8.3.

    February 20th, 2009 @ 12:29 PM

  6. Anders Engström
    Anders Engström

    Looks like there's a path that fixes this issue. This issue makes Sake unusable.

    Are there any plans for a new release? :)

    April 2nd, 2009 @ 08:12 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.