简体   繁体   English

耙中止-无法加载此类文件错误

[英]rake aborted - cannot load such file error

I recently upgrade the Rspec Gem in my Ruby project from 2.12.0 to 2.99.2. 我最近在Ruby项目中将Rspec Gem从2.12.0升级到2.99.2。 Before I did the upgrade everything works just fine, but once I upgrade to 2.99.2 and run one of my spec test, there is a "rake aborted - cannot load such file error" pop up. 在进行升级之前,一切正常,但是一旦升级至2.99.2并运行我的规格测试之一,就会弹出“耙中止-无法加载此类文件错误”的提示。 The error message said it cannot load support/ext/vcr, which is another rb file I require in the spec file, any idea about that? 错误消息说它无法加载support / ext / vcr,这是我在spec文件中需要的另一个rb文件,对此有任何想法吗?

  rake aborted!

   cannot load such file -- support/ext/vcr



   (See full trace by running task with --trace)

 # ./spec/integration/resque_integration_spec.rb:31:in `rescue in wait_for'

 # ./spec/integration/resque_integration_spec.rb:22:in `wait_for'

 # ./spec/integration/resque_integration_spec.rb:77:in `block (2 levels) in <top (required)>'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:116:in `block in run'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:248:in `with_around_each_hooks'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:113:in `run'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:515:in `block in run_examples'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:511:in `map'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:511:in `run_examples'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:496:in `run'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:24:in `block (2 levels) in run'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:24:in `map'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:24:in `block in run'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/reporter.rb:58:in `report'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:21:in `run'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:in `run'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:17:in `block in autorun'

After updating, you should always restart your development environment. 更新后,您应该始终重新启动开发环境。 See if doing that helps at all. 看看这样做是否有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM