[ruby] #51: REXML -- 'trans' variable undefined in Document#write
#51: REXML -- 'trans' variable undefined in Document#write ------------------------------------+--------------------------------------- Reporter: insanitarian@yahoo.com | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: REXML, Document, write, transitive ------------------------------------+--------------------------------------- The error message (below) is given when calling method "write" from REXML::Document. Example: @newxml = REXML::Document.new(File.open("/file.xml")); @newxml.write($stdout, 1) Error Message: /Library/Frameworks/MacRuby.framework/Versions/0.2/usr/lib/ruby/1.9.0/rexml/document.rb:187:in `write': undefined local variable or method `trans' for <UNDEFINED> ... </>:REXML::Document (NameError) Corresponding Code: #/Library/Frameworks/MacRuby.framework/Versions/0.2/usr/lib/ruby/1.9.0/rexml/document.rb # Line 182:188 def write( output=$stdout, indent=-1, transitive=false, ie_hack=false ) if xml_decl.encoding != "UTF-8" && !output.kind_of?(Output) output = Output.new( output, xml_decl.encoding ) end formatter = if indent > -1 if trans REXML::Formatters::Transitive.new( indent, ie_hack ) Fix: -if trans; +if transitive -- Ticket URL: <http://trac.macosforge.org/projects/ruby/ticket/51> ruby <http://ruby.macosforge.org/>
#51: REXML -- 'trans' variable undefined in Document#write ------------------------------------------------+--------------------------- Reporter: insanitarian@yahoo.com | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Resolution: Keywords: REXML, Document, write, transitive | ------------------------------------------------+--------------------------- Comment (by lsansonetti@apple.com): This is an old bug that was fixed in 1.8 but not in 1.9, on which we are based upon. The fix was recently brought in Ruby trunk and should be fixed after the upcoming sync. -- Ticket URL: <http://trac.macosforge.org/projects/ruby/ticket/51#comment:1> ruby <http://ruby.macosforge.org/>
#51: REXML -- 'trans' variable undefined in Document#write ------------------------------------------------+--------------------------- Reporter: insanitarian@yahoo.com | Owner: lsansonetti@apple.com Type: defect | Status: closed Priority: minor | Milestone: MacRuby 0.2 Component: MacRuby | Resolution: fixed Keywords: REXML, Document, write, transitive | ------------------------------------------------+--------------------------- Changes (by lsansonetti@apple.com): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.2 Comment: Should be fixed in trunk, closing. -- Ticket URL: <http://ruby.macosforge.org/trac/ticket/51#comment:2> macruby <http://ruby.macosforge.org/>
participants (2)
-
macruby
-
ruby