Rubymine 调试模式测试框架意外退出 - 无法加载此类文件
Rubymine debug mode test framework quit unexpectedly - cannot load such file
在从 Rubymine 调试 rspec 单元测试时我收到此错误:
Test framework quit unexpectedly
`load': cannot load such file -- NDLER_ENVIRONMENT_PRESERVER_INTENTIONALLY_NIL.rb (LoadError)
当我 运行 在 Run
模式下测试时,一切正常。我该如何解决这个问题?
我查看了以下问题,但它们与我的不相似:
- RubyMine Unit tests - Test Framework quit unexpectedly
- Running test from RubyMine gives 'cannot load such file'?
堆栈跟踪:
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 开始已修复。
在从 Rubymine 调试 rspec 单元测试时我收到此错误:
Test framework quit unexpectedly
`load': cannot load such file -- NDLER_ENVIRONMENT_PRESERVER_INTENTIONALLY_NIL.rb (LoadError)
当我 运行 在 Run
模式下测试时,一切正常。我该如何解决这个问题?
我查看了以下问题,但它们与我的不相似:
- RubyMine Unit tests - Test Framework quit unexpectedly
- Running test from RubyMine gives 'cannot load such file'?
堆栈跟踪:
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 开始已修复。