Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

Catalyst::Controller: find_meta not found

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


catalyst at sethdaniel

Feb 14, 2012, 4:12 PM

Post #1 of 6 (363 views)
Permalink
Catalyst::Controller: find_meta not found

Hello,

Catalyst::Runtime 5.90007
Moose 2.0402
MooseX::MethodAttributes 0.27
Class::Load 0.17
Class::Load::XS 0.03
Module::Runtime 0.012
Module::Implementation 0.06
namespace::clean 0.22

With a very simple catalyst app this happens:

Array found where operator expected at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Controller.pm line 215, at end of line
(Missing operator before ?)
Undefined subroutine &Catalyst::Controller::find_meta called at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Controller.pm line 199.
Compilation failed in require at /opt/perl/5.10/lib/site_perl/5.10.1/Module/Runtime.pm line 317.
at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Script/Server.pm line 239


If I comment out the 'use namespace::clean' at the top of Catalyst::Controller
everything is fine (or seems fine).

If I downgrade Class::Load, Module::Runtime, Module::Implementation, and
MooseX::MethodAttributes everything is fine with the app w/o changes to
Catalyst code.

I haven't yet figured out what's going on. I do know that after the most
recent release of Class::Load/Module::Runtime there was a change to
MooseX::MethodAttributes that fixed some problem discovered due to the release
of Class::Load etc... But I'm still seeing problems.

I've attached the trivial app to this e-mail. Just run bin/start_app.

Thanks.

--
seth /\ sethdaniel.org
Attachments: app.tar (10.0 KB)


nigel at dotdot

Feb 15, 2012, 1:29 AM

Post #2 of 6 (352 views)
Permalink
Re: Catalyst::Controller: find_meta not found [In reply to]

On 15 Feb 2012, at 00:12, Seth Daniel wrote:

> Array found where operator expected at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Controller.pm line 215, at end of line
> (Missing operator before ?)
> Undefined subroutine &Catalyst::Controller::find_meta called at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Controller.pm line 199.
> Compilation failed in require at /opt/perl/5.10/lib/site_perl/5.10.1/Module/Runtime.pm line 317.
> at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Script/Server.pm line 239

I'm seeing examples of this coming up from CPAN testers reports for
one of my modules. The vast majority of results are passes, but a
few get this failure or one of a couple of similarish ones (fails
so far are listed below). Fails are over a variety of perl versions
across BSD and Solaris platforms.

I'm aiming to spend a bit of time chasing this in the next couple
of days, although hints would be very welcome...

[.and I must at this point say a huge thanks to the CPAN testers guys]

Nigel.

Catalyst-Authentication-Credential-RemoteHTTP-0.04:
- x86_64-linux-ld / 5.14.2:
- FAIL http://www.cpantesters.org/cpan/report/0bb31504-5176-11e1-9519-d24f9aeef8c6

- x86_64-linux-thread-multi-ld / 5.14.2:
- FAIL http://www.cpantesters.org/cpan/report/0cc8b138-5176-11e1-9519-d24f9aeef8c6


Catalyst-Authentication-Credential-RemoteHTTP-0.05:
- OpenBSD.amd64-openbsd / 5.8.9:
- FAIL http://www.cpantesters.org/cpan/report/248b678c-56aa-11e1-9d6f-f6dbfa7543f5

- amd64-freebsd / 5.8.9:
- FAIL http://www.cpantesters.org/cpan/report/25e0218a-5647-11e1-9d6f-f6dbfa7543f5

- amd64-freebsd-thread-multi / 5.8.9:
- FAIL http://www.cpantesters.org/cpan/report/c1e01ec6-5662-11e1-9d6f-f6dbfa7543f5

- i86pc-solaris / 5.10.1:
- FAIL http://www.cpantesters.org/cpan/report/3b4f6918-56a6-11e1-9d6f-f6dbfa7543f5

- i86pc-solaris / 5.8.9:
- FAIL http://www.cpantesters.org/cpan/report/db3f32fc-562c-11e1-9d6f-f6dbfa7543f5

