C-y kills Ammonite #180
C-y kills Ammonite #180
Comments
Stack trace from inside
|
I just verified that |
Sure! I'm not sure if you already found this but it sounds like you have Feel free to try out whatever fix you want and send a PR |
On it (yes, I found that snippet). Tests on |
Current master should work. Where are you seeing it broken? |
Re the bug, see the PR #190. Re the test failures, I looked into them. #192 might be a real bug. The rest is mostly spurious failures — they affect at most Ammonite developers. Even then, some are worth a look:
|
Disable Ctrl-y wherever possible (fix #180)
Most Scala REPLs (including Ammonite right now) tend* to die after I type C-y (that is, Ctrl-y) and resume, instead of pasting what I just C-k'ed, with an InterruptedException on reading.
I tracked this down to C-y causing (by default) a delayed suspend, that is a suspend when the process reads from input (like C-z). This can be disabled through
stty dsusp undef
, also used in JLine, but that's commented out with a "blows up on ubuntu" comment. Alternatively, one could catch theInterruptedException
, match on the error message and ignore the exceptions with the right message (although that's probably not extremely robust) — you often don't want to ignore allInterruptedException
.*That is, they repeatably die until this bug is somewhen fixed — both SBT and
scala
had it at some point.The text was updated successfully, but these errors were encountered: