-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Unicode entering mode within square brackets broken #24705
Labels
REPL
Julia's REPL (Read Eval Print Loop)
Comments
Also, minimal example: a=randn(2,2);
f=qrfact(a)
a[\+TAB] #=> all possible Unicode completions
f[\+TAB] #=> nothing |
If somebody could give some pointers as to the correct fix, I could try to prepare a PR. |
I also found this recently: # X is undefined
X["\Delta<TAB>"] # X["Δ"]
X["\Delta<TAB><TAB>"] # X["Δ"]
X = Dict("Δ" => 1)
X["\Delta<TAB>"] # X["Δ"]
X["\Delta<TAB><TAB>"] # UnicodeError
X = 1
X["\Delta<TAB>"] # no completion |
actually for me on 1.0.1 general completion within indexing is broken, e.g.: jualia> using DataFrames
julia> df = DataFrame(ciao=rand(3))
3×1 DataFrame
│ Row │ ciao │
│ │ Float64 │
├─────┼───────────┤
│ 1 │ 0.175749 │
│ 2 │ 0.0407557 │
│ 3 │ 0.0945494 │
julia> df[df.ci<Tab> # NOT COMPLETING |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Within square brackets that follow a variable (i.e. a
getindex
operation), tab completion for entering Unicode is broken, unless the variable in front is aDict
or anArray
. I tried to trace down the error inREPLCompletetions
.I think the problem is that
dict_identifier_key
returns(true,nothing,nothing)
for any variable (which is not a dict), such that the functioncompletions
returns early with this line:https://github.com/JuliaLang/julia/blob/master/base/repl/REPLCompletions.jl#L493
The only exception are
Array
s, since they are special cased indict_identifier_key
to return(nothing,nothing,nothing)
in linehttps://github.com/JuliaLang/julia/blob/master/base/repl/REPLCompletions.jl#L459
Is it my understanding that something is wrong here. I don't know much about the whole
REPL
module, but the namedict_identifier_key
seems to suggest that it should only pick outDict
s, and should therefore return(nothing,nothing,nothing)
for anything that is not aDict
.The text was updated successfully, but these errors were encountered: