Skip Menu |

This queue is for tickets about the Rose-HTML-Objects CPAN distribution.

Report information
The Basics
Id: 51168
Status: resolved
Priority: 0/
Queue: Rose-HTML-Objects

People
Owner: Nobody in particular
Requestors: cr2005 [...] u-club.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 0.606



Subject: circular dependency in Rose::HTML::Form
I have trouble using Rose::HTML::Form with Catalyst 5.8 (which uses mro 'c3'): "Inconsistent hierarchy during C3 merge of class 'Rose::HTML::Form': merging failed on parent 'Rose::HTML::Form::Field' at /usr/share/perl/5.10/mro.pm line 34." I set up a form class using use base 'Rose::HTML::Form' and $self->next::method .... The Bug: package Rose::HTML::Form; our @ISA = qw(Rose::HTML::Object::WithWrapAroundChildren Rose::HTML::Form::Field Rose::HTML::Form::Field::Collection); Rose::HTML::Form::Field::Collection ISA Rose::HTML::Form::Field ! Solution: Remove Rose::HTML::Form::Field from Rose::HTML::Form::ISA makes it going. regards chr
This is now fixed in SVN. Let me know if the fix works for you and I'll include it in the next release and then close this bug. Thanks for the report!
On Fr. 06. Nov. 2009, 11:24:41, JSIRACUSA wrote: Show quoted text
> This is now fixed in SVN. Let me know if the fix works for you and
I'll Show quoted text
> include it in the next release and then close this bug. Thanks for
the Show quoted text
> report!
So far yes. But my application isn't finished, yet: my custom fields are not done ;) I'm not happy about DateTime ... the locale doesn't set an output_format, no? chr
On Fri Nov 06 12:23:07 2009, chr wrote: Show quoted text
> I'm not happy about DateTime ... the locale doesn't set an > output_format, no?
No, it doesn't, and I'm not sure I'd want to link those two attributes. But you can do so in your own DateTime field subclass, of course.
fixed in 0.6061
Hi! I reopen this bug because this issue is somehow related. Everything went fine until I had to debug something. Here comes the pain: perl -d -MRose::HTML::Form Loading DB routines from perl5db.pl version 1.3 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. Cannot create method Rose::HTML::Form::rank - method already exists at /home/chris/perl.cpan/lib/perl5/Rose/HTML/Form.pm line 67 at /home/chris/perl.cpan/lib/perl5/Rose/Object/MakeMethods.pm line 138 Rose::Object::MakeMethods::__make_methods('Rose::Object::MakeMethods::Generic', 'HASH(0x873ffd8)', 'scalar', 'ARRAY(0x873fdf8)') called at /home/chris/perl.cpan/lib/perl5/Rose/Object/MakeMethods.pm line 42 Rose::Object::MakeMethods::make_methods('Rose::Object::MakeMethods::Generic', 'HASH(0x873ffd8)', 'ARRAY(0x870d288)') called at /home/chris/perl.cpan/lib/perl5/Rose/Object/MakeMethods.pm line 23 Rose::Object::MakeMethods::import('Rose::Object::MakeMethods::Generic', 'scalar', 'ARRAY(0x873f948)', 'scalar --get_set_init', 'ARRAY(0x873fd08)', 'boolean', 'ARRAY(0x873fdb8)') called at /home/chris/perl.cpan/lib/perl5/Rose/HTML/Form.pm line 67 Rose::HTML::Form::BEGIN() called at /home/chris/perl.cpan/lib/perl5/Rose/HTML/Form.pm line 85 eval {...} called at /home/chris/perl.cpan/lib/perl5/Rose/HTML/Form.pm line 85 require Rose/HTML/Form.pm called at - line 0 main::BEGIN() called at /home/chris/perl.cpan/lib/perl5/Rose/HTML/Form.pm line 85 eval {...} called at /home/chris/perl.cpan/lib/perl5/Rose/HTML/Form.pm line 85 BEGIN failed--compilation aborted at /home/chris/perl.cpan/lib/perl5/Rose/HTML/Form.pm line 85. at /home/chris/perl.cpan/lib/perl5/Rose/HTML/Form.pm line 85 require Rose/HTML/Form.pm called at - line 0 main::BEGIN() called at /home/chris/perl.cpan/lib/perl5/Rose/HTML/Form.pm line 85 eval {...} called at /home/chris/perl.cpan/lib/perl5/Rose/HTML/Form.pm line 85 Compilation failed in require. at - line 0 main::BEGIN() called at /home/chris/perl.cpan/lib/perl5/Rose/HTML/Form.pm line 0 eval {...} called at /home/chris/perl.cpan/lib/perl5/Rose/HTML/Form.pm line 0 BEGIN failed--compilation aborted. at - line 0 Debugged program terminated. Use q to quit or R to restart, use o inhibit_exit to avoid stopping after program termination, h q, h R or h o to get additional info. Indeed, 'rank' is declared twice ...
On Sat Nov 21 13:21:09 2009, chr wrote: Show quoted text
> I reopen this bug because this issue is somehow related. Everything > went fine until I had to debug something. > > Here comes the pain: > > perl -d -MRose::HTML::Form > > Loading DB routines from perl5db.pl version 1.3 > Editor support available. > > Enter h or `h h' for help, or `man perldebug' for more help. > > Cannot create method Rose::HTML::Form::rank - method already exists [...]
I can't reproduce this: % perl -d -MRose::HTML::Form -e 0 Loading DB routines from perl5db.pl version 1.3 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(-e:1): 0 DB<1> I also don't see how it's related to bug 51168. Please open a new bug for this and let me know how to reproduce it with Rose::HTML::Objects 0.6061.