How do I hide unnecessary stuff from rspec stack trace

When running an rspec in RubyMine 4.5.4 (on OSX) I'm finding that my stack traces are full of rspec/spork/drb cruft which makes the actual message scroll out of view. These lines are colored lighter, so it should be possible to identify them and hide them. but there's not button to hide stack traces (in fact there's a rspec run config option to "Output full stacktraces" which doesn't seem to make any difference

Some more details:
I'm running rspec with spork. My spork is started by guard (running in a command line outside of RubyMine).


Here's an example:

/Users/tim/.rvm/rubies/ruby-1.9.2-p320/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/bin/rspec /Users/tim/workspaces/glug/glug/spec/models/work_calendar_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --example WorkCalendar --drb --backtrace
Testing started at 12:05 ...

expected true to be false
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-expectations-2.10.0/lib/rspec/expectations/fail_with.rb:33:in `fail_with'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-expectations-2.10.0/lib/rspec/expectations/handler.rb:19:in `handle_matcher'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-expectations-2.10.0/lib/rspec/expectations/extensions/kernel.rb:12:in `should'
/Users/tim/workspaces/glug/glug/spec/models/work_calendar_spec.rb:10:in `block (2 levels) in <top (required)>'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:87:in `instance_eval'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:87:in `block in run'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:195:in `with_around_each_hooks'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-core-2.10.1/lib/rspec/core/example.rb:84:in `run'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:353:in `block in run_examples'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:349:in `map'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:349:in `run_examples'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-core-2.10.1/lib/rspec/core/example_group.rb:335:in `run'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `map'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:28:in `block in run'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-core-2.10.1/lib/rspec/core/reporter.rb:34:in `report'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:25:in `run'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/spork-1.0.0rc3/lib/spork/test_framework/rspec.rb:11:in `run_tests'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/spork-1.0.0rc3/lib/spork/run_strategy/forking.rb:13:in `block in run'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/spork-1.0.0rc3/lib/spork/forker.rb:21:in `block in initialize'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/spork-1.0.0rc3/lib/spork/forker.rb:18:in `fork'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/spork-1.0.0rc3/lib/spork/forker.rb:18:in `initialize'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/spork-1.0.0rc3/lib/spork/run_strategy/forking.rb:9:in `new'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/spork-1.0.0rc3/lib/spork/run_strategy/forking.rb:9:in `run'
/Users/tim/.rvm/gems/ruby-1.9.2-p320@glug/gems/spork-1.0.0rc3/lib/spork/server.rb:48:in `run'
/Users/tim/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/drb/drb.rb:1563:in `perform_without_block'
/Users/tim/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/drb/drb.rb:1523:in `perform'
/Users/tim/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/drb/drb.rb:1601:in `block (2 levels) in main_loop'
/Users/tim/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/drb/drb.rb:1597:in `loop'
/Users/tim/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/drb/drb.rb:1597:in `block in main_loop'

1 comment
Comment actions Permalink

I believe this is the same as http://youtrack.jetbrains.com/issue/RUBY-12397, which was fixed in the latest RM 5.0 EAP.

Regrads, Oleg.

0

Please sign in to leave a comment.