rake neo4j:migrate fails in non Rails project (uninitialized constant Neo4j::Railtie) #1353

Closed
phreakocious opened this Issue Feb 3, 2017 · 4 comments

Projects

None yet

3 participants

@phreakocious

x$ rake neo4j:migrate --trace
** Invoke neo4j:migrate (first_time)
** Execute neo4j:migrate
** Invoke neo4j:migrate:all (first_time)
** Invoke neo4j:allow_migrations (first_time)
** Execute neo4j:allow_migrations
** Invoke environment (first_time)
** Execute environment
rake aborted!
NameError: uninitialized constant Neo4j::Railtie
/Users/x/.rvm/gems/ruby-2.3.3/gems/neo4j-8.0.5/lib/neo4j/tasks/migration.rake:9:in block in <top (required)>' /Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:250:inblock in execute'
/Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:250:in each' /Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:250:inexecute'
/Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:194:in block in invoke_with_call_chain' /Users/x/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/monitor.rb:214:inmon_synchronize'
/Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:187:in invoke_with_call_chain' /Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:216:inblock in invoke_prerequisites'
/Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:214:in each' /Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:214:ininvoke_prerequisites'
/Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:193:in block in invoke_with_call_chain' /Users/x/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/monitor.rb:214:inmon_synchronize'
/Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:187:in invoke_with_call_chain' /Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:180:ininvoke'
/Users/x/.rvm/gems/ruby-2.3.3/gems/neo4j-8.0.5/lib/neo4j/tasks/migration.rake:41:in block (2 levels) in <top (required)>' /Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:250:inblock in execute'
/Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:250:in each' /Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:250:inexecute'
/Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:194:in block in invoke_with_call_chain' /Users/x/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/monitor.rb:214:inmon_synchronize'
/Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:187:in invoke_with_call_chain' /Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:180:ininvoke'
/Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:152:in invoke_task' /Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:108:inblock (2 levels) in top_level'
/Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:108:in each' /Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:108:inblock in top_level'
/Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:117:in run_with_threads' /Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:102:intop_level'
/Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:80:in block in run' /Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:178:instandard_exception_handling'
/Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:77:in run' /Users/x/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/exe/rake:27:in<top (required)>'
/Users/x/.rvm/gems/ruby-2.3.3/bin/rake:22:in load' /Users/x/.rvm/gems/ruby-2.3.3/bin/rake:22:in

'
/Users/x/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in eval' /Users/x/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in'
Tasks: TOP => neo4j:migrate:all => environment

Neo4j database version:
neo4j gem version: 8.0.5
neo4j-core gem version: 7.0.3

@Joshfindit

Related to #1330 ?

@phreakocious

@Joshfindit - nailed it. Only a minor issue with that PR, which I commented on there.

@cheerfulstoic cheerfulstoic referenced this issue Feb 4, 2017
Merged

1330 fix #1331

@cheerfulstoic
Member

Just released 8.0.6. Give it a try!

@phreakocious

LGTM. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment