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

REPL auto-completion suggestions may overlie existing text #51320

Closed
jishnub opened this issue Sep 14, 2023 · 1 comment · Fixed by #51321
Closed

REPL auto-completion suggestions may overlie existing text #51320

jishnub opened this issue Sep 14, 2023 · 1 comment · Fixed by #51321
Labels
stdlib:REPL Julia's REPL (Read Eval Print Loop)

Comments

@jishnub
Copy link
Contributor

jishnub commented Sep 14, 2023

julia> versioninfo()
Julia Version 1.11.0-DEV.468
Commit bab20f492a6 (2023-09-14 14:36 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
  WORD_SIZE: 64
  LLVM: libLLVM-15.0.7 (ORCJIT, tigerlake)
  Threads: 1 on 8 virtual cores
Environment:
  LD_LIBRARY_PATH = :/usr/lib/x86_64-linux-gnu/gtk-3.0/modules
  JULIA_EDITOR = subl

Julia binary downloaded using jill.

Suppose I start with

julia> ones(2)

and try to add show( to the beginning of the line. As I type sh, it suggests the auto-completion

The suggested letters ow that are greyed out have overwritten the on of ones. Tab-completing the word then gives me

julia> show

which is super confusing, as the ones is totally removed from the prompt. Incidentally, if I press any key after the tab-completion, it reveals the ones.

Ideally, the ones should always be displayed, and the auto-completion suggestion should shift the existing command to the right as required.

The same behavior is present on the current master

Julia Version 1.11.0-DEV.468
Commit bab20f492a (2023-09-14 14:36 UTC)

Also, the behavior seen here is confusing, where the existing text to the right gets temporarily hidden after I finish typing show:

@jishnub jishnub added the stdlib:REPL Julia's REPL (Read Eval Print Loop) label Sep 14, 2023
@jishnub jishnub changed the title REPL suggestions may overlie existing text REPL auto-completion suggestions may overlie existing text Sep 14, 2023
@jishnub
Copy link
Contributor Author

jishnub commented Sep 14, 2023

Possibly fixed by #51229 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib:REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant