This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 188558 - Rspec Stack Trace
Summary: Rspec Stack Trace
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC All
: P3 normal (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-10 17:31 UTC by danielrb
Modified: 2011-01-28 20:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patched nb_rspec_mediator.rb (9.98 KB, patch)
2010-07-10 17:31 UTC, danielrb
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description danielrb 2010-07-10 17:31:33 UTC
Created attachment 100746 [details]
Patched nb_rspec_mediator.rb

When running rspec on a spec that failes due to an exceptin, netbeans not only doesn't reaveal a more complete view of the stack trace (it actually only shows one line), but also, it does not even show the line of the exception.

Following some old threads regarding another issue on rspec support on netbeans 6.5, I changed $NETBEANS/ruby/nb_rspec_mediator.rb, where $NETBEANS is the installation folder of netbeans 6.9, to the one attached to this ticket.

It essentially changes some regexp used by the default Spec::Runner::BacktraceTweaker (used on 'NbRspecMediator#report_failure' method), so that it does not ignore the parts of the stack that have 'lib' on their path (as is default with netbeans ruby project file structure).

Regards,
- Daniel