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

method TAB completion doesn't work properly with multiline input #49324

Open
staticfloat opened this issue Apr 11, 2023 · 1 comment
Open

method TAB completion doesn't work properly with multiline input #49324

staticfloat opened this issue Apr 11, 2023 · 1 comment
Labels
kind:feature Indicates new feature / enhancement requests stdlib:REPL Julia's REPL (Read Eval Print Loop)

Comments

@staticfloat
Copy link
Sponsor Member

When attempting to TAB-complete to get method prompting with a multi-line input, the results seem to get confused:

julia> println(

prompts:

println(io::IO) @ Base coreio.jl:5              println(io::IO, xs...) @ Base strings/io.jl:75
println(xs...) @ Base coreio.jl:4

However:

julia> x = 2
       println(

Gives all of Base.

We should improve our TAB-completion to no longer do this, as it's quite useful when writing multi-line commands.

@staticfloat staticfloat added stdlib:REPL Julia's REPL (Read Eval Print Loop) kind:feature Indicates new feature / enhancement requests labels Apr 11, 2023
@Keno
Copy link
Member

Keno commented Apr 13, 2023

We currently rely too much on ad hoc string processing in the completion code. This kind of stuff would be much easier with a proper error-recovering parser like we have in JuliaSyntax.jl, so we should focus our efforts on getting that integrated, so we can use it in places like this.

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

No branches or pull requests

2 participants