Forum: Ruby rcov fails with errors related to rexml

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D893e113b51a8f200d2abb3ed9e54143?d=identicon&s=25 Gaspard Bucher (gazoduc)
on 2008-10-03 23:53
(Received via mailing list)
Running rcov fails during post processing.

Anyone has found a fix for this incompatibility problem between rcov
0.8.1.2 and rexml in ruby 1.8.7 ?

Thanks for any help.

Gaspard

--------------

versions:
rcov 0.8.1.2 2007-11-22
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9]


complete backtrace:
/opt/local/lib/ruby/1.8/rexml/formatters/pretty.rb:131:in `[]': no
implicit conversion from nil to integer (TypeError)
  from /opt/local/lib/ruby/1.8/rexml/formatters/pretty.rb:131:in `wrap'
  from /opt/local/lib/ruby/1.8/rexml/formatters/pretty.rb:131:in `wrap'
  from /opt/local/lib/ruby/1.8/rexml/formatters/pretty.rb:90:in
`write_text'
  from /opt/local/lib/ruby/1.8/rexml/formatters/default.rb:50:in `write'
  from /opt/local/lib/ruby/1.8/rexml/formatters/pretty.rb:75:in
`write_element'
  from /opt/local/lib/ruby/1.8/rexml/formatters/pretty.rb:73:in `each'
  from /opt/local/lib/ruby/1.8/rexml/formatters/pretty.rb:73:in
`write_element'
  from /opt/local/lib/ruby/1.8/rexml/formatters/default.rb:31:in `write'
  from /opt/local/lib/ruby/1.8/rexml/formatters/pretty.rb:75:in
`write_element'
  from /opt/local/lib/ruby/1.8/rexml/formatters/pretty.rb:73:in `each'
  from /opt/local/lib/ruby/1.8/rexml/formatters/pretty.rb:73:in
`write_element'
  from /opt/local/lib/ruby/1.8/rexml/formatters/default.rb:31:in `write'
  from /opt/local/lib/ruby/1.8/rexml/formatters/pretty.rb:117:in
`write_document'
  from /opt/local/lib/ruby/1.8/rexml/formatters/pretty.rb:111:in `each'
  from /opt/local/lib/ruby/1.8/rexml/formatters/pretty.rb:111:in
`write_document'
  from /opt/local/lib/ruby/1.8/rexml/formatters/default.rb:28:in `write'
  from /opt/local/lib/ruby/1.8/rexml/document.rb:195:in `write'
  from (eval):93:in `pretty'
  from /opt/local/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0/lib/rcov/
report.rb:1003:in `create_file'
  from /opt/local/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0/lib/rcov/
report.rb:708:in `execute'
  from /opt/local/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0/lib/rcov/
report.rb:125:in `each'
  from /opt/local/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0/lib/rcov/
report.rb:125:in `each_file_pair_sorted'
  from /opt/local/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0/lib/rcov/
report.rb:707:in `execute'
  from /opt/local/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0/lib/rcov.rb:
640:in `dump_coverage_info'
  from /opt/local/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0/lib/rcov.rb:
640:in `each'
  from /opt/local/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0/lib/rcov.rb:
640:in `dump_coverage_info'
  from /opt/local/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0/bin/rcov:421
  from /opt/local/lib/ruby/1.8/test/unit.rb:278
Df5e7adb20adae6c120b04e7cafb15a0?d=identicon&s=25 Rob Sanheim (rsanheim)
on 2008-10-05 03:31
(Received via mailing list)
Try this fork of rcov:

http://github.com/spicycode/rcov

- Rob
This topic is locked and can not be replied to.