Skip Menu |

This queue is for tickets about the Catalyst-Controller-BindLex CPAN distribution.

Report information
The Basics
Id: 36001
Status: resolved
Priority: 0/
Queue: Catalyst-Controller-BindLex

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

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



When using BindLex with FormBuilder (perhaps with other controllers and/or plugins), the inheritance call has to be for BindLex last: use parent qw(Catalyst::Controller::FormBuilder Catalyst::Controller::BindLex); or use base qw(Catalyst::Controller::FormBuilder Catalyst::Controller::BindLex); If the order is changed, it produces the following error: Caught exception in ImagineThisIsARealApp::Controller::Unit->edit "Can't locate object method "formbuilder" via package "ImagineThisIsARealApp::Controller::Unit" at /home/sawyer/code/catalyst/ImagineThisIsARealApp/script/../lib/ImagineThisIsARealApp/Controller/Unit.pm line 59." Line 59 can be anything that uses $self->formbuilder. I'm not sure if this is a bug in BindLex but the good people at #catalyst advised on reporting a bug for BindLex. I have not tested this with other plugins or controllers, and I have also not tested it with 3 or more plugins/controllers. Using Catalyst 5.7012, Catalyst::Controller::BindLex 0.03 and Catalyst::Controller::FormBuilder 0.04.
Hi, Unfortunately due to the amount of crazy in ::BindLex, and the little value it actually provides we (mst and myself) are disinclined to fix it... If you can figure out the bug and fix it by all means please do, but BindLex was never intended as much more than a cool trick, and the plethora of edge cases and instabilities are usually extremely hard to debug (this one looks that way). Personally I suggest moving away from it altogether. It shouldn't be very tricky to convert a source base. Sorry, Yuval On Mon May 19 05:22:10 2008, xsawyerx wrote: Show quoted text
> When using BindLex with FormBuilder (perhaps with other controllers > and/or plugins), the inheritance call has to be for BindLex last: > use parent qw(Catalyst::Controller::FormBuilder > Catalyst::Controller::BindLex); > or > use base qw(Catalyst::Controller::FormBuilder > Catalyst::Controller::BindLex); > > If the order is changed, it produces the following error: > Caught exception in ImagineThisIsARealApp::Controller::Unit->edit > "Can't > locate object method "formbuilder" via package > "ImagineThisIsARealApp::Controller::Unit" at >
/home/sawyer/code/catalyst/ImagineThisIsARealApp/script/../lib/ImagineThisIsARealApp/C ontroller/Unit.pm Show quoted text
> line 59." > > Line 59 can be anything that uses $self->formbuilder. > > I'm not sure if this is a bug in BindLex but the good people at > #catalyst advised on reporting a bug for BindLex. I have not tested > this > with other plugins or controllers, and I have also not tested it with > 3 > or more plugins/controllers. > > Using Catalyst 5.7012, Catalyst::Controller::BindLex 0.03 and > Catalyst::Controller::FormBuilder 0.04.
Subject: Re: [rt.cpan.org #36001]
Date: Sun, 20 Jul 2008 00:01:13 +0100
To: Sawyer X via RT <bug-Catalyst-Controller-BindLex [...] rt.cpan.org>
From: Matt S Trout <mst [...] shadowcat.co.uk>
Note that BindLex is now officially deprecated and unmaintained. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
Subject: Re: [rt.cpan.org #36001]
Date: Sun, 20 Jul 2008 12:35:38 +0300
To: bug-Catalyst-Controller-BindLex [...] rt.cpan.org
From: "Sawyer X" <xsawyerx [...] cpan.org>
To both Matt and Yuval who replied to the ticket I opened: Thanks for the responses guys. On the day I filed the ticket (according to Matt's advice on IRC, me thinks) I already moved all my code to not use BindLex. On Sun, Jul 20, 2008 at 2:01 AM, Matt S Trout via RT < bug-Catalyst-Controller-BindLex@rt.cpan.org> wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=36001 > > > Note that BindLex is now officially deprecated and unmaintained. > > -- > Matt S Trout Need help with your Catalyst or DBIx::Class > project? > Technical Director > http://www.shadowcat.co.uk/catalyst/ > Shadowcat Systems Ltd. Want a managed development or deployment platform? > http://chainsawblues.vox.com/ > http://www.shadowcat.co.uk/servers/ > >