Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hitting tab after a non-identifier character clears the line #4369

Closed
p6rt opened this issue Jun 30, 2015 · 5 comments
Closed

Hitting tab after a non-identifier character clears the line #4369

p6rt opened this issue Jun 30, 2015 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 30, 2015

Migrated from rt.perl.org#125520 (status was 'resolved')

Searchable as RT125520$

@p6rt
Copy link
Author

p6rt commented Jun 30, 2015

From @smls

In the REPL (with Linenoise installed), Tab completion works when invoked after a partially typed identifier, e.g.​:

  "say spr" --[TAB]-> "say sprintf"

However, when invoked after a space or non-identifier character, it *replaces* the whole line with the suggestion rather than appending to the line​:

  "say " --[TAB]-> "ANON_ENUM"
  "say 1 +" --[TAB]-> "ANON_ENUM"

Expected behavior​:

  "say " --[TAB]-> "say ANON_ENUM"
  "say 1 +" --[TAB]-> "say 1 +<"

@p6rt
Copy link
Author

p6rt commented Aug 20, 2016

From @smls

This bug got worse.
Now it vomits an error message in addition to replacing the entire line with `Any`.

REPL before pressing TAB​:

  > say 1 +

REPL after pressing TAB​:

  > say 1 +Use of uninitialized value $v of type Any in string context.
  Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful. in method CALL-ME at /home/sam/.rakudobrew/moar-blead-nom/install/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) line 328
  Use of uninitialized value $v of type Any in string context.
  Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful. in method CALL-ME at /home/sam/.rakudobrew/moar-blead-nom/install/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) line 328
  > Any


This is Rakudo version 2016.08-1-g26ebe43 built on MoarVM version 2016.08
implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Sep 17, 2016

@hoelzro - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 17, 2016

From @hoelzro

This is fixed now.

On 2016-08-20 11​:58​:57, smls75@​gmail.com wrote​:

This bug got worse.
Now it vomits an error message in addition to replacing the entire
line with `Any`.

REPL before pressing TAB​:

say 1 +

REPL after pressing TAB​:

say 1 +Use of uninitialized value $v of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to
something meaningful. in method CALL-ME at
/home/sam/.rakudobrew/moar-blead-
nom/install/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03
(NativeCall) line 328
Use of
uninitialized value $v of type Any in string context.
Methods
.^name, .perl, .gist, or .say can be used to stringify it to something
meaningful. in method CALL-ME at /home/sam/.rakudobrew/moar-blead-
nom/install/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03
(NativeCall) line 328
Any

--------
This is Rakudo version 2016.08-1-g26ebe43 built on MoarVM version
2016.08
implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Sep 17, 2016

@hoelzro - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Sep 17, 2016
@p6rt p6rt added the REPL label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant