Rspec and rcov

hi everyone,
does anyone experience this problem?

kain-osx:mysite kain$ rake spec:rcov
(in /Users/kain/Sites/mysite)

Finished in 1.567164 seconds

20 examples, 0 failures
/usr/local/lib/ruby/1.8/rexml/formatters/pretty.rb:131:in wrap': stack level too deep (SystemStackError) from /usr/local/lib/ruby/1.8/rexml/formatters/pretty.rb:131:inwrap’
from /usr/local/lib/ruby/1.8/rexml/formatters/pretty.rb:90:in
write_text' from /usr/local/lib/ruby/1.8/rexml/formatters/default.rb:50:inwrite’
from /usr/local/lib/ruby/1.8/rexml/formatters/pretty.rb:75:in
write_element' from /usr/local/lib/ruby/1.8/rexml/formatters/pretty.rb:73:ineach’
from /usr/local/lib/ruby/1.8/rexml/formatters/pretty.rb:73:in
write_element' from /usr/local/lib/ruby/1.8/rexml/formatters/default.rb:31:inwrite’
from /usr/local/lib/ruby/1.8/rexml/formatters/pretty.rb:75:in
write_element' ... 11 levels... from /usr/local/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0/lib/rcov.rb: 640:indump_coverage_info’
from /usr/local/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0/lib/rcov.rb:
640:in each' from /usr/local/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0/lib/rcov.rb: 640:indump_coverage_info’
from /usr/local/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0/bin/rcov:421
rake aborted!
Command /usr/local/bin/ruby -I"/usr/local/lib/ruby/gems/1.8/gems/
rspec-1.1.4/lib" -S rcov --exclude “spec/,gems/” --rails -o
“coverage” “/usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.4/bin/spec” –
“spec/models/account_spec.rb” “spec/models/dictionary_spec.rb” –
options “/Users/kain/Sites/mysite/spec/spec.opts” failed

On Mon, Aug 25, 2008 at 1:11 PM, Claudio P. [email protected]
wrote:

hi everyone,
does anyone experience this problem?

Hi Claudio,

There are a few issues at lighthouse related to running rcov:

http://rspec.lighthouseapp.com/projects/5645-rspec/tickets?q=rcov+state%3Aopen&filter=created%3Atoday

Don’t know if yours is the same, but you may want to take a peek at
those.

Cheers,
David

hi David,
thanks for the reply, I didn’t find on lighthouse this specific
exception.
I think it’s something related to the rexml version in ruby 1.8.7
(2008-06-20 patchlevel 22) [i686-darwin9.3.0] but not sure how to fix
it.

Claudio

Il giorno 25/ago/08, alle ore 20:15, David C. ha scritto:

Please file a new ticket for this then.

Thanks,
David

Please file a new ticket for this then.

But first check topfunky’s recent tweet on REXML. I’m almost certain
you’ve been bitten by a REXML bug.

got this and monkeypatched rails with the fix proposed by Koz, rspec
test linked in topfunky’s tweet pass, but still same error about
rspec:rcov rake task.
I’m going to open a lighthouse ticket, feel free to close it if it’s
not pertinent, thanks.

claudio

Il giorno 25/ago/08, alle ore 22:15, Aslak Hellesøy ha scritto:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs