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 evaluation doesn't work after Ctrl-C #1157

Closed
brianhuffman opened this issue Apr 8, 2021 · 0 comments · Fixed by #1158
Closed

REPL evaluation doesn't work after Ctrl-C #1157

brianhuffman opened this issue Apr 8, 2021 · 0 comments · Fixed by #1158

Comments

@brianhuffman
Copy link
Contributor

Once you press Ctrl-C at the REPL prompt (either while the interpreter is running, or when it's just waiting for input) then you are given a new prompt; but trying to evaluate any expression afterward will fail with a "resource vanished (Broken pipe)" error. (On Mac, at least.)

Loading module Cryptol
Cryptol>
Ctrl-C
Cryptol> True
cryptol: fd:13: hFlush: resource vanished (Broken pipe)

Other commands like :set or :browse or :help or even :eval still work, but evaluating an expression with the ordinary interpreter will crash.

Bisection shows that 3114110 (#1128) is the first bad commit.

robdockins added a commit that referenced this issue Apr 8, 2021
Generally, the CTRL^C will cause the solver to exit, so
this shuts down the current instance forces the REPL to
reopen a fresh instance the next time it is required.

Fixes #1157
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant