0
我收到一個錯誤,試圖運行一個應用程序,甚至沒有試圖做任何複雜的事情,只是讓基本的東西運行......只是想知道如果有人可以給我有關於如何調試它的任何指針。我懷疑這可能與RVM gemsets做的,但我不知道......Padrino with RVM gemsets:未初始化的常量ActiveSupport ::棄用
下面是我收到錯誤消息:
NameError: uninitialized constant ActiveSupport::Deprecation
~/Developer/.rvm/gems/[email protected]/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in `const_missing'
~/Developer/.rvm/gems/[email protected]_site/gems/activesupport-3.2.1/lib/active_support/core_ext/module/deprecation.rb:7:in `deprecate'
~/Developer/.rvm/gems/[email protected]_site/gems/activesupport-3.2.1/lib/active_support/core_ext/module/synchronization.rb:44:in `<class:Module>'
~/Developer/.rvm/gems/[email protected]_site/gems/activesupport-3.2.1/lib/active_support/core_ext/module/synchronization.rb:6:in `<top (required)>'
~/Developer/.rvm/gems/[email protected]_site/gems/activesupport-3.2.1/lib/active_support/core_ext/module.rb:8:in `require'
~/Developer/.rvm/gems/[email protected]_site/gems/activesupport-3.2.1/lib/active_support/core_ext/module.rb:8:in `<top (required)>'
~/Developer/.rvm/gems/[email protected]_site/gems/padrino-core-0.9.21/lib/padrino-core/support_lite.rb:13:in `require'
~/Developer/.rvm/gems/[email protected]_site/gems/padrino-core-0.9.21/lib/padrino-core/support_lite.rb:13:in `<top (required)>'
~/Developer/.rvm/gems/[email protected]_site/gems/padrino-core-0.9.21/lib/padrino-core.rb:2:in `require'
~/Developer/.rvm/gems/[email protected]_site/gems/padrino-core-0.9.21/lib/padrino-core.rb:2:in `<top (required)>'
~/Developer/.rvm/gems/[email protected]_site/gems/padrino-0.9.21/lib/padrino.rb:2:in `require'
~/Developer/.rvm/gems/[email protected]_site/gems/padrino-0.9.21/lib/padrino.rb:2:in `<top (required)>'
~/Developer/.rvm/gems/[email protected]/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:68:in `require'
~/Developer/.rvm/gems/[email protected]/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
~/Developer/.rvm/gems/[email protected]/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:66:in `each'
~/Developer/.rvm/gems/[email protected]/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:66:in `block in require'
~/Developer/.rvm/gems/[email protected]/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:55:in `each'
~/Developer/.rvm/gems/[email protected]/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:55:in `require'
~/Developer/.rvm/gems/[email protected]/gems/bundler-1.1.rc.7/lib/bundler.rb:118:in `require'
~/Documents/Projects/MarathonSite/config/boot.rb:8:in `<top (required)>'
我的ActiveSupport在寶石3.2.1上市與我的項目,所以我不完全確定它爲什麼抱怨。任何關於發生的事情的指針都會被讚賞,所以我可以在將來調試這種事情。
感謝,加入Padrino的具體版本號爲Gemfile中似乎解決它。出於興趣,你怎麼知道這是一個寶石衝突?究竟發生了什麼事情導致了這個錯誤? – purpletonic 2012-02-06 09:29:19
由於padrino 0.10.5取決於ActiveSupport 3.1,並且您的堆棧跟蹤顯示3.2。我不知道是什麼導致了這個問題,也許是bundler --pre或rvm gemset。 – DAddYE 2012-02-06 13:26:53