#246 new
Anders Engström

Sake fails on Rake 0.8.2

Reported by Anders Engström | 2008-09-23 08:08:54 UTC

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

Comments and changes to this ticket

  • Anders Engström

    Anders Engström 2008-09-25 02:34:11 UTC

    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 :/

  • Doug Feuerbach

    Doug Feuerbach 2008-10-01 21:07:03 UTC

    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.

  • cldwalker

    cldwalker 2008-12-18 01:50:28 UTC

    this patch fixed my problem with rake 0.8.3

  • Xavier Shay

    Xavier Shay 2008-12-27 16:14:54 UTC

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

  • Alistair Holt

    Alistair Holt 2009-02-20 12:29:11 UTC

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

  • Anders Engström

    Anders Engström 2009-04-02 08:12:32 UTC

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

    Are there any plans for a new release? :)

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.

New ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Attachments

Tags

Pages