Skip to content

haskell-process-suggest-pragma hangs emacs #754

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
drewr opened this issue Jul 7, 2015 · 5 comments
Closed

haskell-process-suggest-pragma hangs emacs #754

drewr opened this issue Jul 7, 2015 · 5 comments

Comments

@drewr
Copy link

drewr commented Jul 7, 2015

Using haskell-mode-20150707.57 with interactive-haskell-mode, whenever haskell-process-suggest-pragma is triggered, it sometimes works, and sometimes hangs emacs. After that a C-g will suspend the process and try to dump core.

@johnwalker
Copy link
Contributor

Is this specific to stack-ghci?

@drewr
Copy link
Author

drewr commented Jul 7, 2015

I think so. I can't quite tell because I've been switching back and forth quite a bit. I'll switch back to cabal for a bit and see if it's triggered.

@drewr
Copy link
Author

drewr commented Jul 7, 2015

I switched back to cabal-repl and the first time I responded n it hung.

@vlatkoB
Copy link
Contributor

vlatkoB commented Jul 29, 2015

It is happening to me with cabal-repl as well. I found out that it is because of haskell-doc being active during suggestions. And I have to C-g 3 times to get out of it. :-)

I made a workaround until this gets fixed:

(defun haskell-process-trigger-suggestions-ad (orig-fun &rest args)
  (turn-off-haskell-doc)
  (apply orig-fun args)
  (turn-on-haskell-doc))

(advice-add 'haskell-process-trigger-suggestions
   :around #'haskell-process-trigger-suggestions-ad)

@gracjan
Copy link
Contributor

gracjan commented Jan 27, 2016

Closing in favor of #820, there is more information there.

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