From: Jeff Mr Date: 2008-08-22T03:17:23+09:00 Subject: Re: REXML (1.8.6-p110) backwards compatibility problem with S. Potter wrote: > I got these string of errors in the order reported also. I solved this > by editing the following files: > > ...prefix.../ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/rake/verify_rcov.rb > ...prefix.../ruby/1.8/rexml/formatters/pretty.rb > > Plus the files already patched by this point. It seems like if your > stack trace says formatters/default.rb instead of formatters/pretty.rb > then that is the file you need to patch. > > My formatters/pretty.rb patch looks like the following: >> place = string.rindex(' ', width) || width # Position in string with last ' ' before cutoff > < place = string.rindex(' ', width) # Position in string with last ' ' > before cutoff > > My rake/verify_rcov.rb patch looks like: >> if line =~ / (\d+\.\d+)% <\/tt>   <\/td>/ > < if line =~ /(\d+\.\d+)%<\/tt> <\/td>/ > > Hope that helps someone, > Susan > > unknown wrote: >> Ive also applied both fixes and Im seeing exactly the same problem. >> Any updates on this? >> >> /usr/local/lib/ruby/1.8/rexml/formatters/pretty.rb:131:in `[]': no >>> `write_element' >>> from /usr/local/lib/ruby/1.8/rexml/formatters/default.rb:31:in `write' >>> ... 16 levels... >> >> Thanks, I have done all the fixes except for the fix to: ...prefix.../ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/rake/verify_rcov.rb Cant find the right file to modify to try that fix... After doing the fix to: ...prefix.../ruby/1.8/rexml/formatters/pretty.rb I am now getting this for an error: 572 tests, 115117 assertions, 0 failures, 0 errors /usr/lib/ruby/1.8/rexml/formatters/pretty.rb:131:in `wrap': stack level too deep (SystemStackError) from /usr/lib/ruby/1.8/rexml/formatters/pretty.rb:131:in `wrap' from /usr/lib/ruby/1.8/rexml/formatters/pretty.rb:90:in `write_text' from /usr/lib/ruby/1.8/rexml/formatters/default.rb:50:in `write' from /usr/lib/ruby/1.8/rexml/formatters/pretty.rb:75:in `write_element' from /usr/lib/ruby/1.8/rexml/formatters/pretty.rb:73:in `each' from /usr/lib/ruby/1.8/rexml/formatters/pretty.rb:73:in `write_element' from /usr/lib/ruby/1.8/rexml/formatters/default.rb:31:in `write' from /usr/lib/ruby/1.8/rexml/formatters/pretty.rb:75:in `write_element' ... 12 levels... from /usr/lib/ruby/1.8/rcov.rb:628:in `each' from /usr/lib/ruby/1.8/rcov.rb:628:in `dump_coverage_info' from /usr/bin/rcov:405 from /usr/lib/ruby/1.8/test/unit.rb:278 Any suggestions or help you guys can give me? -- Posted via http://www.ruby-forum.com/.