Skip Menu |

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

Report information
The Basics
Id: 70436
Status: resolved
Priority: 0/
Queue: App-JobLog

People
Owner: DFH [...] cpan.org
Requestors: lukasz.siemiradzki [...] gmail.com
Cc:
AdminCc:

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



Subject: Bug in 1.019
Date: Tue, 23 Aug 2011 14:53:36 +0200
To: bug-App-JobLog [...] rt.cpan.org
From: Łukasz Siemiradzki <lukasz.siemiradzki [...] gmail.com>
Hello, thanks for the App::JobLog it's a nice tool. I think I found a bug: ~$ perl -v This is perl 5, version 14, subversion 1 (v5.14.1) built for i686-linux ~$ job Scalar found where operator expected at /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/truncate.pm line 30, near "'--'$p" (Missing operator before $p?) Bareword found where operator expected at /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/truncate.pm line 33, near ") ::" (Missing operator before ::?) String found where operator expected at /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/truncate.pm line 33, near ":: 'IO::File'" (Missing operator before 'IO::File'?) syntax error at /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/truncate.pm line 30, near "'--'$p" syntax error at /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/truncate.pm line 33, near ") :: " Global symbol "$io" requires explicit package name at /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/truncate.pm line 34. Global symbol "$io" requires explicit package name at /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/truncate.pm line 40. Missing right curly or square bracket at /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/truncate.pm line 152, at end of line syntax error at /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/truncate.pm line 152, at EOF Compilation failed in require at /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Class/Load.pm line 200. at /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/bin/job line 10 it seems, following patch applied to truncate.pm may fix the problem: 30c30 < my $base = 'log-' . $e->ymd . '--' . $p->ymd; --- Show quoted text
> my $base = 'log-' . $e->ymd . '--'$p->ymd;
33c33 < ? _pick_compression( $opt->compression ) : 'IO::File'; --- Show quoted text
> ? _pick_compression( $opt->compression ) :: 'IO::File';
109,110c109,110 < } < } --- Show quoted text
> } >
Anyway, even after aplying it for some of the commands Term::ReadKey is needed $ job when you will be finished at 7:22:55 PM $ job today Can't locate Term/ReadKey.pm in @INC (@INC contains: /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/i686-linux /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1 /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/i686-linux /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1 .) at /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/autouse.pm line 53. Could you please let me know whether patch is correct and whether there is a possibility to force App::JobLog to ensure that Term::ReadKey is installed as a dependency. Best regards / Pozdrawiam Łukasz Siemiradzki -- "Omnes homines natura scire desiderant"                                            Aristotelis
Subject: Re: [rt.cpan.org #70436] Bug in 1.019
Date: Tue, 23 Aug 2011 13:47:55 -0400
To: bug-App-JobLog [...] rt.cpan.org
From: David Houghton <dfhoughton [...] gmail.com>
Thanks, Łukasz. I'll look into this. I didn't mean to put the truncate command on CPAN. It was just something I was idly constructing. I guess I must have included it by mistake. Well, I'll fix it properly. Thanks for the patch. I'll also fix the dependency issue. David 2011/8/23 Łukasz Siemiradzki via RT <bug-App-JobLog@rt.cpan.org> Show quoted text
> Tue Aug 23 08:53:44 2011: Request 70436 was acted upon. > Transaction: Ticket created by lukasz.siemiradzki@gmail.com > Queue: App-JobLog > Subject: Bug in 1.019 > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: lukasz.siemiradzki@gmail.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=70436 > > > > Hello, > thanks for the App::JobLog it's a nice tool. > I think I found a bug: > ~$ perl -v > > This is perl 5, version 14, subversion 1 (v5.14.1) built for i686-linux > > ~$ job > Scalar found where operator expected at > > /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/ > truncate.pm > line 30, near "'--'$p" > (Missing operator before $p?) > Bareword found where operator expected at > > /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/ > truncate.pm > line 33, near ") ::" > (Missing operator before ::?) > String found where operator expected at > > /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/ > truncate.pm > line 33, near ":: 'IO::File'" > (Missing operator before 'IO::File'?) > syntax error at > > /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/ > truncate.pm > line 30, near "'--'$p" > syntax error at > > /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/ > truncate.pm > line 33, near ") :: " > Global symbol "$io" requires explicit package name at > > /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/ > truncate.pm > line 34. > Global symbol "$io" requires explicit package name at > > /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/ > truncate.pm > line 40. > Missing right curly or square bracket at > > /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/ > truncate.pm > line 152, at end of line > syntax error at > > /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/App/JobLog/Command/ > truncate.pm > line 152, at EOF > Compilation failed in require at > > /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Class/Load.pm > line 200. > at /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/bin/job line 10 > > it seems, following patch applied to truncate.pm may fix the problem: > 30c30 > < my $base = 'log-' . $e->ymd . '--' . $p->ymd; > ---
> > my $base = 'log-' . $e->ymd . '--'$p->ymd;
> 33c33 > < ? _pick_compression( $opt->compression ) : 'IO::File'; > ---
> > ? _pick_compression( $opt->compression ) :: 'IO::File';
> 109,110c109,110 > < } > < } > ---
> > } > >
> > Anyway, even after aplying it for some of the commands Term::ReadKey is > needed > $ job when > > you will be finished at 7:22:55 PM > > $ job today > Can't locate Term/ReadKey.pm in @INC (@INC contains: > > /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/i686-linux > /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1 > /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/i686-linux > /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1 .) at > /home/lsiemira/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/autouse.pm > line 53. > > Could you please let me know whether patch is correct and whether > there is a possibility to force App::JobLog to ensure that > Term::ReadKey is installed as a dependency. > > Best regards / Pozdrawiam > Łukasz Siemiradzki > -- > > "Omnes homines natura scire desiderant" > Aristotelis > >
Fixed the truncate command and added the missing dependency to dist.ini for project.