-
Notifications
You must be signed in to change notification settings - Fork 696
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
cabal repl gets killed by interrupts #1448
Comments
/cc @dcoutts |
Note that |
Having the same problem with |
For me this is kind of a show stopper. Which is unfortunate, because I really want to use Why is this so important to me? If you develop long running process (web services, etc.), you may want to start them from |
I think I've tracked this down to the way cabal spawns processes. In cabal-dev the command that ultimately gets called to start ghci is Here is example code to show why I think this distinction matters:
If you put that in a file and runhaskell on it, you will see that in the first ghci you can hit C-c as much as you want, but after you type I tried to replace the call of |
By searching for It looks like Now, what should we do about it? |
Which version of cabal includes this fix? |
@wereHamster Both HEAD and the 1.18 branch. |
Note: this strikes again. |
@gracjan which cabal version, and which interrupt are you seeing that kills cabal repl? I just tried with cabal 1.22.0, and Ctrl-C does not kill the repl, so this seems to be working fine for me. |
Unexpected: After Ctrl-C whole GHCi is terminated and bash prompt appears.
Expected: After Ctrl-C prompt for GHCi appears again:
Version of cabal:
I do not know how to check which version of |
As a success story:
So success! That was after doing:
(Note that Cabal==1.22.1.1 did not compile for me). I do not know why installing 1.22 did not pull latest process 1.2.2 as dependency. |
Just tripped over this using cabal 1.22.2.0 with ubuntu trusty's stock ghc-7.6.3-10 package, which contains an older version of process. Installing cabal with a newer version of process as @gracjan shows above worked, as did using a newer ghc (7.10.1) version from the ppa repository (as described here: https://www.haskell.org/downloads/linux). |
i often use ctrl-c to reset the line i was in in ghci. unfortunately that kills cabal repl.
The text was updated successfully, but these errors were encountered: