Skip to content

Prompts to restart Haskell process after every character typed in an identifer #349

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

Closed
bmmoore opened this issue Sep 30, 2014 · 7 comments
Closed

Comments

@bmmoore
Copy link

bmmoore commented Sep 30, 2014

After trying and failing to start a Haskell process, typing a character at the end of an identifer in the Haskell buffer prompts to restart again.

I have haskell-mode 13.10, GHC 7.8.3, cabal-install version 1.20.0.3 using version 1.20.0.2.

To reproduce, it's enough to make a trivial .cabal file for a Test.hs containing the line

module Test where main

After something like C-c C-l that tries to start a haskell process, the process will die with the log showing the compiler error message. After that, adding letters to the end of "main" will prompt to restart the process after each character typed.

@ivan-m
Copy link
Contributor

ivan-m commented Oct 2, 2014

Does this sound like your issue? haskell/cabal#1715

@bmmoore
Copy link
Author

bmmoore commented Oct 9, 2014

My issue is that the emacs mode gets stuck in a bad state when cabal repl doesn't start properly. That issue is my most common reason for cabal repl not to start, but I doubt the annoying "ask again after every keystroke" behavior depends on exactly why the process isn't surviving.

@ivan-m
Copy link
Contributor

ivan-m commented Oct 10, 2014

Do you get a "do you want to restart?" prompt after the error fails?

@bmmoore
Copy link
Author

bmmoore commented Oct 10, 2014

Yes, I get the normal "do you want to restart?" prompt immediately after the failure as expected. Then whatever answer I gave, typing a letter at the end of an identifier brings up that same prompt again.

@ivan-m
Copy link
Contributor

ivan-m commented Oct 10, 2014

Can you check with a blank config somewhere? I wonder if you've enabled an option somewhere that tries to automatically keep reloading your project every time you edit the file.

@ikirill
Copy link
Contributor

ikirill commented Jan 22, 2015

Does #443 fix this? This may be due to the completion function starting after every character typed. If not, then maybe documentation function?

@gracjan
Copy link
Contributor

gracjan commented Mar 27, 2015

@bmmoore: Seems like @ikirill fixed the issue. Can you check if this is really the case and write a note here if you still experience problems?

@gracjan gracjan closed this as completed Mar 27, 2015
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

No branches or pull requests

4 participants