- i86pc-solaris-64int / 5.8.9:
- FAIL http://www.cpantesters.org/cpan/report/391b099c-5659-11e1-9d6f-f6dbfa7543f5

- i86pc-solaris-thread-multi / 5.8.9:
- FAIL http://www.cpantesters.org/cpan/report/29e700c4-564b-11e1-9d6f-f6dbfa7543f5

- OpenBSD.amd64-openbsd-thread-multi / 5.8.9:
- FAIL http://www.cpantesters.org/cpan/report/dd58795e-56bd-11e1-9d6f-f6dbfa7543f5

- i86pc-solaris-64int / 5.10.1:
- FAIL http://www.cpantesters.org/cpan/report/2e0c9c76-56d3-11e1-9d6f-f6dbfa7543f5

- i86pc-solaris-thread-multi / 5.10.1:
- FAIL http://www.cpantesters.org/cpan/report/ac74c214-56c4-11e1-9d6f-f6dbfa7543f5

- i86pc-solaris-thread-multi-64int / 5.10.1:
- FAIL http://www.cpantesters.org/cpan/report/1867ca94-56b5-11e1-9d6f-f6dbfa7543f5



--
[ Nigel Metheringham ------------------------------ nigel [at] dotdot ]
[ Ellipsis Intangible Technologies ]



_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


gavin.henry at gmail

Feb 15, 2012, 7:55 AM

Post #3 of 6 (353 views)
Permalink
Re: Catalyst::Controller: find_meta not found [In reply to]

> With a very simple catalyst app this happens:
>
> Array found where operator expected at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Controller.pm line 215, at end of line
>  (Missing operator before ?)
> Undefined subroutine &Catalyst::Controller::find_meta called at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Controller.pm line 199.
> Compilation failed in require at /opt/perl/5.10/lib/site_perl/5.10.1/Module/Runtime.pm line 317.
>  at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Script/Server.pm line 239
>
>
> If I comment out the 'use namespace::clean' at the top of Catalyst::Controller
> everything is fine (or seems fine).
>
> If I downgrade Class::Load, Module::Runtime, Module::Implementation, and
> MooseX::MethodAttributes everything is fine with the app w/o changes to
> Catalyst code.
>

I'm getting this as well on perlbrew 5.10.1 and it's just started
happening. I'm trying to trace back to how/when:

[ghenry [at] dax-xe SureVoIP-API]$ CATALYST_DEBUG=1 DBIC_TRACE=1
script/surevoip_api_server.pl
Array found where operator expected at
/home/ghenry/perl5/lib/perl5/Catalyst/Controller.pm line 215, at end
of line
(Missing operator before ?)
String found where operator expected at
/home/ghenry/surevoip/surevoip-api-git/SureVoIP-API/script/../lib/SureVoIP/API/Controller/SMS.pm
line 19, near "has 'sms_form'"
(Do you need to predeclare has?)
syntax error at
/home/ghenry/surevoip/surevoip-api-git/SureVoIP-API/script/../lib/SureVoIP/API/Controller/SMS.pm
line 19, near "has 'sms_form'"
BEGIN not safe after errors--compilation aborted at
/home/ghenry/surevoip/surevoip-api-git/SureVoIP-API/script/../lib/SureVoIP/API/Controller/SMS.pm
line 44.
Compilation failed in require at
/home/ghenry/perl5/lib/perl5/Catalyst/Utils.pm line 287.
Compilation failed in require at
/home/ghenry/perl5/lib/perl5/Module/Runtime.pm line 317.
at /home/ghenry/perl5/lib/perl5/Catalyst/Script/Server.pm line 239


I'm on the latest Cat and MooseX::MethodAttributes, but will check for
downgrades like you did.


If I do:

perlbrew switch perl-5.14.2

I get:

[ghenry [at] dax-xe SureVoIP-API]$ CATALYST_DEBUG=1 DBIC_TRACE=1
script/surevoip_api_server.pl
Segmentation fault

If I do:

[ghenry [at] dax-xe SureVoIP-API]$ perl -Ilib -c lib/SureVoIP/API/Controller/SMS.pm
lib/SureVoIP/API/Controller/SMS.pm syntax OK

I can at least run perltidy and do a syntax check.


