RM 2019.3.1 error launching rspec for debugging
Completed
It seems like RM is putting the working directory as a parameter to rspec, rather than just the file I'm trying to test against.
Testing started at 23:15 ...
/bin/bash -c "env RBENV_VERSION=2.4.3 /usr/local/Cellar/rbenv/1.1.2/libexec/rbenv exec bundle exec ruby /<homedir>/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/ruby-debug-ide-0.8.0.beta19/bin/rdebug-ide --key-value --step-over-in-blocks --disable-int-handler --evaluation-timeout 20 --rubymine-protocol-extensions --port 63651 --host 0.0.0.0 --dispatcher-port 63652 -- /<homedir>/<projectdir>/script/spec /<homedir>/<projectdir>/spec/extras/klass_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format 'Spec::Runner::Formatter::TeamcityFormatter' --example 'Klass#duplicate_exists?'"
Fast Debugger (ruby-debug-ide 0.8.0.beta19, debase 0.3.0.beta19, file filtering is supported, block breakpoints supported, smart steps supported, obtaining return values supported, partial obtaining of instance variables supported) listens on 0.0.0.0:63651
Uncaught exception: cannot load such file -- /<homedir>/<projectdir>/script/spec
Anyone see this before? Any workarounds?
Please sign in to leave a comment.
Just in case someone else has the same problem, there's a corresponding issue https://youtrack.jetbrains.com/issue/RUBY-25782 which has been already fixed.