Skip Menu |

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

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

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

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



Subject: Completion plugin stops default ReadLine filename completion
Devel::REPL uses a Term::ReadLine interface to handle its reading and writing for IO. By default, both Term::ReadLine::Perl and Term::ReadLine::Gnu support filename TAB completion by default. If I have a directory test with files a, ba, bb, bc, and c in it, I can run re.pl there as follows: bash$ PERL_RL=Perl re.pl $ <TAB><TAB> a ba bb bc c $ b<TAB><TAB> ba bb bc $ bc bash$ PERL_RL=Gnu re.pl $ <TAB><TAB> a ba bb bc c $ b<TAB><TAB> ba bb bc $ bc So you can see TAB completion for filenames works. Now, I load the Completion plugin: $ $_REPL->load_plugin('Completion') 1 $ <TAB><TAB> and TABs do nothing now. The default hooks for Completion also disable the command/filename completion of ReadLine. This is broken since the various readlines are designed to use this as the fallback expansion and not a throw away one once you implement another. --Chris
Fixed in Devel::REPL git. Completion.pm now falls back to the builtin filename expansion of Term::ReadLine::Gnu and Term::ReadLine::Perl when other expansions are not found.