Juno.jl icon indicating copy to clipboard operation
Juno.jl copied to clipboard

[BUG] REPL exit when pressing Ctrl-\

Open knuesel opened this issue 5 years ago • 0 comments

Details

  • Atom version: 1.45
  • Julia version: 1.4
  • OS: Ubuntu 18.04
  • Package versions:
    • Atom.jl: 0.12.10
    • julia-client: 0.12.4
    • ink: 0.12.3

Steps to reproduce

  1. Start a long-running call in the Juno REPL, for example sleep(10)
  2. Press Ctrl-\

This sends SIGQUIT to the Julia process, resulting in Julia exiting:

julia> sleep(5)
^\
signal (3): Quit
in expression starting at none:0
pthread_cond_wait at /lib/x86_64-linux-gnu/libpthread.so.0 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:827
...
Julia has exited.
Press Enter to start a new session.

This might not be a bug technically as it is the expected behavior in a regular terminal. But in Atom Ctrl-\ is used to toggle the tree view, so it is likely to surprise and annoy Juno users.

This can be fixed by adding "Ctrl-\\" to whitelistedKeybindingsREPL.

knuesel avatar Mar 29 '20 13:03 knuesel