Skip Menu |

This queue is for tickets about the Devel-REPL CPAN distribution.

Report information
The Basics
Id: 43109
Status: resolved
Priority: 0/
Queue: Devel-REPL

People
Owner: OLIVER [...] cpan.org
Requestors: bitcard [...] iijo.org
Cc:
AdminCc:

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



Subject: could use a dependency check for Lexical::Persistence
Hey. Thanks for Devel::REPL. Looks great. I'm using perl 5.8.8 and Devel::REPL 1.003002. I installed Devel::REPL with cpanp and ran re.pl which immediately gave me the error listed below. I'm pretty sure Lexical::Persistence needs to be a required module, because after I installed it the error went away. Lexical::Persistence is listed as an optional module in Makefile.PL but its explicitly included in Devel::REPL::Plugin::LexEnv and Devel::REPL::Plugin::LexEnv is part of Devel::REPL::Profile::Default. $ re.pl Failed to load role: Devel::REPL::Plugin::LexEnv Could not load class (Devel::REPL::Plugin::LexEnv) because : Unknown error Compilation failed in require at /usr/local/lib/perl/5.8.8/Class/MOP.pm line 153. at /usr/local/lib/perl/5.8.8/Class/MOP.pm line 135 Class::MOP::load_first_existing_class('Devel::REPL::Plugin::LexEnv') called at /usr/local/lib/perl/5.8.8/Class/MOP.pm line 159 Class::MOP::load_class('Devel::REPL::Plugin::LexEnv') called at /usr/local/share/perl/5.8.8/MooseX/Object/Pluggable.pm line 239 eval {...} called at /usr/local/share/perl/5.8.8/MooseX/Object/Pluggable.pm line 239 Devel::REPL::_load_and_apply_role('Class::MOP::Class::__ANON__::SERIAL::40=HASH(0x8a5efbc)', 'Devel::REPL::Plugin::LexEnv') called at /usr/local/share/perl/5.8.8/MooseX/Object/Pluggable.pm line 161 Devel::REPL::load_plugins('Class::MOP::Class::__ANON__::SERIAL::40=HASH(0x8a5efbc)', 'LexEnv') called at /usr/local/share/perl/5.8.8/MooseX/Object/Pluggable.pm line 172 Devel::REPL::load_plugin('Class::MOP::Class::__ANON__::SERIAL::40=HASH(0x8a5efbc)', 'LexEnv') called at /usr/local/share/perl/5.8.8/Devel/REPL/Profile/Default.pm line 14 Devel::REPL::Profile::Default::apply_profile('Devel::REPL::Profile::Default=HASH(0x8b3c070)', 'Class::MOP::Class::__ANON__::SERIAL::40=HASH(0x8a5efbc)') called at /usr/local/share/perl/5.8.8/Devel/REPL/Script.pm line 40 Devel::REPL::Script::load_profile('Devel::REPL::Script=HASH(0x8a5ebf0)', 'Default') called at /usr/local/share/perl/5.8.8/Devel/REPL/Script.pm line 30 Devel::REPL::Script::BUILD('Devel::REPL::Script=HASH(0x8a5ebf0)', 'HASH(0x8a5ebd8)') called at /usr/local/lib/perl/5.8.8/Class/MOP/Method.pm line 126 Class::MOP::Method::execute('Moose::Meta::Method=HASH(0x8a54eb8)', 'Devel::REPL::Script=HASH(0x8a5ebf0)', 'HASH(0x8a5ebd8)') called at /usr/local/share/perl/5.8.8/Moose/Object.pm line 46 Moose::Object::BUILDALL('Devel::REPL::Script=HASH(0x8a5ebf0)', 'HASH(0x8a5ebd8)') called at /usr/local/share/perl/5.8.8/Moose/Object.pm line 18 Moose::Object::new('Devel::REPL::Script', 'ARGV', 'ARRAY(0x87e2bb0)', 'extra_argv', 'ARRAY(0x8979b80)') called at /usr/local/share/perl/5.8.8/MooseX/Getopt.pm line 55 Devel::REPL::Script::new_with_options('Devel::REPL::Script') called at /usr/local/share/perl/5.8.8/Devel/REPL/Script.pm line 88 Devel::REPL::Script::import('Devel::REPL::Script', 'run') called at /usr/local/bin/re.pl line 3 main::BEGIN() called at /usr/local/share/perl/5.8.8/Devel/REPL/Script.pm line 3 eval {...} called at /usr/local/share/perl/5.8.8/Devel/REPL/Script.pm line 3 at /usr/local/share/perl/5.8.8/MooseX/Object/Pluggable.pm line 240 Devel::REPL::_load_and_apply_role('Class::MOP::Class::__ANON__::SERIAL::40=HASH(0x8a5efbc)', 'Devel::REPL::Plugin::LexEnv') called at /usr/local/share/perl/5.8.8/MooseX/Object/Pluggable.pm line 161 Devel::REPL::load_plugins('Class::MOP::Class::__ANON__::SERIAL::40=HASH(0x8a5efbc)', 'LexEnv') called at /usr/local/share/perl/5.8.8/MooseX/Object/Pluggable.pm line 172 Devel::REPL::load_plugin('Class::MOP::Class::__ANON__::SERIAL::40=HASH(0x8a5efbc)', 'LexEnv') called at /usr/local/share/perl/5.8.8/Devel/REPL/Profile/Default.pm line 14 Devel::REPL::Profile::Default::apply_profile('Devel::REPL::Profile::Default=HASH(0x8b3c070)', 'Class::MOP::Class::__ANON__::SERIAL::40=HASH(0x8a5efbc)') called at /usr/local/share/perl/5.8.8/Devel/REPL/Script.pm line 40 Devel::REPL::Script::load_profile('Devel::REPL::Script=HASH(0x8a5ebf0)', 'Default') called at /usr/local/share/perl/5.8.8/Devel/REPL/Script.pm line 30 Devel::REPL::Script::BUILD('Devel::REPL::Script=HASH(0x8a5ebf0)', 'HASH(0x8a5ebd8)') called at /usr/local/lib/perl/5.8.8/Class/MOP/Method.pm line 126 Class::MOP::Method::execute('Moose::Meta::Method=HASH(0x8a54eb8)', 'Devel::REPL::Script=HASH(0x8a5ebf0)', 'HASH(0x8a5ebd8)') called at /usr/local/share/perl/5.8.8/Moose/Object.pm line 46 Moose::Object::BUILDALL('Devel::REPL::Script=HASH(0x8a5ebf0)', 'HASH(0x8a5ebd8)') called at /usr/local/share/perl/5.8.8/Moose/Object.pm line 18 Moose::Object::new('Devel::REPL::Script', 'ARGV', 'ARRAY(0x87e2bb0)', 'extra_argv', 'ARRAY(0x8979b80)') called at /usr/local/share/perl/5.8.8/MooseX/Getopt.pm line 55 Devel::REPL::Script::new_with_options('Devel::REPL::Script') called at /usr/local/share/perl/5.8.8/Devel/REPL/Script.pm line 88 Devel::REPL::Script::import('Devel::REPL::Script', 'run') called at /usr/local/bin/re.pl line 3 main::BEGIN() called at /usr/local/share/perl/5.8.8/Devel/REPL/Script.pm line 3 eval {...} called at /usr/local/share/perl/5.8.8/Devel/REPL/Script.pm line 3 BEGIN failed--compilation aborted at /usr/local/bin/re.pl line 3.
Hi, On Sat Feb 07 15:59:58 2009, kablamo wrote: Show quoted text
> I'm pretty sure Lexical::Persistence needs to be a required > module, because after I installed it the error went away. > Lexical::Persistence is listed as an optional module in Makefile.PL > but > its explicitly included in Devel::REPL::Plugin::LexEnv and > Devel::REPL::Plugin::LexEnv is part of Devel::REPL::Profile::Default.
Well spotted, and I apologise for this oversight. I've ammended the Makefile.PL to suggest installation of the dependencies for Plugins used in the Default Profile. Version 1.3.4 with this fix has just been sent to the CPAN. Many thanks for the bug report! regards, oliver.