unable to complete initial migration
Reported by Amilcar Mocelin | September 6th, 2011 @ 11:34 PM
I´m trying to run Hobo 1.3.0.pre31, with Ruby 1.9.2 and
Rails 3.1.0, on Windows 7.
So far, everytime I tried to start a new Hobo project, it failed at
the time of the initial migration with the message "rake aborted!",
followed by:
"AssociationCollection is not a class
Tasks: TOP => db:setup => db:create =>
db:load_config
(See full trace by running task with --trace)
C:/Ruby192/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre31/lib/hobo/extensions/active_
record/associations/collection.rb:3:in
<module:Associations>': AssociationColle ction is not a
class (TypeError) from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre31/lib/hobo/exten
sions/active_record/associations/collection.rb:2:in
module:ActiveRecord'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre31/lib/hobo/exten
sions/active_record/associations/collection.rb:1:in <top
(required)>' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/dependencies.rb:240:in
require'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/dependencies.rb:240:in block in require' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/dependencies.rb:223:in
block in load_dependency'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/dependencies.rb:640:in new_constants_in' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/dependencies.rb:223:in
load_dependency'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/dependencies.rb:240:in require' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre31/lib/hobo/engin
e.rb:27:in
block in class:Engine'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/lazy_load_hooks.rb:36:in instance_eval' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/lazy_load_hooks.rb:36:in
execute_hook'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/lazy_load_hooks.rb:43:in block in run_load_hooks'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/lazy_load_hooks.rb:42:in
each'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/lazy_load_hooks.rb:42:in run_load_hooks' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.0/lib/active_r
ecord/base.rb:2184:in
'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.0/lib/active_r
ecord/migration.rb:633:in initialize' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/hobo_fields-1.3.0.pre31/lib/gen
erators/hobo/migration/migration_generator.rb:94:in
new'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/hobo_fields-1.3.0.pre31/lib/gen
erators/hobo/migration/migration_generator.rb:94:in
migrations_pending?' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/hobo_fields-1.3.0.pre31/lib/gen
erators/hobo/migration/migration_generator.rb:47:in
migrate'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/task.rb:22
:in run' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation
.rb:118:in
invoke_task' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation
.rb:124:in block in invoke_all' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation
.rb:124:in
each' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation
.rb:124:in map' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation
.rb:124:in
invoke_all' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/group.rb:2
26:in dispatch' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation
.rb:109:in
invoke' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre31/lib/generators
/hobo/setup_wizard/setup_wizard_generator.rb:196:in
generate_migration' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/task.rb:22
:in
run' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation
.rb:118:in invoke_task' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation
.rb:124:in
block in invoke_all' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation
.rb:124:in each' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation
.rb:124:in
map' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation
.rb:124:in invoke_all' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/group.rb:2
26:in
dispatch'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/base.rb:38
9:in start' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/genera
tors.rb:168:in
invoke'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/comman
ds/generate.rb:12:in <top (required)>' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/dependencies.rb:240:in
require'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/dependencies.rb:240:in block in require' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/dependencies.rb:223:in
block in load_dependency'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/dependencies.rb:640:in new_constants_in' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/dependencies.rb:223:in
load_dependency'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_
support/dependencies.rb:240:in require' from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/comman
ds.rb:28:in
'
from script/rails:6:in require' from
script/rails:6:in
' "
Thanks for your attention.
Comments and changes to this ticket
-
Matt Jones September 9th, 2011 @ 07:12 PM
- State changed from new to wontfix
There has been significant restructuring of the Rails internals (again) between 3.0 and 3.1. The gemspecs for the RCs have been updated to reflect this - Hobo 1.3.0 will NOT be compatible with Rails 3.1.
-
Daniel Cox September 15th, 2011 @ 08:36 PM
I also have this issue, and trying to juggle gem dependencies so that Rails 3.1 never gets install is very frustrating. So I just can't use Hobo right now. What should I do?
-
Bryan Larsen September 15th, 2011 @ 08:49 PM
Make sure you are using Hobo Rc2 or head, it's dependencies have been fixed to exclude rails 3.1
-
Daniel Cox September 15th, 2011 @ 08:52 PM
Thank you Bryan, I really appreciate it. That did the trick.
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 »