Skip to content

Unicode entering mode within square brackets broken #24705

Closed
@Jutho

Description

@Jutho

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 a Dict or an Array. I tried to trace down the error in REPLCompletetions.

I think the problem is that dict_identifier_key returns (true,nothing,nothing) for any variable (which is not a dict), such that the function completions returns early with this line:
https://github.com/JuliaLang/julia/blob/master/base/repl/REPLCompletions.jl#L493

The only exception are Arrays, since they are special cased in dict_identifier_key to return (nothing,nothing,nothing) in line
https://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 name dict_identifier_key seems to suggest that it should only pick out Dicts, and should therefore return (nothing,nothing,nothing) for anything that is not a Dict.

Metadata

Metadata

Assignees

No one assigned

    Labels

    REPLJulia's REPL (Read Eval Print Loop)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions