Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No entities found; create your models first! #45

Closed
phlegx opened this issue Mar 27, 2013 · 4 comments
Closed

No entities found; create your models first! #45

phlegx opened this issue Mar 27, 2013 · 4 comments

Comments

@phlegx
Copy link

phlegx commented Mar 27, 2013

I have my model "outsourced" into a gem and used to start rails-erd like this:

 bundle exec rake erd inheritance=true --trace

I suppose since the upgrade, this doesn't work for me anymore and I do get this error:

** Invoke erd (first_time)
** Invoke erd:generate (first_time)
** Invoke erd:options (first_time)
** Execute erd:options
** Invoke erd:load_models (first_time)
** Execute erd:load_models
Loading application environment...
** Invoke environment (first_time)
** Execute environment
Loading code in search of Active Record models...
** Execute erd:generate
Generating Entity-Relationship Diagram for 22 models...
rake aborted!
No entities found; create your models first!
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rails-erd-1.1.0/lib/rails_erd/diagram.rb:159:in `block in filtered_entities'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rails-erd-1.1.0/lib/rails_erd/diagram.rb:152:in `tap'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rails-erd-1.1.0/lib/rails_erd/diagram.rb:152:in `filtered_entities'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rails-erd-1.1.0/lib/rails_erd/diagram.rb:128:in `generate'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rails-erd-1.1.0/lib/rails_erd/diagram.rb:119:in `create'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rails-erd-1.1.0/lib/rails_erd/diagram.rb:74:in `create'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rails-erd-1.1.0/lib/rails_erd/tasks.rake:41:in `block (2 levels) in '
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/home/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/task.rb:205:in `block in invoke_prerequisites'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/task.rb:183:in `block in invoke_with_call_chain'
/home/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/gems/rake-10.0.4/bin/rake:33:in `'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/bin/rake:19:in `load'
/home/username/.rvm/gems/ruby-1.9.3-p0@my_project/bin/rake:19:in `'
Tasks: TOP => erd => erd:generate

Any ideas what might be wrong?

@rolftimmermans
Copy link
Member

Please see my comment here: #42 (comment)
If you're able to send the complete application (or at least models + database schema) that would help too.

@phlegx
Copy link
Author

phlegx commented Apr 2, 2013

Fyi: I tried to downgrade to 1.0.0 but still no luck it is still broken. I previously thought it might be broken since the new version came out. For me now this looks like as if an other application/ gem did broke it.

I have to check what I can send you and will report you back

@phlegx
Copy link
Author

phlegx commented May 28, 2013

Unfortunately it is impossible for me to send the whole model. Not sure how this can be debugged then.

@bf4
Copy link
Collaborator

bf4 commented Sep 4, 2014

Duplicate #55 #42 #56 #60 #73

@bf4 bf4 closed this as completed Sep 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants