RSpec swallowing huge chunks of my backtraces

T

Tony Arcieri

[Note: parts of this message were removed to make it a legal post.]

I don't know exactly when this started happening, but it seems like RSpec
recently started swallowing huge chunks of the backtrace. Sometimes I don't
even get one.

This is making it extremely annoying to debug as I'm unable to see where the
error is occurring.

Anyone know what's up?
 
M

Michael Guterl

I don't know exactly when this started happening, but it seems like RSpec
recently started swallowing huge chunks of the backtrace. =C2=A0Sometimes= I don't
even get one.

This is making it extremely annoying to debug as I'm unable to see where = the
error is occurring.

Anyone know what's up?
I started noticing the same thing today:

1)
NoMethodError in 'XML::Importer should extract a list of jobs from the
provided XML'
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.text

Finished in 0.03372 seconds

1 example, 1 failure

It would be awesome to know what line that was occurring on...

Best,
Michael Guterl
 
S

Stefano Crocco

|> I don't know exactly when this started happening, but it seems like
|> RSpec recently started swallowing huge chunks of the backtrace.
|> Sometimes I don't even get one.
|>
|> This is making it extremely annoying to debug as I'm unable to see where
|> the error is occurring.
|>
|> Anyone know what's up?
|
|I started noticing the same thing today:
|
|1)
|NoMethodError in 'XML::Importer should extract a list of jobs from the
|provided XML'
|You have a nil object when you didn't expect it!
|The error occurred while evaluating nil.text
|
|Finished in 0.03372 seconds
|
|1 example, 1 failure
|
|It would be awesome to know what line that was occurring on...
|
|Best,
|Michael Guterl
|

I noticed something like that recently (at least using ruby 1.9) and solved it
by passing the -b option to spec. I don't know the reason for this change. I
tried looking at the rspec CHANGELOG but it didn't show anything related (at
least, I didn't recognize it).

I hope this helps

Stefano
 
M

Michael Guterl

I noticed something like that recently (at least using ruby 1.9) and solv= ed it
by passing the -b option to spec. I don't know the reason for this change= I
tried looking at the rspec CHANGELOG but it didn't show anything related = (at
least, I didn't recognize it).

I hope this helps
Thanks, this helps, now when I need a detailed backtrace I can just
add -b to spec/spec.opts

Michael Guterl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top