每当我在命令行中输入pry时,就会出现此错误。
terminal$ pry
NameError: uninitialized constant Pry::BondCompleter::Bond
from /home/think/.rvm/gems/ruby-1.9.3-p385@global/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)>
我们能做什么吗?
答案 0 :(得分:4)
似乎是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'
答案 1 :(得分:1)
更新到最新版本(撰写时为0.9.12.6)。这解决了我的问题。
为了完整性,这里是GitHub issue #1106。