Skip Menu |

This queue is for tickets about the LaTeX-TOM CPAN distribution.

Report information
The Basics
Id: 48540
Status: resolved
Priority: 0/
Queue: LaTeX-TOM

People
Owner: Nobody in particular
Requestors: jaspax [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.8
  • 0.8_01
  • 0.8_02
  • 0.9
Fixed in: (no value)



Subject: Parsing user-defined commands with apply mappings flag = 1 is broken
Attempting to parse a document that defines custom commands with apply mappings = 1 will cause the program to crash with "Not a HASH reference at /usr/local/share/perl/5.10.0/LaTeX/TOM/Tree.pm line 37." The bug actually comes long before this, though, in LaTeX::TOM::Tree::copy(), which returns a blessed ARRAY reference, where the rest of the Tree class (including this very method) expects a HASH reference.
On Sat Aug 08 02:43:32 2009, JASPAX wrote: Show quoted text
> Attempting to parse a document that defines custom commands with apply > mappings = 1 will cause the program to crash with "Not a HASH reference > at /usr/local/share/perl/5.10.0/LaTeX/TOM/Tree.pm line 37." The bug > actually comes long before this, though, in LaTeX::TOM::Tree::copy(), > which returns a blessed ARRAY reference, where the rest of the Tree > class (including this very method) expects a HASH reference.
Addendum: Note that just fixing the copy() method to return a proper LaTeX::TOM::Tree object will cause LaTeX::TOM::Tree::_applyParamsToTemplate to fail horribly, since that method and only that method wants to treat the Tree as an array ref.
Fixed in v1.00_07. Thanks!