Rubymine调试模式测试框架意外退出-无法加载此类文件

时间:2019-04-18 06:14:43

标签: ruby-on-rails ruby rspec rubymine

从Rubymine调试rspec单元测试时,出现此错误:

Test framework quit unexpectedly

`load': cannot load such file -- NDLER_ENVIRONMENT_PRESERVER_INTENTIONALLY_NIL.rb (LoadError)

当我在Run模式下运行测试时,一切正常。我该如何解决?

我研究了以下问题,但它们与我的问题不同:

StackTrace:

Testing started at 11:30 ...
/bin/bash -c "/Users/vaibhav/.rvm/bin/rvm ruby-2.3.4 do bundle exec /Users/vaibhav/.rvm/rubies/ruby-2.3.4/bin/ruby /Users/vaibhav/.rvm/gems/ruby-2.3.4/gems/ruby-debug-ide-0.7.0.beta7/bin/rdebug-ide --key-value --disable-int-handler --evaluation-timeout 10 --evaluation-control --time-limit 100 --memory-limit 0 --rubymine-protocol-extensions --port 59453 --host 0.0.0.0 --dispatcher-port 59454 -- /Users/vaibhav/codebase/orca/bin/rspec /Users/vaibhav/codebase/orca/spec/lib/job_processors/onboarding_processor_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --example \"JobProcessors::OnboardingProcessor#perform Onboarding should run the job and return true and promote onboarding and service to stable state\" --no-color"
Fast Debugger (ruby-debug-ide 0.7.0.beta7, debase 0.2.3.beta5, file filtering is supported) listens on 0.0.0.0:59453
Running via Spring preloader in process 60174
/Users/vaibhav/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load': cannot load such file -- NDLER_ENVIRONMENT_PRESERVER_INTENTIONALLY_NIL.rb (LoadError)
    from /Users/vaibhav/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `block in load'
    from /Users/vaibhav/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
    from /Users/vaibhav/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load'
    from /Users/vaibhav/.spring.rb:4:in `block in <top (required)>'
    from /Users/vaibhav/.rvm/gems/ruby-2.3.4/gems/spring-2.0.2/lib/spring/application.rb:263:in `block in invoke_after_fork_callbacks'
    from /Users/vaibhav/.rvm/gems/ruby-2.3.4/gems/spring-2.0.2/lib/spring/application.rb:262:in `each'
    from /Users/vaibhav/.rvm/gems/ruby-2.3.4/gems/spring-2.0.2/lib/spring/application.rb:262:in `invoke_after_fork_callbacks'
    from /Users/vaibhav/.rvm/gems/ruby-2.3.4/gems/spring-2.0.2/lib/spring/application.rb:198:in `block in serve'
    from /Users/vaibhav/.rvm/gems/ruby-2.3.4/gems/spring-2.0.2/lib/spring/application.rb:171:in `fork'
    from /Users/vaibhav/.rvm/gems/ruby-2.3.4/gems/spring-2.0.2/lib/spring/application.rb:171:in `serve'
    from /Users/vaibhav/.rvm/gems/ruby-2.3.4/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
    from /Users/vaibhav/.rvm/gems/ruby-2.3.4/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
    from /Users/vaibhav/.rvm/gems/ruby-2.3.4/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
    from /Users/vaibhav/.rvm/gems/ruby-2.3.4/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
    from /Users/vaibhav/.rvm/rubies/ruby-2.3.4/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/vaibhav/.rvm/rubies/ruby-2.3.4/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from -e:1:in `<main>'

Process finished with exit code 1

Screenshot

1 个答案:

答案 0 :(得分:2)

对于那些面临相同问题的人:这是一个已知问题(https://youtrack.jetbrains.com/issue/RUBY-24021),已从RubyMine 2019.1.1 RC开始修复。