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
Haskell Interactive Shell Stuck in Insert Mode? #445
Comments
Evil has its own input function, I'm pretty sure it override the input function for the haskell interactive shell. |
Yes some random pounding of the keys gets it to work properly (for a while, On Sat, Jan 17, 2015 at 11:35 AM, Sylvain Benner notifications@github.com
Ranjit. |
Hi Ranjit, you could try this and tell me if this solves the problem. Hope this helps |
Dear Carlo, THANKS! this seems to be working for me -- actually, just the C-c C-k seems When the shell starts up, it is like this -- let me write '#' to indicate
Now I can enter things and it works fine: ë> 2 + 1 ë> # But now if I hit the LEFT cursor (not backspace), so that the cursor ë># Then it goes into the STUCK mode ë> 23 + 123# where hitting RETURN has no effect (I can edit the text but cannot actually However, I find that C-c C-k at this point clears everything and resets So thanks again!
PS: Also, thanks for the kind words re: LiquidHaskell; am in another issue On Sun, Jan 25, 2015 at 5:35 AM, Carlo Nucera notifications@github.com
Ranjit. |
Hi Ranjit, if you want to retain the log of your computation, you could try this way: instead of hitting
As you noted, here you are in stuck mode because there is a space between your cursor and the end of the grey space. However, cancel that "foo" expression, move as far as you can to the right with the arrow, and then write the new expression and hit enter. That should work, as far as I tried. Hope this helps ps I'll have a look to the other issue and see if I can do anything, although I'm pretty new at spacemacs, so no guarantees :) |
Also I suggest to always stay in |
Also see the shell section of the doc: https://github.com/syl20bnr/spacemacs/blob/master/doc/DOCUMENTATION.md#shells |
I consider this question answered. @ranjitjhala feel free to reopen if needed. |
Yes, thanks! On Mon, Mar 2, 2015 at 8:39 PM, Sylvain Benner notifications@github.com
Ranjit. |
This actually happens whenever I go to the source buffer and press The "Interactive Haskell" buffer is kind of stuck and the described workaround works nicely. I really don't understand what's the purpose of the Is this a bug ? Any hope for a real fix ? |
This does not work at all for me on the current version of spacemacs. Using Spc-m-s-S in a haskell buffer does bring up the interactive shell. Pressing doesn't work, nor does haskell-interactive-mode-return. I tried the suggestions above to no avail |
I just realized that a cabal project is needed for this repl to work. Everything's fine now. |
Closing this issue since the original issue has been resolved. Fell free to open a new issue about stuck-mode. |
Well the issue has never been resolved. Why not removing the "question label". What is described here is a real bug. What has been given is a workaround. Anyhow if you really think it's best to open a new issue, let's do it ;-) PS: The link to the documentation for |
I tried to reproduce it and it's really easy to do. As @meditans suggested, the problem is when you type in the 'grey' area. To reproduce it you can just open REPL, enter normal mode (cursor will move into grey area) and then hit So yeah, it could be annoying. |
Totally agree with @PierreR , this issues should not be closed since it is just not solved. |
@autosquid please, check the section about stuck REPL in README file. For more info, checkout #3271. What do you think about described workarounds? |
@d12frosted thx for pointing out what is in the readme. This is a workaround, it does not solve the issue completely. And, if it is effective enough I think it should be directly added to the layer code, but not in The layer should behave right after it is installed in best cases. The must to-add snippet is same for everyone, and I do not think it makes sense to leave it to users. |
I can't fully agree with this, because there are two different workarounds for this problem and you can even use them both at the same time. I don't know which 'fix' is preferable by most users and I fear that different users prefer different solutions. In any case, haskell-mode has a convention about how you use REPL - you must not write between So I even don't know what to do with this issue. @TheBB, @syl20bnr what do you think about it? With regards to new discussion entries. |
As far as I'm concerned this issue arises from poor coding in the Haskell mode package. There are a million REPLs and only one (it seems) with this problem. We can only offer workarounds, and a default workaround is still a workaround. Added to this, as you said, both come with drawbacks that many will find equally as jarring. It will take some time for me to figure out the proper solution to this issue, though, but I'm fairly sure it will end up upstream and not here. |
Hi, when I create a haskell interactive shell with spacemacs, it fires up the shell (C-c C-l) but then when I enter stuff nothing happens. (It behaves as if the shell is read-only.) Does anyone know how to fix this?
(I should add: after some apparently random set of keystrokes, it starts working again!)
Screenshot:
http://goto.ucsd.edu/~rjhala/emacs.png
syl20bnr January 14 2015 @ranjitjhala you are in insert state when it happens ?
The text was updated successfully, but these errors were encountered: