Hi All,<br><br>I just upgraded to the latest Catalyst & Moose modules out of CPAN and am now getting a new error whenever starting my app, for any of my controllers which are using formbuilder. eg<br><br>package MyApp::Controller::MyController;<br>
use base 'Catalyst::Controller::FormBuilder';<br><br>sub edit : Local Form {<br> my ($self, $c) = @_;<br> ...<br>}<br><br>1;<br><br>The errors look like this:<br><br>Attribute (formbuilder) of class MyApp::Controller::MyController has no associated methods (did you mean to provide an "is" argument?)<br>
at /Library/Perl/5.8.8/Moose/Meta/Attribute.pm line 565<br> Moose::Meta::Attribute::_check_associated_methods('Class::MOP::Class::__ANON__::SERIAL::5=HASH(0x4d9a434)') called at /Library/Perl/5.8.8/Moose/Meta/Class.pm line 253<br>
Moose::Meta::Class::add_attribute('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x4d9e71c)', 'formbuilder', 'traits', 'ARRAY(0x4d9a35c)') called at /Library/Perl/5.8.8/MooseX/Emulate/Class/Accessor/Fast.pm line 266<br>
MooseX::Emulate::Class::Accessor::Fast::make_accessor('MyApp::Controller::MyController', 'formbuilder') called at /Library/Perl/5.8.8/Catalyst/Controller/FormBuilder.pm line 40<br> Catalyst::Controller::FormBuilder::__setup('MyApp::Controller::MyController=HASH(0x4d9a080)') called at /Library/Perl/5.8.8/Catalyst/Controller/FormBuilder.pm line 13<br>
Catalyst::Controller::FormBuilder::new('MyApp::Controller::MyController', 'MyApp', 'HASH(0x4d9a5e4)') called at /Library/Perl/5.8.8/Catalyst/Component.pm line 100<br> Catalyst::Component::COMPONENT('MyApp::Controller::MyController', 'MyApp', 'HASH(0x4d9a5e4)') called at /Library/Perl/5.8.8/Catalyst.pm line 2216<br>
eval {...} called at /Library/Perl/5.8.8/Catalyst.pm line 2216<br> Catalyst::setup_component('MyApp', 'MyApp::Controller::MyController') called at /Library/Perl/5.8.8/Catalyst.pm line 2170<br>
Catalyst::setup_components('MyApp') called at /Library/Perl/5.8.8/Catalyst.pm line 1085<br> Catalyst::setup('MyApp') called at /Users/Shared/MyApp/workdir/MyApp-repo/MyApp/script/../lib/MyApp.pm line 120<br>
require MyApp.pm called at MyApp/script/MyApp_server.pl line 66<br> main::__ANON__() called at /Library/Perl/5.8.8/Catalyst/Restarter/Forking.pm line 20<br> Catalyst::Restarter::Forking::_fork_and_start('Catalyst::Restarter::Forking=HASH(0xc0d8d8)') called at /Library/Perl/5.8.8/Catalyst/Restarter.pm line 101<br>
Catalyst::Restarter::_handle_events('Catalyst::Restarter::Forking=HASH(0xc0d8d8)', 'File::ChangeNotify::Event=HASH(0xc85c3c)') called at /Library/Perl/5.8.8/Catalyst/Restarter.pm line 79<br> Catalyst::Restarter::_restart_on_changes('Catalyst::Restarter::Forking=HASH(0xc0d8d8)') called at /Library/Perl/5.8.8/Catalyst/Restarter.pm line 103<br>
Catalyst::Restarter::_handle_events('Catalyst::Restarter::Forking=HASH(0xc0d8d8)', 'File::ChangeNotify::Event=HASH(0xc85ab0)') called at /Library/Perl/5.8.8/Catalyst/Restarter.pm line 79<br> Catalyst::Restarter::_restart_on_changes('Catalyst::Restarter::Forking=HASH(0xc0d8d8)') called at /Library/Perl/5.8.8/Catalyst/Restarter.pm line 103<br>
Catalyst::Restarter::_handle_events('Catalyst::Restarter::Forking=HASH(0xc0d8d8)', 'File::ChangeNotify::Event=HASH(0xc859f0)') called at /Library/Perl/5.8.8/Catalyst/Restarter.pm line 79<br> Catalyst::Restarter::_restart_on_changes('Catalyst::Restarter::Forking=HASH(0xc0d8d8)') called at /Library/Perl/5.8.8/Catalyst/Restarter.pm line 72<br>
Catalyst::Restarter::run_and_watch('Catalyst::Restarter::Forking=HASH(0xc0d8d8)') called at MyApp/script/MyApp_server.pl line 104<br><br clear="all">I've been using Catalyst for a while but am new to Moose so this error means nothing to me, so sorry if it's blindingly obvious what's going on here. Can anyone tell me what I need to do to fix the error? <br>
<br>Thanks!<br>-- <br>Gavin<br>