Skip Menu |

This queue is for tickets about the App-Nopaste CPAN distribution.

Report information
The Basics
Id: 100731
Status: resolved
Priority: 0/
Queue: App-Nopaste

People
Owner: ether [...] cpan.org
Requestors: djerius [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.98
Fixed in: 1.000



Subject: error when running nopaste --list
Hi, On a fresh install of Perl 5.20.1, after installing App::nopaste via cpanm App::nopaste I'm getting the following error % nopaste --list Can't locate object method "plugins" via package "App::Nopaste" at [...]/lib/perl5/App/Nopaste/Command.pm line 94.
On 2014-12-05 16:31:48, DJERIUS wrote: Show quoted text
> Hi, > > On a fresh install of Perl 5.20.1, after installing App::nopaste via > > cpanm App::nopaste > > I'm getting the following error > > % nopaste --list > Can't locate object method "plugins" via package "App::Nopaste" at > [...]/lib/perl5/App/Nopaste/Command.pm line 94.
Please include the output from t/00-report-versions.t when you install the dist?
On Fri Dec 05 22:27:18 2014, ETHER wrote: Show quoted text
> Please include the output from t/00-report-versions.t when you install > the dist?
Oops. I've attached it to the ticket. Thanks, Diab
Subject: prereqs.log
1..1 # # Versions for all modules listed in MYMETA.json (including optional ones): # # === Configure Requires === # # Module Want Have # ------------------- ---- ---- # ExtUtils::MakeMaker any 6.98 # # === Build Requires === # # Module Want Have # ------------------- ---- ---- # ExtUtils::MakeMaker any 6.98 # # === Test Requires === # # Module Want Have # ------------------- ---- -------- # ExtUtils::MakeMaker any 6.98 # File::Spec any 3.48 # LWP::Protocol any 6.06 # Test::More any 1.001002 # # === Test Recommends === # # Module Want Have # ---------- -------- -------- # CPAN::Meta 2.120900 2.143240 # # === Runtime Requires === # # Module Want Have # ------------------------- ---- -------- # Class::Load any 0.22 # Exporter any 5.71 # File::Basename any 2.85 # File::Spec any 3.48 # File::Temp any 0.2304 # Getopt::Long::Descriptive any 0.098 # JSON::MaybeXS any 1.003002 # Module::Pluggable any 5.1 # Module::Runtime any 0.014 # POSIX any 1.38_03 # URI::Escape any 3.31 # WWW::Mechanize any 1.73 # base any 2.22 # namespace::clean any 0.25 # strict any 1.08 # warnings any 1.23 # # === Runtime Recommends === # # Module Want Have # ---------------------------------- ----- ------- # Browser::Open any missing # Clipboard any missing # WWW::Pastebin::PastebinCom::Create 1.003 missing # ok 1
This is in lib/App/Nopaste.pm... The plugins() method comes from Module::Pluggable but namespace::clean is purging it. Commenting out the 'use namespace::clean' line fixes it. A more correct fix would probably be: use namespace::clean -except => [qw( plugins )]; Which also works.
I have just sent a pull request on github
Thanks, fixed in version 1.000!