-
Notifications
You must be signed in to change notification settings - Fork 841
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
Ctrl-C kills stack ghci when Docker is used #1163
Comments
Some more investigation:
It seems likely to me these interrupt problems are related to the entrypoint: When I build a custom image based on Ubuntu that contains ghc ( The entry point calls But I don't understand why it doesn't break |
Pretty sure this is issue is encompassed by #547, so closing. I'll add a note there to ensure this case is handled. |
Workarond for now:
and you can Ctrl-C safely. |
FYI: this looks to be fixed in stack-0.1.8.0 |
On Linux, when I'm in
stack ghci
in stack's Docker environment, it doesn't clear the line or cancel the currently running function as expected, but instead shuts down the Docker container (thus killing the ghci session).This gives tough times for doing e.g. web development in ghci (you can't cancel the server and quickly reload).
Most likely this is related to
docker run
signal propagation (we already had to deal with some of that fun in #547), and its-i
(--interactive
),-t
(--tty
), and--sig-proxy
flags.The text was updated successfully, but these errors were encountered: