Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Javier Smaldone
RE: Load Error [ reply ]  
2007-04-30 03:11
Release 0.4.0 supports the --exclude option to exclude classes from processing.

By: Javier Smaldone
RE: Load Error [ reply ]  
2007-04-16 21:24
Try:

http://rubyforge.org/search/?type_of_search=soft&words=diagram&Search=Search

I'll try to provide some option for RailRoad to be able to skip/ignore broken models/controllers.

Good luck and thanks for testing!

By: Ken Downey
RE: Load Error [ reply ]  
2007-04-16 21:19
Thank you for your help. I am taking over an existing project and need a "big picture" overview of it, but there seems to be too much broken code for this tool to work. Do you know of any other visual tools like Railroad?

By: Javier Smaldone
RE: Load Error [ reply ]  
2007-04-16 20:49
The problem seems to be in the 'employee_classification' model when it loads 'expanded_date'.

Is this model working in your application? If not, please move it and try again. (RailRoad requires all models and controllers in your application to be working. In future versions, I'll add some flag to ignore files.)

Thanks for your help.

By: Ken Downey
RE: Load Error [ reply ]  
2007-04-16 20:43

C:\work\coloma>railroad -a -i -o -v full_models.dot -M
./config/boot.rb:28:Warning: require_gem is obsolete. Use gem instead.
Error loading model classes.
(Are you running railroad on the aplication's root directory?)

c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_re
quire': no such file to load -- expanded_date (MissingSourceFile)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
quire'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_suppo
rt/dependencies.rb:147:in `require'
from ./app/models/employee_classification.rb:2
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `ge
m_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
quire'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_suppo
rt/dependencies.rb:147:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/railroad-0.3.4/lib/railroad/models_d
iagram.rb:34:in `load_classes'
from c:/ruby/lib/ruby/gems/1.8/gems/railroad-0.3.4/lib/railroad/models_d
iagram.rb:34:in `glob'
from c:/ruby/lib/ruby/gems/1.8/gems/railroad-0.3.4/lib/railroad/models_d
iagram.rb:34:in `load_classes'
from c:/ruby/lib/ruby/gems/1.8/gems/railroad-0.3.4/lib/railroad/app_diag
ram.rb:21:in `initialize'
from c:/ruby/lib/ruby/gems/1.8/gems/railroad-0.3.4/lib/railroad/models_d
iagram.rb:13:in `initialize'
from c:/ruby/lib/ruby/gems/1.8/gems/railroad-0.3.4/bin/railroad:31:in `n
ew'
from c:/ruby/lib/ruby/gems/1.8/gems/railroad-0.3.4/bin/railroad:31
from c:/ruby/bin/railroad:16:in `load'
from c:/ruby/bin/railroad:16

By: Javier Smaldone
RE: Load Error [ reply ]  
2007-04-16 20:40
Try railroad with the --verbose flag and paste here the full output.

By: Ken Downey
RE: Load Error [ reply ]  
2007-04-16 20:29
script/server runs...
still get error. anything else I can try?

By: Javier Smaldone
RE: Load Error [ reply ]  
2007-04-16 18:59
There is some problem loading the application environment (config/environment.rb).

Check if you can run your the application server (script/server).

By: Ken Downey
Load Error [ reply ]  
2007-04-16 17:37
I am recieving an error when I try to run Railroad:
Error loading application environment.
in custom_require.rb:27

What causes this?