Problems when generating the files
cherta opened this issue · comments
Hi, I was trying to use the gem but when I execute the generator errational:install I get the following error:
/home/cherta/.rvm/gems/ruby-1.9.2-p180/bundler/gems/errational-4a2f98bd984a/lib/errational/errationality.rb:46:in 'block in <top (required)>': undefined method `exception_base' for Errational:Module (NoMethodError)
Is strange because the "exception_base" method is there.
My environment is:
OpenSuse 11.4
ruby-1.9.2-p180
Please let me know if you need more info
I am getting a similar error. It looks like the issue is caused during lazy load, where Errational isn't yet defined in Errationality. Deeper than that (if I move it out), the Exception::Parent is not defined until there's a config file, but that isn't generated until after the generator is run.
/Users/djabbour/.rvm/gems/ruby-1.9.2-p180@schools/gems/errational-0.8.16/lib/errational/errationality.rb:46:in `block in <top (required)>': uninitialized constant Errational (NameError)
from /Users/djabbour/.rvm/gems/ruby-1.9.2-p180@schools/gems/activesupport-3.0.7/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /Users/djabbour/.rvm/gems/ruby-1.9.2-p180@schools/gems/activesupport-3.0.7/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /Users/djabbour/.rvm/gems/ruby-1.9.2-p180@schools/gems/activesupport-3.0.7/lib/active_support/lazy_load_hooks.rb:26:in `on_load'
from /Users/djabbour/.rvm/gems/ruby-1.9.2-p180@schools/gems/errational-0.8.16/lib/errational/errationality.rb:42:in `<top (required)>'
from /Users/djabbour/.rvm/gems/ruby-1.9.2-p180@schools/gems/errational-0.8.16/lib/errational.rb:4:in `<top (required)>'
from /Users/djabbour/.rvm/gems/ruby-1.9.2-p180@schools/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `require'
from /Users/djabbour/.rvm/gems/ruby-1.9.2-p180@schools/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /Users/djabbour/.rvm/gems/ruby-1.9.2-p180@schools/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `each'
from /Users/djabbour/.rvm/gems/ruby-1.9.2-p180@schools/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `block in require'
from /Users/djabbour/.rvm/gems/ruby-1.9.2-p180@schools/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `each'
from /Users/djabbour/.rvm/gems/ruby-1.9.2-p180@schools/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `require'
from /Users/djabbour/.rvm/gems/ruby-1.9.2-p180@schools/gems/bundler-1.0.18/lib/bundler.rb:120:in `require'
from /Users/djabbour/workspace/Schools/config/application.rb:6:in `<top (required)>'
from /Users/djabbour/.rvm/gems/ruby-1.9.2-p180@schools/gems/railties-3.0.7/lib/rails/commands.rb:21:in `require'
from /Users/djabbour/.rvm/gems/ruby-1.9.2-p180@schools/gems/railties-3.0.7/lib/rails/commands.rb:21:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'