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 crashes when pressing non-ASCII character #25143

Closed
KlausC opened this issue Dec 17, 2017 · 3 comments
Closed

REPL crashes when pressing non-ASCII character #25143

KlausC opened this issue Dec 17, 2017 · 3 comments
Labels
bug Indicates an unexpected problem or unintended behavior REPL Julia's REPL (Read Eval Print Loop)

Comments

@KlausC
Copy link
Contributor

KlausC commented Dec 17, 2017

The current build crashes the REPL.

julia> versioninfo()
Julia Version 0.7.0-DEV.3057
Commit a5c9e88 (2017-12-17 09:45 UTC)
Platform Info:
OS: Linux (x86_64-redhat-linux)
CPU: Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, ivybridge)
Environment:

julia>

Here I pressed §, a standard character on my keyboard. Same effect, when pressing Ä or any other non-ASCII type.

ERROR: MethodError: no method matching position(::Base.Terminals.TTYTerminal)
Closest candidates are:
position(::Base.Filesystem.File) at filesystem.jl:222
position(::Base.Libc.FILE) at libc.jl:94
position(::IOStream) at iostream.jl:188
...
Stacktrace:
[1] mark(::Base.Terminals.TTYTerminal) at ./io.jl:861
[2] peek at ./iostream.jl:462 [inlined]
[3] read(::Base.Terminals.TTYTerminal, ::Type{Char}) at ./io.jl:608
[4] match_input(::Dict{Char,Any}, ::Base.LineEdit.MIState, ::Base.Terminals.TTYTerminal, ::Array{Char,1}, ::Dict{Char,Any}) at ./repl/LineEdit.jl:1288
[5] match_input at ./repl/LineEdit.jl:1287 [inlined]
[6] prompt!(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface, ::Base.LineEdit.MIState) at ./repl/LineEdit.jl:2314
[7] run_interface(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface, ::Base.LineEdit.MIState) at ./repl/LineEdit.jl:2223
[8] run_frontend(::Base.REPL.LineEditREPL, ::Base.REPL.REPLBackendRef) at ./repl/REPL.jl:1024
[9] run_repl(::Base.REPL.LineEditREPL, ::getfield(Base, Symbol("##605#607"))) at ./repl/REPL.jl:183
[10] _start() at ./client.jl:420
[crusius@KlausPC julia]$

@rfourquet rfourquet added bug Indicates an unexpected problem or unintended behavior REPL Julia's REPL (Read Eval Print Loop) labels Dec 17, 2017
@fredrikekre
Copy link
Member

This bug makes it painfully obvious how often I mistype... But perhaps if the REPL will crash every time I mistype I will learn not to!

@KlausC
Copy link
Contributor Author

KlausC commented Dec 17, 2017

This is obviously a generalization of #25098.

@vchuravy
Copy link
Member

closed as dup of #25098

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

4 participants