[Hobo Users] Problem with rake tassk from hobo edge: wrong number of arguments (2 for 0)

3 views
Skip to first unread message

atmorell

unread,
May 24, 2010, 2:08:42 PM5/24/10
to Hobo Users
Hi,

I can't execute any rake tasks if running on hobo edge from github.
Any help is most welcome :)

rake routes --trace
(in /blog-v3-dev)
** Invoke routes (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
wrong number of arguments (2 for 0)
/blog-v3-dev/vendor/plugins/hobo/hobo/rails/../lib/hobo.rb:106:in
`enable'
/blog-v3-dev/vendor/plugins/hobo/hobo/rails/../lib/hobo.rb:106:in
`enable'
/blog-v3-dev/vendor/plugins/hobo/hobo/rails/init.rb:10:in
`evaluate_init_rb'
/var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:158:in
`evaluate_init_rb'
/var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/
kernel/reporting.rb:11:in `silence_warnings'
/var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:154:in
`evaluate_init_rb'
/var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:48:in `load'
/var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:38:in
`load_plugins'
/var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in
`each'
/var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in
`load_plugins'
/var/lib/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:369:in
`load_plugins'
/var/lib/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:165:in `process'
/var/lib/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
/var/lib/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
/blog-v3-dev/config/environment.rb:9
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
/var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/
dependencies.rb:156:in `require'
/var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/
dependencies.rb:521:in `new_constants_in'
/var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/
dependencies.rb:156:in `require'
/var/lib/gems/1.8/gems/rails-2.3.5/lib/tasks/misc.rake:4
/usr/lib/ruby/1.8/rake.rb:636:in `call'
/usr/lib/ruby/1.8/rake.rb:636:in `execute'
/usr/lib/ruby/1.8/rake.rb:631:in `each'
/usr/lib/ruby/1.8/rake.rb:631:in `execute'
/usr/lib/ruby/1.8/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:590:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:607:in `invoke_prerequisites'
/usr/lib/ruby/1.8/rake.rb:604:in `each'
/usr/lib/ruby/1.8/rake.rb:604:in `invoke_prerequisites'
/usr/lib/ruby/1.8/rake.rb:596:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:590:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:583:in `invoke'
/usr/lib/ruby/1.8/rake.rb:2051:in `invoke_task'
/usr/lib/ruby/1.8/rake.rb:2029:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2029:in `each'
/usr/lib/ruby/1.8/rake.rb:2029:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:2023:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2001:in `run'
/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1998:in `run'
/usr/bin/rake:28

--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.

kevinpfromnm

unread,
May 24, 2010, 2:30:44 PM5/24/10
to Hobo Users
there is a bug with hobo edge adding the hobo tasks in the rakefile
pointing to where hobo gem would have them. Fix is to replace:
'hobo/tasks'
with
load File.join(RAILS_ROOT,'vendor/plugins/hobo/hobo/tasks/
hobo_tasks.rake')

In the Rakefile. Although, it seems to work without either line
actually when installed as a plugin.

Karsten Redmer

unread,
May 25, 2010, 12:40:13 PM5/25/10
to Hobo Users
I had the same problem - solved with Kevins solution !
Thanks.

On 24 Mai, 20:30, kevinpfromnm <kevinpfro...@gmail.com> wrote:
> there is a bug with hobo edge adding the hobo tasks in the rakefile
> pointing to where hobo gem would have them.  Fix is to replace:
> 'hobo/tasks'
> with
> load File.join(RAILS_ROOT,'vendor/plugins/hobo/hobo/tasks/
> hobo_tasks.rake')
>
> In the Rakefile.  Although, it seems to work without either line
> actually when installed as a plugin.
>
> On May 24, 12:08 pm, atmorell <atmor...@gmail.com> wrote:
>
>
>
> > Hi,
>
> > I can't execute anyraketasks if running on hobo edge from github.
> > Any help is most welcome :)
>
> >rakeroutes --trace

atmorell

unread,
May 25, 2010, 4:30:33 PM5/25/10
to Hobo Users
Thanks :)
Reply all
Reply to author
Forward
0 new messages