简体   繁体   English

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

[英]Rubymine debug mode test framework quit unexpectedly - cannot load such file

While debugging rspec unit tests from Rubymine I'm getting this error: 从Rubymine调试rspec单元测试时,出现此错误:

Test framework quit unexpectedly

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

When I run tests in Run mode everything works fine. 当我在Run模式下运行测试时,一切正常。 How can I fix this? 我怎样才能解决这个问题?

I've looked at below problems but they are not similar to mine: 我看过以下问题,但它们与我的不相似:

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

截图

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

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

相关问题 RubyMine单元测试 - 测试框架意外退出 - RubyMine Unit tests - Test Framework quit unexpectedly rubymine debug rspec未捕获的异常:无法加载此类文件-teamcity / spec / runner / formatter / teamcity / formatter - rubymine debug rspec Uncaught exception: cannot load such file — teamcity/spec/runner/formatter/teamcity/formatter RubyMine / IDEA ruby​​调试器无法在bundler模​​式下加载linecache gem - RubyMine/IDEA ruby debugger cannot load linecache gem in bundler mode 在RubyMine中调试特定的测试/规范 - Debug a specific test/spec in RubyMine 无法在RubyMine中解析文件 - Cannot resolve file in RubyMine 无法运行黄瓜并在RubyMine中进行测试 - Cannot run cucumber and test in RubyMine rubyMine&#39;无法将测试报告者附加到测试框架&#39; - rubyMine 'Unable to attach test reporter to test framework' RubyMine 7 远程调试没有此类文件或目录错误 - RubyMine 7 Remote Debug No such file or directory error 在RubyMine中运行规范会导致“无法加载此类文件 - teamcity / spec / runner / formatter / teamcity / formatter(LoadError)” - Running a spec in RubyMine results in “cannot load such file — teamcity/spec/runner/formatter/teamcity/formatter (LoadError)” 无法在RubyMine 4.0中调试或检查外部gem - Cannot debug nor inspect external gems in RubyMine 4.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM