vanstyn / RapidApp

Turnkey ajaxy webapps
http://rapi.io
Other
48 stars 15 forks source link

Class::MOP::load_class deprecation warnings with latest Moose #101

Closed vanstyn closed 9 years ago

vanstyn commented 9 years ago

After installing the latest Moose from CPAN, deprecation warnings are now being thrown complaining about Class::MOP::load_class

Class::MOP::load_class is deprecated at /usr/lib/perl5/site_perl/5.12.3/i386-linux-thread-multi/Class/MOP.pm line 69.
        Class::MOP::load_class("MooseX::Role::Parameterized::Meta::Role::Parameterized") called at /usr/lib/perl5/site_perl/5.12.3/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm line 78
        MooseX::Role::Parameterized::Meta::Role::Parameterizable::generate_role(MooseX::Role::Parameterized::Meta::Role::Parameterizable=HASH(0x8d02d00), "consumer", Moose::Meta::Role=HASH(0x8c76590), "parameters", HASH(0x8cadee0)) called at /usr/lib/perl5/site_perl/5.12.3/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm line 122
        MooseX::Role::Parameterized::Meta::Role::Parameterizable::apply(MooseX::Role::Parameterized::Meta::Role::Parameterizable=HASH(0x8d02d00), Moose::Meta::Role=HASH(0x8c76590)) called at /usr/lib/perl5/site_perl/5.12.3/i386-linux-thread-multi/Moose/Util.pm line 172
        Moose::Util::_apply_all_roles(Moose::Meta::Role=HASH(0x8c76590), undef, "MooseX::Getopt::GLD") called at /usr/lib/perl5/site_perl/5.12.3/i386-linux-thread-multi/Moose/Util.pm line 114
        Moose::Util::apply_all_roles(Moose::Meta::Role=HASH(0x8c76590), "MooseX::Getopt::GLD") called at /usr/lib/perl5/site_perl/5.12.3/i386-linux-thread-multi/Moose/Role.pm line 25
        Moose::Role::with(Moose::Meta::Role=HASH(0x8c76590), "MooseX::Getopt::GLD") called at /usr/lib/perl5/site_perl/5.12.3/i386-linux-thread-multi/Moose/Exporter.pm line 419
        Moose::Role::with("MooseX::Getopt::GLD") called at /usr/lib/perl5/site_perl/5.12.3/MooseX/Getopt.pm line 14
        require MooseX/Getopt.pm called at /usr/lib/perl5/site_perl/5.12.3/Catalyst/ScriptRole.pm line 4
        Catalyst::ScriptRole::BEGIN() called at /usr/lib/perl5/site_perl/5.12.3/MooseX/Getopt.pm line 0
        eval {...} called at /usr/lib/perl5/site_perl/5.12.3/MooseX/Getopt.pm line 0
        require Catalyst/ScriptRole.pm called at /usr/lib/perl5/site_perl/5.12.3/Module/Runtime.pm line 317
        Module::Runtime::require_module("Catalyst::ScriptRole") called at /usr/lib/perl5/site_perl/5.12.3/Module/Runtime.pm line 348
        Module::Runtime::use_module("Catalyst::ScriptRole") called at /usr/lib/perl5/site_perl/5.12.3/i386-linux-thread-multi/Moose/Util.pm line 147
        Moose::Util::_apply_all_roles(Moose::Meta::Class=HASH(0x8a91b40), undef, "Catalyst::ScriptRole") called at /usr/lib/perl5/site_perl/5.12.3/i386-linux-thread-multi/Moose/Util.pm line 114
        Moose::Util::apply_all_roles(Moose::Meta::Class=HASH(0x8a91b40), "Catalyst::ScriptRole") called at /usr/lib/perl5/site_perl/5.12.3/i386-linux-thread-multi/Moose.pm line 59
        Moose::with(Moose::Meta::Class=HASH(0x8a91b40), "Catalyst::ScriptRole") called at /usr/lib/perl5/site_perl/5.12.3/i386-linux-thread-multi/Moose/Exporter.pm line 419
        Moose::with("Catalyst::ScriptRole") called at /usr/lib/perl5/site_perl/5.12.3/Catalyst/Script/Server.pm line 7
        require Catalyst/Script/Server.pm called at /usr/lib/perl5/site_perl/5.12.3/Module/Runtime.pm line 317
        Module::Runtime::require_module("Catalyst::Script::Server") called at /usr/lib/perl5/site_perl/5.12.3/Class/Load.pm line 177
        Class::Load::try {...} () called at /usr/lib/perl5/site_perl/5.12.3/Try/Tiny.pm line 76
        eval {...} called at /usr/lib/perl5/site_perl/5.12.3/Try/Tiny.pm line 72
        Try::Tiny::try(CODE(0x8067288), Try::Tiny::Catch=REF(0x80672a8)) called at /usr/lib/perl5/site_perl/5.12.3/Class/Load.pm line 183
        Class::Load::try_load_class("Catalyst::Script::Server", undef) called at /usr/lib/perl5/site_perl/5.12.3/Class/Load.pm line 59
        Class::Load::load_first_existing_class("RA::ChinookDemo::Script::Server", "Catalyst::Script::Server") called at /usr/lib/perl5/site_perl/5.12.3/Catalyst/ScriptRunner.pm line 13
        Catalyst::ScriptRunner::find_script_class("Catalyst::ScriptRunner", "RA::ChinookDemo", "Server") called at /usr/lib/perl5/site_perl/5.12.3/Catalyst/ScriptRunner.pm line 42
        Catalyst::ScriptRunner::run("Catalyst::ScriptRunner", "RA::ChinookDemo", "Server") called at script/ra_chinookdemo_server.pl line 8
vanstyn commented 9 years ago

Not actually a RapidApp issue.... was an issue on my system, fixed with:

moose-outdated | cpanm