[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [myexperiment-hackers] Bug in Rake 0.8.1
From: |
Mark Borkum |
Subject: |
Re: [myexperiment-hackers] Bug in Rake 0.8.1 |
Date: |
Fri, 09 May 2008 16:51:11 +0100 |
User-agent: |
Thunderbird 2.0.0.14 (Windows/20080421) |
This is a bug in the Engines plug-in and not in Rake.
It can be fixed (completely) by replacing the "redefine_task" method of
"\vendor\plugins\engines\tasks\engines.rake" with this:
def redefine_task(task_class, args, &block)
task_name, deps = (RAKEVERSION >= '0.8.0') ?
resolve_args([args]) : resolve_args(args)
task_name = task_class.scope_name(@scope, task_name)
deps = [deps] unless deps.respond_to?(:to_ary)
deps = deps.collect {|d| d.to_s }
task = @tasks[task_name.to_s] = task_class.new(task_name, self)
task.application = self
if RAKEVERSION >= '0.8.0'
task.add_description(@last_description)
@last_description = nil
else
task.add_comment(@last_comment)
@last_comment = nil
end
task.enhance(deps, &block)
task
end
Mark Borkum
David R Newman wrote:
Hi All,
Just been trying to use rake to do a db:migrate on my local copy of
myexperiment and had some problems. I got the following error:
address@hidden:/var/svn-repos/myexp_questions$ rake db:migrate
(in /var/svn-repos/myexp_questions)
rake aborted!
undefined method `last' for {}:Hash
/var/svn-repos/myexp_questions/Rakefile:10
(See full trace by running task with --trace)
I did a web search to see if anyone else had had a similar problem and
it turns out that it is an actually bug in Rake v0.8.1. There is a
work around that doesn't require removing Rake v0.8.1 as it may have
dependencies but it requires commenting out some code that although
does not appear vital may be so. The workaround can be found at:
<http://groups.google.com/group/substruct/browse_thread/thread/7edeebf05d1540a6>
I am guessing that we may be using an earlier version of Rake on
colo/tents, as the only dependencies I can see are Hoe 1.5.1 and
Passenger 1.0.1 but it is worth being aware of this problem as this
version of Rake may be needed for Rails 2.0 if we choose to use it.
Dave Newman
_______________________________________________
myexperiment-hackers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/myexperiment-hackers
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [myexperiment-hackers] Bug in Rake 0.8.1,
Mark Borkum <=