Allan Odgaard-3 wrote:
On 17 Nov 2007, at 17:54, Matt Brandt wrote:
If you look in the Subversion bundle the format_log_xml.rb script is called by this line:
"$TM_SVN" log --xml $LIMIT -vr "$TM_SVN_LOG_RANGE" \ "$TM_FILEPATH" 2>&1 | "$TM_RUBY" -- "$FORMAT_LOG"
With no variable set, the default values for the above should become:
svn log --xml --limit 15 -vr HEAD:1 \ «file» 2>&1 | ruby -- "${TM_BUNDLE_SUPPORT}/format_log_xml.rb"
Digging up an old thread here, but I'm getting these same problems with the latest TextMate and the latest Subversion bundle.
When I run the second command above (the parsed one with defaults)[1] I get the same REXML error [2]. However, if I change it to this (two-liner) it works just fine (of course, it doesn't show in TM...):
svn log --xml --limit 15 -vr HEAD:1 «file» 2>&1 > ~/test.log ruby /Library/Application\ Support/TextMate/Bundles/Subversion.tmbundle/Support/format_log_xml.rb < ~/test.log
Any ideas?
Dave
[1] I had to set several ENV variables in the script before it would work: TM_BUNDLE_SUPPORT, TM_SUPPORT_PATH, and TM_SELECTED_FILES
[2] The error with the rescue block in format_log_xml.rb commented out: /opt/local/lib/ruby/1.8/rexml/parsers/treeparser.rb:90:in `parse': REXML::ParseException from /opt/local/lib/ruby/1.8/rexml/document.rb:190:in `build' from /opt/local/lib/ruby/1.8/rexml/document.rb:45:in `initialize' from /Library/Application Support/TextMate/Bundles/Subversion.tmbundle/Support/format_log_xml.rb:170:in `new' from /Library/Application Support/TextMate/Bundles/Subversion.tmbundle/Support/format_log_xml.rb:170
The error with the rescue block uncommented: /opt/local/lib/ruby/1.8/rexml/source.rb:226:in `pos': Illegal seek (Errno::ESPIPE) from /opt/local/lib/ruby/1.8/rexml/source.rb:226:in `current_line' from /opt/local/lib/ruby/1.8/rexml/parseexception.rb:44:in `line' from /opt/local/lib/ruby/1.8/rexml/parseexception.rb:28:in `to_s' from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/escape.rb:30:in `htmlize' from /Library/Application Support/TextMate/Bundles/Subversion.tmbundle/Support/svn_helper.rb:90:in `handle_default_exceptions' from /Library/Application Support/TextMate/Bundles/Subversion.tmbundle/Support/format_log_xml.rb:174