--
http://www.suretecsystems.com/services/openldap/
http://www.surevoip.co.uk



--
http://www.suretecsystems.com/services/openldap/
http://www.surevoip.co.uk

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


bobtfish at bobtfish

Feb 15, 2012, 1:48 PM

Post #4 of 6 (341 views)
Permalink
Re: Catalyst::Controller: find_meta not found [In reply to]

On 15 Feb 2012, at 15:55, Gavin Henry wrote:

>> With a very simple catalyst app this happens:
>>
>> Array found where operator expected at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Controller.pm line 215, at end of line
>> (Missing operator before ?)
>> Undefined subroutine &Catalyst::Controller::find_meta called at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Controller.pm line 199.
>> Compilation failed in require at /opt/perl/5.10/lib/site_perl/5.10.1/Module/Runtime.pm line 317.

Does it work if you set NAMESPACE_CLEAN_USE_PP=1 in your environment? (As that fixes it for me where I can replicate this).

The culprit here appears to be a combination of namespace::clean, B::Hooks::EndOfScope and MooseX::MethodAttributes - but I'm not sure where the problem lies yet, so additional data points would be helpful :)

Cheers
t0m



_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


catalyst at sethdaniel

Feb 15, 2012, 2:06 PM

Post #5 of 6 (336 views)
Permalink
Re: Catalyst::Controller: find_meta not found [In reply to]

On Wed, Feb 15, 2012 at 09:48:37PM +0000, Tomas Doran wrote:
>
> On 15 Feb 2012, at 15:55, Gavin Henry wrote:
>
> >> With a very simple catalyst app this happens:
> >>
> >> Array found where operator expected at
> >> /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Controller.pm line
> >> 215, at end of line (Missing operator before ?) Undefined
> >> subroutine &Catalyst::Controller::find_meta called at
> >> /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Controller.pm line
> >> 199. Compilation failed in require at
> >> /opt/perl/5.10/lib/site_perl/5.10.1/Module/Runtime.pm line 317.
>
> Does it work if you set NAMESPACE_CLEAN_USE_PP=1 in your environment?
> (As that fixes it for me where I can replicate this).
>
> The culprit here appears to be a combination of namespace::clean,
> B::Hooks::EndOfScope and MooseX::MethodAttributes - but I'm not sure
> where the problem lies yet, so additional data points would be helpful
> :)
>
> Cheers t0m

It works for me with NAMESPACE_CLEAN_USE_PP=1. If I change it to 0 I
get failures again. I'm the one that started this thread so all the
details of my setup are in the initial e-mail. A couple of addendums: I
am using Centos 5.4 with a custom compiled perl 5.10.1. Please let me
know what other details you may need.

--
seth /\ sethdaniel.org

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


catalyst at sethdaniel

Feb 16, 2012, 11:08 AM

Post #6 of 6 (331 views)
Permalink
Re: Catalyst::Controller: find_meta not found [In reply to]

On Wed, Feb 15, 2012 at 09:48:37PM +0000, Tomas Doran wrote:
>
> On 15 Feb 2012, at 15:55, Gavin Henry wrote:
>
> >> With a very simple catalyst app this happens:
> >>
> >> Array found where operator expected at
> >> /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Controller.pm line
> >> 215, at end of line (Missing operator before ?) Undefined
> >> subroutine &Catalyst::Controller::find_meta called at
> >> /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Controller.pm line
> >> 199. Compilation failed in require at
> >> /opt/perl/5.10/lib/site_perl/5.10.1/Module/Runtime.pm line 317.
>
> Does it work if you set NAMESPACE_CLEAN_USE_PP=1 in your environment?
> (As that fixes it for me where I can replicate this).
>
> The culprit here appears to be a combination of namespace::clean,
> B::Hooks::EndOfScope and MooseX::MethodAttributes - but I'm not sure
> where the problem lies yet, so additional data points would be helpful
> :)

Looks like the culprit was B::Hooks::EndOfScope. The latest (0.10) of
that package plus the most recent Catalyst seems to have resolved the
problems. Thank you to everyone involved.

--
seth /\ sethdaniel.org

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.