Skip to content
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

Emacs stuck on "Initializing..." when loading a Haskell file #2966

Closed
mrkgnao opened this issue Sep 9, 2015 · 8 comments
Closed

Emacs stuck on "Initializing..." when loading a Haskell file #2966

mrkgnao opened this issue Sep 9, 2015 · 8 comments
Labels

Comments

@mrkgnao
Copy link

mrkgnao commented Sep 9, 2015

Preamble: I am very, very inexperienced when it comes to Emacs. (I'm running 25.0.50 on Ubuntu 14.04.)

So I'm trying to get a little Haskell development environment set up (preferably with stack, but I'm having trouble enough with plain old ghc).

I enabled the haskell layer. Now, whenever I open a Haskell file, Emacs freezes saying "Initializing...". Ctrl-G stops the freezing and shows me the source, and the error log says "File mode specification error: (error "Process not running")".

How do I stop this from happening and hopefully get completion and structured-haskell-mode set up? There's also a lot of lag when I use any motions like j/k/w/b.

Edit: #2142 (comment)
Edit (@StreakyCobra): Related reddit thread

@d12frosted
Copy link
Collaborator

Yeah, there is such problem. This is possible duplicate of #2896. It was also briefly discussed in various threads. But that's expectable, since the problem is really annoying.

I understand that this is totally not good solution in general, but you can use my private layer meanwhile. For completion it uses company-ghci - which works well with stack.

(setq-default dotspacemacs-configuration-layers
   '((d12-haskell :variables haskell-enable-hindent-style "chris-done"
                             haskell-enable-shm-support t
                             haskell-process-type 'stack-ghci)))

As for lagging - don't have anything to say, sorry.

@geo7
Copy link
Contributor

geo7 commented Sep 12, 2015

@d12frosted is the lag 25.0 related? I can't remember whether you were running 25.0 or not

@d12frosted
Copy link
Collaborator

@geo7 No. I am running on 24.5.

@geo7
Copy link
Contributor

geo7 commented Sep 14, 2015

@mrkgnao I think I remember you saying that you had got this sorted in the gitter chat?

If so it'd be cool to close this issue, and possibly add a note at the end of your original post mentioning what you did :)

@mrkgnao
Copy link
Author

mrkgnao commented Sep 15, 2015

Yup!
#2142 (comment)

@geo7
Copy link
Contributor

geo7 commented Sep 15, 2015

@mrkgnao nice one 👍 maybe include that link in the top post (of this issue) and if all's good this can be closed :)

@secwang
Copy link

secwang commented Sep 29, 2015

@d12froste 👏

@StreakyCobra
Copy link
Contributor

I've also added the reddit's link to the original post. Everything seems fine as there was no update last 2 months month, so I'll close this one 😄 Feel free to reopen it (or to open a new one) in case of problems.

Edit: I need to learn how to count 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants