Skip Menu |

This queue is for tickets about the Term-ReadLine-Perl CPAN distribution.

Report information
The Basics
Id: 18564
Status: open
Priority: 0/
Queue: Term-ReadLine-Perl

People
Owner: Nobody in particular
Requestors: DONGXU [...] cpan.org
Cc:
AdminCc:

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



Subject: explicit load failed
Hi, Normally this __PACKAGE__ will be loaded by Term::ReadLine. While it will fail once loaded explicitly by `use Term::ReadLine::Perl' or `require Term::ReadLine::Perl'. I assume `require Term::ReadLine;' or `use base' progma can make Term::ReadLine::Stub known to the __PACKAGE__. --------------------- dongxu@cnlabsdongxu ~/tmp $ /usr/bin/perl -e ' require Term::ReadLine::Perl; ' Can't locate object method "Features" via package "Term::ReadLine::Stub" at /usr/lib/perl5/site_perl/5.8.8/Term/ReadLine/Perl.pm line 97. Compilation failed in require at -e line 1. --------------------- Cheers, - Dongxu
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #18564] explicit load failed
Date: Thu, 6 Apr 2006 02:59:52 -0700
To: via RT <bug-Term-ReadLine-Perl [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Thu, Apr 06, 2006 at 05:28:38AM -0400, via RT wrote: Show quoted text
> Normally this __PACKAGE__ will be loaded by Term::ReadLine. While it > will fail once loaded explicitly by `use Term::ReadLine::Perl' or > `require Term::ReadLine::Perl'.
I see no problem in this. Do you? Yours, Ilya
Subject: Re: [rt.cpan.org #18564] explicit load failed
Date: Thu, 6 Apr 2006 18:03:42 +0800
To: bug-Term-ReadLine-Perl [...] rt.cpan.org
From: "Dongxu Ma" <dongxu.ma [...] gmail.com>
Err, sometime I require a force load this module instead of Term::ReadLine ;-P Just a wish. On 4/6/06, Ilya Zakharevich via RT <bug-Term-ReadLine-Perl@rt.cpan.org> wrote: Show quoted text
> > > <URL: http://rt.cpan.org/Ticket/Display.html?id=18564 > > > On Thu, Apr 06, 2006 at 05:28:38AM -0400, via RT wrote:
> > Normally this __PACKAGE__ will be loaded by Term::ReadLine. While it > > will fail once loaded explicitly by `use Term::ReadLine::Perl' or > > `require Term::ReadLine::Perl'.
> > I see no problem in this. Do you? > > Yours, > Ilya > >
-- Cheers, Dongxu __END__ dongxu.wordpress.com search.cpan.org/~dongxu
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #18564] explicit load failed
Date: Thu, 6 Apr 2006 14:26:38 -0700
To: Dongxu Ma via RT <bug-Term-ReadLine-Perl [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Thu, Apr 06, 2006 at 06:04:12AM -0400, Dongxu Ma via RT wrote: Show quoted text
> > Queue: Term-ReadLine-Perl > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=18564 > > > Err, sometime I require a force load this module instead of Term::ReadLine > ;-P
I would like to hear more about a situation when this may be required. (Circular dependencies are evils.) Yours, Ilya
Subject: Re: [rt.cpan.org #18564] explicit load failed
Date: Fri, 7 Apr 2006 10:20:07 +0800
To: bug-Term-ReadLine-Perl [...] rt.cpan.org
From: "Dongxu Ma" <dongxu.ma [...] gmail.com>
Since I have a module which pretty much depends on this. BTW: in previous version the completion callback can return a list, then your module will list as a selection list just like bash. I found the feature gone in this version. On 4/7/06, Ilya Zakharevich via RT <bug-Term-ReadLine-Perl@rt.cpan.org> wrote: Show quoted text
> > > <URL: http://rt.cpan.org/Ticket/Display.html?id=18564 > > > On Thu, Apr 06, 2006 at 06:04:12AM -0400, Dongxu Ma via RT wrote:
> > > > Queue: Term-ReadLine-Perl > > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=18564 > > > > > Err, sometime I require a force load this module instead of
> Term::ReadLine
> > ;-P
> > I would like to hear more about a situation when this may be > required. (Circular dependencies are evils.) > > Yours, > Ilya > >
-- Cheers, Dongxu __END__ dongxu.wordpress.com search.cpan.org/~dongxu
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #18564] explicit load failed
Date: Fri, 7 Apr 2006 01:44:29 -0700
To: Dongxu Ma via RT <bug-Term-ReadLine-Perl [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Thu, Apr 06, 2006 at 10:20:35PM -0400, Dongxu Ma via RT wrote: [Edited. Do you know how to properly quote in a technical email? Put your stuff after the relevant section.] Show quoted text
> > > Err, sometime I require a force load this module instead of
> > Term::ReadLine
> > > ;-P
Show quoted text
> > I would like to hear more about a situation when this may be > > required. (Circular dependencies are evils.)
Show quoted text
> Since I have a module which pretty much depends on this.
??? Do you consider this a sufficient information? How can it depend on it, if you claim it does not work? Show quoted text
> BTW: in previous version the completion callback can return a list, then > your module will list as a selection list just like bash. I found the > feature gone in this version.
This cannot happen; no relevant code was changed. However, I can confirm it. :-( (in `perl -de0', press b SPACE TAB) Thanks, Ilya
Subject: Re: [rt.cpan.org #18564] explicit load failed
Date: Fri, 7 Apr 2006 17:00:35 +0800
To: bug-Term-ReadLine-Perl [...] rt.cpan.org
From: "Dongxu Ma" <dongxu.ma [...] gmail.com>
On 4/7/06, Ilya Zakharevich via RT <bug-Term-ReadLine-Perl@rt.cpan.org> wrote: Show quoted text
> > > <URL: http://rt.cpan.org/Ticket/Display.html?id=18564 > > > On Thu, Apr 06, 2006 at 10:20:35PM -0400, Dongxu Ma via RT wrote: > > [Edited. Do you know how to properly quote in a technical email? > Put your stuff after the relevant section.] >
> > > > Err, sometime I require a force load this module instead of
> > > Term::ReadLine
> > > > ;-P
>
> > > I would like to hear more about a situation when this may be > > > required. (Circular dependencies are evils.)
>
> > Since I have a module which pretty much depends on this.
> > ??? Do you consider this a sufficient information? How can it depend > on it, if you claim it does not work?
Hmmm, yeah, not so sufficient. Forget it. Show quoted text
> BTW: in previous version the completion callback can return a list, then
> > your module will list as a selection list just like bash. I found the > > feature gone in this version.
> > This cannot happen; no relevant code was changed. However, I can > confirm it. :-( (in `perl -de0', press b SPACE TAB)
Try later. Geat thanks. Thanks, Show quoted text
> Ilya > >
-- Cheers, Dongxu __END__ dongxu.wordpress.com search.cpan.org/~dongxu
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #18564] explicit load failed
Date: Fri, 7 Apr 2006 02:20:27 -0700
To: Dongxu Ma via RT <bug-Term-ReadLine-Perl [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Fri, Apr 07, 2006 at 05:00:57AM -0400, Dongxu Ma via RT wrote: Show quoted text
> > BTW: in previous version the completion callback can return a list, then
> > > your module will list as a selection list just like bash. I found the > > > feature gone in this version.
> > > > This cannot happen; no relevant code was changed. However, I can > > confirm it. :-( (in `perl -de0', press b SPACE TAB)
Fixed in my copy. The code to properly support numeric argument won't set $lastcommand, so repeated keypresses did not know they are repeated... Thanks, Ilya
Subject: Re: [rt.cpan.org #18564] explicit load failed
Date: Fri, 7 Apr 2006 17:49:28 +0800
To: bug-Term-ReadLine-Perl [...] rt.cpan.org
From: "Dongxu Ma" <dongxu.ma [...] gmail.com>
On 4/7/06, Ilya Zakharevich via RT <bug-Term-ReadLine-Perl@rt.cpan.org> wrote: Show quoted text
> > > <URL: http://rt.cpan.org/Ticket/Display.html?id=18564 > > > On Fri, Apr 07, 2006 at 05:00:57AM -0400, Dongxu Ma via RT wrote:
> > > BTW: in previous version the completion callback can return a list,
> then
> > > > your module will list as a selection list just like bash. I found
> the
> > > > feature gone in this version.
> > > > > > This cannot happen; no relevant code was changed. However, I can > > > confirm it. :-( (in `perl -de0', press b SPACE TAB)
> > Fixed in my copy. The code to properly support numeric argument won't > set $lastcommand, so repeated keypresses did not know they are > repeated...
I am not sure if I express myself very clearly. Please refer to the code below: ###################################### #!/usr/bin/perl # use warnings; use strict; use Term::ReadLine; use Term::ReadLine::Perl; use subs qw(_complete); my $t = Term::ReadLine::Perl::->new(); my $attr = $t->Attribs; $attr->{completion_function} = \&_complete; print $t->ReadLine(), "\n"; print $t->readline(">>"), "\n"; sub _complete() { qw(1 2 3 4); } ################################# In previous version, once tabbed, there will be a tab-output list coming out. Thanks, Show quoted text
> Ilya > >
-- Cheers, Dongxu __END__ dongxu.wordpress.com search.cpan.org/~dongxu
Well, I have a use case: older versions of EUMM (e.g. 6.48) cannot detect an installed Term::ReadLine::Perl, probably because of this problem. With a line PREREQ_PM => { "Term::ReadLine::Perl" => 0 } in Makefile.PL I get $ perl Makefile.PL Warning: prerequisite Term::ReadLine::Perl 0 not found. (Term::ReadLine::Perl is installed here). With newer EUMM this is no problem. But it seems that the prereq checker of CPAN::Reporter is also not able to detect an installed Term::ReadLine::Perl. Regards, Slaven