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

REPL exception with 4 keystrokes (tab completion with macros) #30517

Closed
abraunst opened this issue Dec 26, 2018 · 4 comments
Closed

REPL exception with 4 keystrokes (tab completion with macros) #30517

abraunst opened this issue Dec 26, 2018 · 4 comments
Labels
bug Indicates an unexpected problem or unintended behavior REPL Julia's REPL (Read Eval Print Loop)

Comments

@abraunst
Copy link
Contributor

abraunst commented Dec 26, 2018

open julia, write @a.<TAB> -> boom. Don't ask what I was trying to achieve, just fat fingers.

julia> @a.┌ Error: Error in the keymap
│   exception =
│    LoadError: UndefVarError: @a not defined
│    Stacktrace:
│     [1] top-level scope
│     [2] lower at ./meta.jl:68 [inlined]
│     [3] get_type(::Expr, ::Module) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPLCompletions.jl:422
│     [4] complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol("##21#25")), ::Module) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPLCompletions.jl:123
│     [5] completions(::String, ::Int64, ::Module) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPLCompletions.jl:699
│     [6] completions(::String, ::Int64) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPLCompletions.jl:569
│     [7] complete_line(::REPL.REPLCompletionProvider, ::Any) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:349
│     [8] complete_line(::REPL.LineEdit.PromptState, ::Any) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:322
│     [9] complete_line(::REPL.LineEdit.MIState) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:313
│     [10] edit_tab(::REPL.LineEdit.MIState, ::Any, ::Any) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:1954 (repeats 2 times)
│     [11] (::getfield(REPL.LineEdit, Symbol("##108#160")))(::Any, ::Any, ::Vararg{Any,N} where N) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:1995
│     [12] #invokelatest#1 at ./essentials.jl:742 [inlined]
│     [13] invokelatest at ./essentials.jl:741 [inlined]
│     [14] (::getfield(REPL.LineEdit, Symbol("##27#28")){getfield(REPL.LineEdit, Symbol("##108#160")),String})(::Any, ::Any) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:1324
│     [15] prompt!(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:2365
│     [16] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:2268
│     [17] run_frontend(::LineEditREPL, ::REPL.REPLBackendRef) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:1035
│     [18] run_repl(::AbstractREPL, ::Any) at /home/ab/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:192
│     [19] (::getfield(Base, Symbol("##735#737")){Bool,Bool,Bool,Bool})(::Module) at ./client.jl:362
│     [20] #invokelatest#1 at ./essentials.jl:742 [inlined]
│     [21] invokelatest at ./essentials.jl:741 [inlined]
│     [22] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:346
│     [23] exec_options(::Base.JLOptions) at ./client.jl:284
│     [24] _start() at ./client.jl:436
│    in expression starting at none:1
└ @ REPL.LineEdit ~/src/julia/build1.x/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:2367
@mbauman mbauman added bug Indicates an unexpected problem or unintended behavior REPL Julia's REPL (Read Eval Print Loop) labels Dec 31, 2018
@StefanKarpinski
Copy link
Member

StefanKarpinski commented Jan 1, 2019

Reproduces on current master and release-1.0.

@KristofferC
Copy link
Member

Let's tag an eventual PR that fixes this instead.

@cafaxo
Copy link
Contributor

cafaxo commented Jan 1, 2019

Is this a duplicate of #27184?

@KristofferC
Copy link
Member

Yes.

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