Debugging Rake Task (Using Cucumber/Celerity in JRuby)

Hello,

I am fairly new to Ruby & RubyMine and am having some trouble trying to figure out how to get the debugger working. We are developing a Cucumber test framework where we use Celerity, which runs in JRuby. When running our tests, we execute them through a Rake tasks through the command line. I would really like to debug through the RubyMine GUI but am getting errors when trying to run:

/usr/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/mwatkins/.gem/ruby/1.8/gems/ruby-debug-ide-0.4.17.beta5/bin/rdebug-ide --port 49641 -- /usr/bin/rake default --trace TAGS=@mwatkins
Fast Debugger (ruby-debug-ide 0.4.17.beta5, ruby-debug-base 0.10.5.jb2) listens on 127.0.0.1:49641
Clearing test results
** Invoke default (first_time)
** Invoke feature:run (first_time)
** Invoke clear (first_time)
** Execute clear
rm -rf features/output/*
** Execute feature:run
jruby -S cucumber -p default --tags @mwatkins
rake aborted!
Command failed with status (127): [jruby -S cucumber -p default --tags @mwatk...]
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/file_utils.rb:53:in `create_shell_runner'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/file_utils.rb:45:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/file_utils.rb:45:in `sh'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/file_utils_ext.rb:36:in `sh'
/Users/mwatkins/dev/environment_tests/branches/TF-266/rakefile.rb:239
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:205:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:205:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:200:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:200:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:158:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:176:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:174:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:174:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:157:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:144:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:112:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:90:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:90:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:90:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:129:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:84:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:62:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:129:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:59:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.9.0/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
/Users/mwatkins/.gem/ruby/1.8/gems/ruby-debug-ide-0.4.17.beta5/lib/ruby-debug-ide.rb:112:in `debug_load'
/Users/mwatkins/.gem/ruby/1.8/gems/ruby-debug-ide-0.4.17.beta5/lib/ruby-debug-ide.rb:112:in `debug_program'
/Users/mwatkins/.gem/ruby/1.8/gems/ruby-debug-ide-0.4.17.beta5/bin/rdebug-ide:87
-e:1:in `load'
-e:1
Tasks: TOP => default => feature:run

Process finished with exit code 0



It looks like the task is failing when trying to create a shell call but not sure. Any help would be appreciated.

Thanks,

Mike

Please sign in to leave a comment.