滚动条的未定义方法拆分

时间:2016-03-21 07:10:57

标签: ruby-on-rails ruby

突然出现这种情况,当我尝试运行rake db:migrate并遵循服务器日志时,我暂时没有观察到这一点。任何人都可以帮助我 耙子流产了! ```

NoMethodError: undefined method `split' for nil:NilClass
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/rollbar-2.7.1/lib/rollbar/rake.rb:23:in `patch?'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/rollbar-2.7.1/lib/rollbar/rake.rb:6:in `patch!'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/rollbar-2.7.1/lib/rollbar/rake.rb:38:in `<top (required)>'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/rollbar-2.7.1/lib/rollbar.rb:790:in `require_hooks'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/rollbar-2.7.1/lib/rollbar.rb:755:in `configure'
/home/gvpmahesh/code/shij/core/config/initializers/rollbar.rb:1:in `<top (required)>'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in `load'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in `block in load'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in `load'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5/lib/rails/engine.rb:652:in `block in load_config_initializer'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5/lib/active_support/notifications.rb:166:in `instrument'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5/lib/rails/engine.rb:651:in `load_config_initializer'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5/lib/rails/engine.rb:615:in `each'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5/lib/rails/engine.rb:615:in `block in <class:Engine>'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `instance_exec'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `run'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5/lib/rails/initializable.rb:44:in `each'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5/lib/rails/initializable.rb:44:in `tsort_each_child'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5/lib/rails/initializable.rb:54:in `run_initializers'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5/lib/rails/application.rb:352:in `initialize!'
/home/gvpmahesh/code/shij/core/config/environment.rb:5:in `<top (required)>'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5/lib/rails/application.rb:328:in `require_environment!'
/home/gvpmahesh/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5/lib/rails/application.rb:457:in `block in run_tasks_blocks'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
```

这是rollbar gem的问题吗?我在哪里错了。

2 个答案:

答案 0 :(得分:1)

可能是:

https://github.com/rollbar/rollbar-gem/issues/396

您需要检查版本。看起来rake的更新在从版本10移到11时引起了一个问题。

“更新:刚才注意到rake gem今天更新了(10.5.0到11.0.1)。在这个版本中,常量RAKEVERSION被移除。请参阅Rake的Github。所以解决方法是在'10 .5.0上硬锁rake ““

稍后在线程中,他们似乎有一个修复,你应该更新到最新版本。

答案 1 :(得分:1)

同样的事情发生在我身上,事实证明我需要更新rollbar gem:

bundle update rollbar
rake rollbar:test