From the Terminal:
matt-neuburgs-imac-g5:~ mattneub$ ruby -e "Object.new.hello" -e:1: undefined method `hello' for #Object:0x3257bc (NoMethodError)
Very good. Now let's try it in TextMate. Make a TextMate doc, set it to Ruby, put Object.new.hello into it, and run it. The RubyMate window appears and says:
NoMethodError: undefined method 'hello' for #
I'm guess that the loss of Object:xxx is because of an HTML problem. Hmmm, I suppose I *could* try to fix this instead of just talking about it. :) Anyway, a fix would be nice to have. Thx - m.
Try this patch:
Index: Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb =================================================================== --- Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb (revision 5663) +++ Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb (working copy) @@ -10,7 +10,7 @@ io = IO.for_fd(ENV['TM_ERROR_FD'].to_i)
io.write "<div id='exception_report' class='framed'>\n" - io.write "<p id='exception'><strong>#{e.class.name}:</strong> #{e.message.sub(/`(\w+)'/, ''\1'').sub(/ -- /, ' — ')}</p>\n" + io.write "<p id='exception'><strong>#{e.class.name}:</strong> #{CGI.escapeHTML(e.message.sub(/`(\w+)'/, ''\1'').sub(/ -- /, ' — '))}</p>\n"
io.write "<blockquote><table border='0' cellspacing='0' cellpadding='0'>\n"
On 10/27/06, Matt Neuburg matt@tidbits.com wrote:
From the Terminal:
matt-neuburgs-imac-g5:~ mattneub$ ruby -e "Object.new.hello" -e:1: undefined method `hello' for #Object:0x3257bc (NoMethodError)
Very good. Now let's try it in TextMate. Make a TextMate doc, set it to Ruby, put Object.new.hello into it, and run it. The RubyMate window appears and says:
NoMethodError: undefined method 'hello' for #
I'm guess that the loss of Object:xxx is because of an HTML problem. Hmmm, I suppose I *could* try to fix this instead of just talking about it. :) Anyway, a fix would be nice to have. Thx - m.
-- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.amazon.com/gp/product/0596102119