Skip to content

REPL completion error #24257

Closed
Closed
@nalimilan

Description

@nalimilan

If I type Base.Distributed.Cluster.P at the REPL and hit TAB twice, I get this on master but not on 0.6.0:

julia> Base.Distributed.Cluster.PERROR (in the keymap): BoundsError: attempt to access 2-element Array{Any,1} at index [3]
Stacktrace:
 [1] getindex(::Array{Any,1}, ::Int64) at ./array.jl:758
 [2] get_value_getfield(::Expr, ::Module) at ./repl/REPLCompletions.jl:286
 [3] get_value_getfield(::Expr, ::Module) at ./repl/REPLCompletions.jl:284
 [4] try_get_type(::Expr, ::Module) at ./repl/REPLCompletions.jl:328
 [5] try_get_type(::Expr, ::Module) at ./repl/REPLCompletions.jl:340
 [6] get_type(::Expr, ::Module) at ./repl/REPLCompletions.jl:349
 [7] complete_symbol(::String, ::getfield(Base.REPLCompletions, Symbol("##19#23"))) at ./repl/REPLCompletions.jl:62
 [8] completions(::String, ::Int64) at ./repl/REPLCompletions.jl:611
 [9] complete_line(::Base.REPL.REPLCompletionProvider, ::Base.LineEdit.PromptState) at ./repl/REPL.jl:306
 [10] complete_line(::Base.LineEdit.PromptState, ::Int64) at ./repl/LineEdit.jl:238
 [11] complete_line(::Base.LineEdit.MIState) at ./repl/LineEdit.jl:228
 [12] edit_tab(::Base.LineEdit.MIState, ::Bool, ::Bool) at ./repl/LineEdit.jl:1676
 [13] (::getfield(Base.LineEdit, Symbol("##98#141")))(::Base.LineEdit.MIState, ::Base.REPL.LineEditREPL, ::Vararg{Any,N} where N) at ./repl/LineEdit.jl:1709
 [14] (::getfield(Base.LineEdit, Symbol("##19#20")){getfield(Base.LineEdit, Symbol("##98#141")),String})(::Base.LineEdit.MIState, ::Base.REPL.LineEditREPL) at ./repl/LineEdit.jl:1059
 [15] prompt!(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface, ::Base.LineEdit.MIState) at ./repl/LineEdit.jl:2061
 [16] run_interface(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface) at ./repl/LineEdit.jl:1962
 [17] run_frontend(::Base.REPL.LineEditREPL, ::Base.REPL.REPLBackendRef) at ./repl/REPL.jl:986
 [18] run_repl(::Base.REPL.LineEditREPL, ::getfield(Base, Symbol("##545#546"))) at ./repl/REPL.jl:182
 [19] _start() at ./client.jl:439

Metadata

Metadata

Assignees

No one assigned

    Labels

    REPLJulia's REPL (Read Eval Print Loop)regressionRegression in behavior compared to a previous version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions