Skip to content

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

Closed

Description

@bmmoore

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.

Activity

  1. ivan-m commented on Oct 2, 2014

    @ivan-m
    Contributor

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

  2. bmmoore commented on Oct 9, 2014

    @bmmoore
    Author

    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.

  3. ivan-m commented on Oct 10, 2014

    @ivan-m
    Contributor

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

  4. bmmoore commented on Oct 10, 2014

    @bmmoore
    Author

    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.

  5. ivan-m commented on Oct 10, 2014

    @ivan-m
    Contributor

    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.

  6. ikirill commented on Jan 22, 2015

    @ikirill
    Contributor

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

  7. gracjan commented on Mar 27, 2015

    @gracjan
    Contributor

    @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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions