[LRUG] Rake issue
Chris Kimpton
chris at kimptoc.net
Mon Oct 3 11:16:00 PDT 2011
Hi Adrian,
I am using Lion with a 3.1 project (but not factory girl), and rake
0.9.2... it might be an rvm/bundler/rubygems version mismatch, mine
are:
$ gem -v
1.8.10
$ bundle -v
Bundler version 1.0.17
$ rvm -v
rvm 1.8.0 by Wayne E. Seguin (wayneeseguin at gmail.com)
[https://rvm.beginrescueend.com/]
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]
HTH,
Chris
On 3 October 2011 19:06, Adrian Stainforth <adrian.stainforth at gmail.com> wrote:
> 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'
>>
...
[snip]
...
>>
>> /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
>
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
More information about the Chat
mailing list