atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

Atom doesn't respond after first character typed if ghc-mod can't be found #64

Closed dszakallas closed 8 years ago

dszakallas commented 8 years ago

The plugin doesn't find ghc-mod: Haskell-ghc-mod: ghc-mod lang failed with error message Error: spawn ghc-mod ENOENT

Steps to reproduce:

  1. Open a new file an set language to Haskell.
  2. Type a character. The editor doesn't respond anymore. I also have the autocomplete-haskell plugin installed.
dszakallas commented 8 years ago

Even worse if ghc-mod is configured. The editor hangs after choosing the language. I have ghc-mod version 5.3.0.0 compiled by GHC 7.10.2

dszakallas commented 8 years ago

However it doesn't seem to be any problem with ghc-mod version 5.4.0.0

lierdakil commented 8 years ago

FYI, ghc-mod 5.3.0.0 isn't supported:

Supported ghc-mod versions are from 4.1.0 to 5.2.1.2, and 5.4.x. 5.3.x might work, but is not officially supported.

That said, I'm frankly baffled at your report of Atom hanging/editor not responding, this should never happen. What Atom version do you use? On what OS?

dszakallas commented 8 years ago

I'm using Atom 1.1.0 on Linux arch 4.2.4-1-ARCH #1 SMP PREEMPT Fri Oct 23 07:32:38 CEST 2015 x86_64 GNU/Linux I've been using Atom for a while now, but the freezing never happened anywhere else.

dszakallas commented 8 years ago

Supported ghc-mod versions are from 4.1.0 to 5.2.1.2, and 5.4.x. 5.3.x might work, but is not officially > supported.

I see, but it hangs too when it can't find ghc-mod.

lierdakil commented 8 years ago

Do you have ide-haskell plugin installed?

lierdakil commented 8 years ago

Nevermind, I was able to reproduce this. Weird. I'll look into this. Thanks for reporting.

lierdakil commented 8 years ago

Should be fixed in 1.1.3.