-
-
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
Tab completion can't always determine field names #40247
Comments
KristofferC
added
bug
Indicates an unexpected problem or unintended behavior
REPL
Julia's REPL (Read Eval Print Loop)
labels
Mar 28, 2021
Probably a duplicate of #27184 and others |
aviatesk
added a commit
to aviatesk/julia
that referenced
this issue
Apr 27, 2021
aviatesk
added a commit
to aviatesk/julia
that referenced
this issue
Apr 27, 2021
aviatesk
added a commit
to aviatesk/julia
that referenced
this issue
Apr 28, 2021
aviatesk
added a commit
to aviatesk/julia
that referenced
this issue
May 5, 2021
shirodkara
pushed a commit
to shirodkara/julia
that referenced
this issue
Jun 9, 2021
johanmon
pushed a commit
to johanmon/julia
that referenced
this issue
Jul 5, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tab completion fails to infer field names:
But it has no trouble when broken down in two steps:
Stack trace
``` julia> Pkg.dependencies()[Pkg.project().dependencies["Revise"]].┌ Error: Error in the keymap │ exception = │ BoundsError: attempt to access 1-element Vector{Any} at index [2] │ Stacktrace: │ [1] getindex │ @ ./array.jl:801 [inlined] │ [2] get_value_getfield(ex::Expr, fn::Module) (repeats 2 times) │ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:392 │ [3] try_get_type(sym::Expr, fn::Module) │ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:436 │ [4] try_get_type(sym::Expr, fn::Module) │ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:448 │ [5] get_type(sym::Expr, fn::Module) │ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:457 │ [6] get_type_call(expr::Expr) │ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:411 │ [7] try_get_type(sym::Expr, fn::Module) │ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:439 │ [8] try_get_type(sym::Expr, fn::Module) │ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:446 │ [9] get_type(sym::Expr, fn::Module) │ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:457 │ [10] get_type_call(expr::Expr) │ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:411 │ [11] try_get_type(sym::Expr, fn::Module) │ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:439 │ [12] try_get_type(sym::Expr, fn::Module) │ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:446 │ [13] get_type(sym::Expr, fn::Module) │ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:457 │ [14] complete_symbol(sym::String, ffunc::REPL.REPLCompletions.var"#34#37", context_module::Module) │ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:153 │ [15] completions(string::String, pos::Int64, context_module::Module) │ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:774 │ [16] completions │ @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:638 [inlined] │ [17] complete_line(c::REPL.REPLCompletionProvider, s::REPL.LineEdit.PromptState) │ @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:439 │ [18] complete_line(s::REPL.LineEdit.PromptState, repeats::Int64) │ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:348 │ [19] complete_line(s::REPL.LineEdit.MIState) │ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:339 │ [20] edit_tab(s::REPL.LineEdit.MIState, jump_spaces::Bool, delete_trailing::Bool) (repeats 2 times) │ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:2118 │ [21] (::REPL.LineEdit.var"#109#162")(::REPL.LineEdit.MIState, ::Any, ::Vararg{Any, N} where N) │ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:2159 │ [22] #invokelatest#2 │ @ ./essentials.jl:708 [inlined] │ [23] invokelatest │ @ ./essentials.jl:706 [inlined] │ [24] (::REPL.LineEdit.var"#22#23"{REPL.LineEdit.var"#109#162", String})(s::Any, p::Any) │ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:1414 │ [25] prompt!(term::REPL.Terminals.TextTerminal, prompt::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState) │ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:2534 │ [26] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState) │ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:2436 │ [27] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef) │ @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:1126 │ [28] (::REPL.var"#44#49"{REPL.LineEditREPL, REPL.REPLBackendRef})() │ @ REPL ./task.jl:406 └ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:2536The text was updated successfully, but these errors were encountered: