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 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 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.
-

-

-

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 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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »