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

tab-completion: Error in the keymap #32558

Closed
vtjnash opened this issue Jul 11, 2019 · 0 comments · Fixed by #32840
Closed

tab-completion: Error in the keymap #32558

vtjnash opened this issue Jul 11, 2019 · 0 comments · Fixed by #32840
Labels
bug Indicates an unexpected problem or unintended behavior REPL Julia's REPL (Read Eval Print Loop)

Comments

@vtjnash
Copy link
Member

vtjnash commented Jul 11, 2019

julia> typeof(+).<tab>
┌ Error: Error in the keymap                                                                                            
│   exception =                                                                                                                               
│    ArgumentError: type does not have a definite number of fields                                                                            
│    Stacktrace:                                                                                                                             
│     [1] fieldcount(::Any) at ./reflection.jl:682                                                                                          
│     [2] fieldnames(::DataType) at ./reflection.jl:172                                                                                      
│     [3] complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol("##21#25")), ::Module) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/REPLCompletions
.jl:157                                                                                                                                            
│     [4] completions(::String, ::Int64, ::Module) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/REPLCompletions.jl:705         
│     [5] completions(::String, ::Int64) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/REPLCompletions.jl:575                    
│     [6] complete_line(::REPL.REPLCompletionProvider, ::Any) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/REPL.jl:362               
│     [7] complete_line(::REPL.LineEdit.PromptState, ::Any) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/LineEdit.jl:324   
│     [8] complete_line(::REPL.LineEdit.MIState) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/LineEdit.jl:315             
│     [9] edit_tab(::REPL.LineEdit.MIState, ::Any, ::Any) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/LineEdit.jl:1987 (repeats 2 times)
@StefanKarpinski StefanKarpinski added bug Indicates an unexpected problem or unintended behavior REPL Julia's REPL (Read Eval Print Loop) labels Jul 11, 2019
staticfloat added a commit that referenced this issue Aug 9, 2019
Wrap its invocation here in a `try` block.  Fixes #32558
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

Successfully merging a pull request may close this issue.

2 participants