Sake fails on Rake 0.8.2
Reported by Anders Engström | September 23rd, 2008 @ 08:08 AM
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 September 25th, 2008 @ 02:34 AM
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 October 1st, 2008 @ 09:07 PM
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 February 20th, 2009 @ 12:29 PM
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 April 2nd, 2009 @ 08:12 AM
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 »