2012-02-05 60 views
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上市與我的項目,所以我不完全確定它爲什麼抱怨。任何關於發生的事情的指針都會被讚賞,所以我可以在將來調試這種事情。

回答

0

看起來是一個寶石衝突。

  1. 更新padrino到最新版本0.10.5(或0.10.6.c)

    創業板安裝padrino - 事先

  2. 嘗試使用捆綁

    寶石的穩定版本卸載bundler -a;創業板安裝捆綁項目,並點

  3. 編輯的Gemfile到padrino 0.10.5或0.10.6.c

+0

感謝,加入Padrino的具體版本號爲Gemfile中似乎解決它。出於興趣,你怎麼知道這是一個寶石衝突?究竟發生了什麼事情導致了這個錯誤? – purpletonic 2012-02-06 09:29:19

+0

由於padrino 0.10.5取決於ActiveSupport 3.1,並且您的堆棧跟蹤顯示3.2。我不知道是什麼導致了這個問題,也許是bundler --pre或rvm gemset。 – DAddYE 2012-02-06 13:26:53

相關問題