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

type does not have a definite number of fields error in REPL completions #26513

Closed
Keno opened this issue Mar 19, 2018 · 1 comment
Closed

type does not have a definite number of fields error in REPL completions #26513

Keno opened this issue Mar 19, 2018 · 1 comment
Labels
bug Indicates an unexpected problem or unintended behavior REPL Julia's REPL (Read Eval Print Loop)

Comments

@Keno
Copy link
Member

Keno commented Mar 19, 2018

For f a function, type typeof(f).<TAB> and get:

julia> typeof(f).┌ Error: Error in the keymap
│   exception =
│    type does not have a definite number of fields
│    Stacktrace:
│     [1] error at ./error.jl:33 [inlined]
│     [2] fieldcount(::Any) at ./reflection.jl:578
│     [3] fieldnames(::DataType) at ./reflection.jl:156
│     [4] complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol("##15#17"))) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/REPLCompletions.jl:97
│     [5] completions(::String, ::Int64) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/REPLCompletions.jl:619
│     [6] complete_line(::REPL.REPLCompletionProvider, ::REPL.LineEdit.PromptState) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/REPL.jl:341
│     [7] complete_line(::REPL.LineEdit.PromptState, ::Int64) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:310
│     [8] complete_line(::REPL.LineEdit.MIState) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:301
│     [9] edit_tab(::REPL.LineEdit.MIState, ::Bool, ::Bool) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:1911 (repeats 2 times)
│     [10] (::getfield(REPL.LineEdit, Symbol("##108#160")))(::REPL.LineEdit.MIState, ::REPL.LineEditREPL, ::Vararg{Any,N} where N) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:1952
│     [11] top-level scope
│     [12] eval at ./boot.jl:309 [inlined]
│     [13] eval at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:3 [inlined]
│     [14] (::getfield(REPL.LineEdit, Symbol("##27#28")){getfield(REPL.LineEdit, Symbol("##108#160")),String})(::REPL.LineEdit.MIState, ::REPL.LineEditREPL) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:1301
│     [15] prompt!(::REPL.Terminals.TTYTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:2317
│     [16] run_interface(::REPL.Terminals.TTYTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:2218
│     [17] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/REPL.jl:1017
│     [18] run_repl(::REPL.LineEditREPL, ::getfield(Base, Symbol("##687#689"))) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/REPL.jl:188
│     [19] (::getfield(Base, Symbol("##686#688")){Bool,Bool,Bool,Bool})(::Module) at ./client.jl:414
│     [20] (::getfield(Base, Symbol("#inner#4")){Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},getfield(Base, Symbol("##686#688")){Bool,Bool,Bool,Bool},Tuple{Module}})() at ./essentials.jl:641
│     [21] #invokelatest#3 at ./essentials.jl:642 [inlined]
│     [22] invokelatest at ./essentials.jl:641 [inlined]
│     [23] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:398
│     [24] exec_options(::Base.JLOptions) at ./client.jl:338
│     [25] _start() at ./client.jl:455
└ @ REPL.LineEdit LineEdit.jl:2319
@JeffBezanson JeffBezanson added the REPL Julia's REPL (Read Eval Print Loop) label Mar 19, 2018
@KristofferC KristofferC added the bug Indicates an unexpected problem or unintended behavior label May 6, 2019
@derikk
Copy link

derikk commented Nov 13, 2020

I believe this is a duplicate of #32558, which was closed by #32840.

@vtjnash vtjnash closed this as completed Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

5 participants