Keno / REPL.jl

Pure-julia REPL implementation
Other
3 stars 4 forks source link

Ctrl-R crashes the REPL #9

Closed ViralBShah closed 10 years ago

ViralBShah commented 10 years ago

I did Ctrl-R and and it crashed julia. Get the same with Ctrl-S for forward search.

viral 10:53:34 (master) ~/julia$ ./julia ~/.julia/REPL/scripts/repl.jl 
(reverse-i-search)`':ERROR: key not found: SearchState(UnixTerminal("xterm",TTY(active, 0 bytes waiting),TTY(open, 0 bytes waiting),TTY(open, 0 bytes waiting)),HistoryPrompt(REPLHistoryProvider([],IOStream(<file /Users/viral/.julia_history2>),1,IOBuffer([],true,true,true,false,0,9223372036854775807,1)),keymap_func),true,IOBuffer([],true,true,true,false,0,9223372036854775807,1),IOBuffer([],true,true,true,false,0,9223372036854775807,1),InputAreaState(0,0),Prompt("julia> ","julia> ","\e[1m\e[32m",repl_keymap_func,ReadlineREPL(UnixTerminal("xterm",TTY(active, 0 bytes waiting),TTY(open, 0 bytes waiting),TTY(open, 0 bytes waiting)),"\e[1m\e[32m","\e[1m\e[37m","\e[1m","\e[1m\e[31m","\e[1m\e[33m",false,false,0),"\e[1m\e[37m",REPLCompletionProvider(ReadlineREPL(UnixTerminal("xterm",TTY(active, 0 bytes waiting),TTY(open, 0 bytes waiting),TTY(open, 0 bytes waiting)),"\e[1m\e[32m","\e[1m\e[37m","\e[1m","\e[1m\e[31m","\e[1m\e[33m",false,false,0)),(anonymous function),(anonymous function),REPLHistoryProvider([],IOStream(<file /Users/viral/.julia_history2>),1,IOBuffer([],true,true,true,false,0,9223372036854775807,1))))
 in getindex at dict.jl:515
 in state at /Users/viral/.julia/Readline/src/Readline.jl:745
 in anonymous at /Users/viral/.julia/Readline/src/Readline.jl:758
 in keymap_func at /Users/viral/.julia/Readline/src/Readline.jl:652
 in prompt! at /Users/viral/.julia/Readline/src/Readline.jl:940
 in run_interface at /Users/viral/.julia/Readline/src/Readline.jl:923
 in run_repl at /Users/viral/.julia/REPL/src/REPL.jl:473
 in anonymous at no file:34
while loading /Users/viral/.julia/REPL/scripts/repl.jl, in expression starting on line 9

viral 10:53:52 (master) ~/julia$ 
Keno commented 10 years ago

Fixed! Pkg.update() should do the trick (you'll need latest master of REPL,Readline,Terminals).