-
Notifications
You must be signed in to change notification settings - Fork 347
haskell-process-set-response-cursor: Wrong type argument: consp, nil #117
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
Comments
I get this too. So annoying! Especially since haskell-mode decides to randomly interrupt me when I'm typing in order to present the dialog, and sometimes the keystroke you enter isn't the right one, and then oops your session is borked. I've looked into it a little bit but haven't quite figured out why it happens yet. |
+1! |
I think I am encountering this issue as well. |
I'll fix it today. |
That should do the trick. @gregorycollins FWIW the problem starts in
Which is the function called to get the current session whenever it's needed (that's why it sometimes interrupts you for things that need a session, like the space key (for showing :i output in the minibuffer and import completion)), but for an already open project it's supposed to be able to guess it from the current buffer's path, which is here:
But (and this seems to have changed since I've written it, either as the result of patches applied to the project or Emacs update, otherwise this never would've worked) the |
@chrisdone can you somehow fix the "it randomly interrupts you" problem? |
Well, you're getting interrupted by running a command that uses |
E.g.
If that fixes your problem, I can apply that. |
This version of haskell-mode-contextual-space didn't seem to do much for On Tue, Jan 29, 2013 at 1:53 PM, Chris Done [email protected]:
Gregory Collins [email protected] |
That said, it's better than it was so I'll check that version in. On Wed, Jan 30, 2013 at 12:14 AM, Gregory Collins
Gregory Collins [email protected] |
“wrong type argument consp nil” wasn't fixed by 00f22bd? Did you restart emacs? |
I haven't encountered it since a restart. I'm not sure this patch makes it On Tue, Jan 29, 2013 at 11:18 PM, Chris Done [email protected]:
Gregory Collins [email protected] |
I confirm that "M-x haskell-process-clear" does not break any more. However, when it keeps asking me about starting a new process and I hit 'y' by mistake, I still get "Wrong type argument: consp, nil" and the session is trashed and any subsequent "M-x haskell-process-clear" causes "Wrong type argument: consp, nil". BTW, as reported in #124, I'm not getting the interruptions to start a new project if I load files by hand (as opposed to loading a bunch via emacs.desktop or emacs command line). |
Could everybody interested verify that the problem persists if you use no symbolic links in the paths of the files edited with emacs? I can't reproduce it any more when I use direct paths, with no links, see #124. If that's the same for everybody, I guess we can try to improve the code to cope with symbolic links, but we can alternatively write this down in a FAQ or other docs and I'd be happy to close the issue then. |
Marking as P1 for 13.6. |
Does this still happen to you, @Mikolaj? |
@chrisdone: I can't tell, because with the current master I can't confirm the dialog Cabal dir (guessed from ../LambdaHack.cabal): .../mikolaj/repos/LambdaHack/ It just interprets Enter by moving the cursor to the new line. GNU Emacs 24.2.1. When I revert last 2 commits, it gets back to normal. |
Try hitting return twice? |
@chrisdone: it then creates 2 empty lines below the prompt. :) But now I'm at cdb3637, after reverting two commits, and Enter works fine. Note that this may be a crazy interaction with the mad things in |
Well I'm using |
@chrisdone: Yes, that's exactly what fails (and I reverted the commits, so this probably has nothing to do with any haskell-mode code). Even with 'emacs -Q' I get Test.../Game/LambdaHack/Common/ and "test is read only", when I try to modify the path, and Enter just adds new lines and I can't get rid of the text in the minibuffer. I will update emacs in my Ubuntu and see what happens. |
@chrisdone: Nope, the upgrade didn't help, it still fails even with 'emacs -Q'. :< (upgrade from 24.2+1-1 |
btw/fyi, org-mode uses a defcustom |
I'm specifically using ido because it handles path slashes. It's strange that it doesn't work on any Emacs, it's a pretty standard function. |
...have you actually tried |
Nope. |
@Mikolaj Try master now. |
@chrisdone: thanks, it works great now. Moreover, the original problem is gone and the problem with starting compilation with files with symlinks in paths is gone. Closing the issue. |
When I issue
(or mistakenly hit 'y' when asked about starting a new project and then input the directory) I get
haskell-process-set-response-cursor: Wrong type argument: consp, nil
and then I get it every time I try to compile (haskell-process-cabal-build). I have to restart emacs to make it work again.
The text was updated successfully, but these errors were encountered: