2014-01-28 25 views
2

每當我在我的命令行中鍵入pry時,就會打開此錯誤。Gem Pry - NameError:未初始化的常量Pry :: BondCompleter :: Bond

terminal$ pry 
    NameError: uninitialized constant Pry::BondCompleter::Bond 
    from /home/think/.rvm/gems/[email protected]/gems/pry-0.9.12.5/lib/pry/completion.rb:26:in `start' 
    [1] pry(main)> 

什麼是修復?即使我開始看守,這個顯示出來,

terminal$ guard 
18:07:44 - INFO - Guard is using NotifySend to send notifications. 
18:07:44 - INFO - Guard is using TerminalTitle to send notifications. 
18:07:44 - INFO - Guard::RSpec is running 
18:07:44 - INFO - Guard::RSpec is running 
18:07:44 - INFO - Guard::RSpec is running 
18:07:44 - INFO - Guard is now watching at '/home/think/jonathan/organizor' 
NameError: uninitialized constant Pry::BondCompleter::Bond 
from /home/think/.rvm/gems/ruby-1.9.3-p385/gems/pry-0.9.12.5/lib/pry/completion.rb:26:in `start' 
[1] guard(main)> 

有什麼我們可以做嗎?

回答

3

似乎是一個問題,在版本0.9.12.5

gem uninstall pry -v 0.9.12.5 
gem install pry -v 0.9.12.4 

固定對我來說。對於你的Gemfile:

gem 'pry', '0.9.12.6' 
+0

版本0.9.12.6(在0.9.12.5之後幾個小時發佈)修復了這個問題,所以:'gem update pry' – TNT

+0

更新您的答案請 – beck03076

+0

.6也適用於我,更新了答案 – mahemoff

1

更新到最新版本(寫作時爲0.9.12.6)。這解決了我的問題。

爲了完整性,這裏是GitHub issue #1106

相關問題