[LRUG] Rake issue
Adrian Stainforth
adrian.stainforth at gmail.com
Mon Oct 3 11:06:59 PDT 2011
I'm setting up my new Macbook (Lion OSX) with my rails environment and have
hit a odd problem that I can't figure out what the issue is.
When I am running rake db:setup or rake db:migrate on rails 3.1 project, I
am getting the following error:
rake aborted!
> wrong number of arguments (1 for 0)
> Tasks: TOP => db:migrate => environment
When I run a trace I get the following:
wrong number of arguments (1 for 0)
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/syntax/default.rb:6:in
> `define'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/deprecated.rb:5:in
> `method_missing'
> /Users/djforth/Websites/bdglobal/spec/factories/sites.rb:3:in `<top
> (required)>'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in
> `load'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in
> `block in load'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in
> `block in load_dependency'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in
> `new_constants_in'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in
> `load_dependency'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in
> `load'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/find_definitions.rb:20:in
> `block (2 levels) in find_definitions'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/find_definitions.rb:19:in
> `each'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/find_definitions.rb:19:in
> `block in find_definitions'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/find_definitions.rb:15:in
> `each'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/find_definitions.rb:15:in
> `find_definitions'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl_rails-1.2.0/lib/factory_girl_rails/railtie.rb:12:in
> `block in <class:Railtie>'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:34:in
> `call'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:34:in
> `execute_hook'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:43:in
> `block in run_load_hooks'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:42:in
> `each'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:42:in
> `run_load_hooks'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/application/finisher.rb:56:in
> `block in <module:Finisher>'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/initializable.rb:25:in
> `instance_exec'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/initializable.rb:25:in
> `run'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/initializable.rb:50:in
> `block in run_initializers'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/initializable.rb:49:in
> `each'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/initializable.rb:49:in
> `run_initializers'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/application.rb:92:in
> `initialize!'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/railtie/configurable.rb:30:in
> `method_missing'
> /Users/djforth/Websites/bdglobal/config/environment.rb:5:in `<top
> (required)>'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in
> `require'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in
> `block in require'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in
> `block in load_dependency'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in
> `new_constants_in'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in
> `load_dependency'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in
> `require'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/application.rb:78:in
> `require_environment!'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/application.rb:189:in
> `block (2 levels) in initialize_tasks'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:205:in
> `call'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:205:in
> `block in execute'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:200:in
> `each'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:200:in
> `execute'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:158:in
> `block in invoke_with_call_chain'
> /Users/djforth/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/monitor.rb:201:in
> `mon_synchronize'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:151:in
> `invoke_with_call_chain'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:176:in
> `block in invoke_prerequisites'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:174:in
> `each'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:174:in
> `invoke_prerequisites'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:157:in
> `block in invoke_with_call_chain'
> /Users/djforth/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/monitor.rb:201:in
> `mon_synchronize'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:151:in
> `invoke_with_call_chain'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:144:in
> `invoke'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:112:in
> `invoke_task'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:90:in
> `block (2 levels) in top_level'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:90:in
> `each'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:90:in
> `block in top_level'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:129:in
> `standard_exception_handling'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:84:in
> `top_level'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:62:in
> `block in run'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:129:in
> `standard_exception_handling'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:59:in
> `run'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/bin/rake:32:in
> `<top (required)>'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/bin/rake:19:in `load'
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/bin/rake:19:in `<main>'
> Tasks: TOP => db:migrate => environment
> Adrians-MacBook-Pro:bdglobal djforth$ RAILS_ENV=development rake db:migrate
> /Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53:
> warning: already initialized constant WFKV_
> DEPRECATION WARNING: Change Factory.define to FactoryGirl.define
> rake aborted!
> wrong number of arguments (1 for 0)
> Tasks: TOP => db:migrate => environment
If I uninstall 0.9.2 and run an older project that runs rake 0.8.7 the rake
works perfectly. So I am thinking it is a problem with the rake, but not
entirely sure?
Anyone got any thoughts?
--
Kind Regards
Adrian Stainforth
Front-end Developer
Mobile: +447740069109
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20111003/36eb5f2f/attachment.html>
More information about the Chat
mailing list