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

ghc-modi does not work but ghc-mod does #61

Closed 3noch closed 9 years ago

3noch commented 9 years ago

Using ghc-modi does not produce any helpful tips. In the IDE-Haskell panel I see an exclamation point with a circle around it. Disabling ghc-modi causes things to work fine. I'm on Mac OS X El Capitan.

It almost looks like the response from mod-ghci is being received, but the Atom plugin is failing to display it for some reason:

haskell-ghc-mod debug: getProcessOptions(/Users/elliot/a/mine/twitter-hasklone/rubik)
haskell-ghc-mod trace:
haskell-ghc-mod debug: PATH = /Users/elliot/a/mine/twitter-hasklone/rubik/.cabal-sandbox/bin:/Users/elliot/.local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
haskell-ghc-mod trace:
haskell-ghc-mod debug: Trying to run ghc-modi in /Users/elliot/a/mine/twitter-hasklone/rubik
haskell-ghc-mod trace:
haskell-ghc-mod debug: Checking for ghc-modi in /Users/elliot/a/mine/twitter-hasklone/rubik
haskell-ghc-mod trace:
haskell-ghc-mod debug: Found running ghc-modi instance for /Users/elliot/a/mine/twitter-hasklone/rubik
haskell-ghc-mod trace:
haskell-ghc-mod debug: Running ghc-modi command info,/Users/elliot/a/mine/twitter-hasklone/rubik/src/Lib.hs,,putStrLn
haskell-ghc-mod trace:
haskell-ghc-mod debug: Got response from ghc-modi:
putStrLn :: String -> IO ()     -- Defined in ‘System.IO’
OK

haskell-ghc-mod trace:
haskell-ghc-mod debug: getProcessOptions(/Users/elliot/a/mine/twitter-hasklone/rubik)
haskell-ghc-mod trace:
haskell-ghc-mod debug: PATH = /Users/elliot/a/mine/twitter-hasklone/rubik/.cabal-sandbox/bin:/Users/elliot/.local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
haskell-ghc-mod trace:
haskell-ghc-mod debug: Trying to run ghc-modi in /Users/elliot/a/mine/twitter-hasklone/rubik
haskell-ghc-mod trace:
haskell-ghc-mod debug: Checking for ghc-modi in /Users/elliot/a/mine/twitter-hasklone/rubik
haskell-ghc-mod trace:
haskell-ghc-mod debug: Found running ghc-modi instance for /Users/elliot/a/mine/twitter-hasklone/rubik
haskell-ghc-mod trace:
haskell-ghc-mod debug: Running ghc-modi command type,/Users/elliot/a/mine/twitter-hasklone/rubik/src/Lib.hs,,6,16
haskell-ghc-mod trace:
haskell-ghc-mod debug: Got response from ghc-modi:
6 12 6 20 "String -> IO ()"
6 12 6 31 "IO ()"
6 1 6 31 "IO ()"
OK

haskell-ghc-mod trace:
lierdakil commented 9 years ago

Terribly sorry, my bad. Forgot to thread result on one code branch, and didn't hit it while testing. 1.1.1 should fix this.

rvion commented 9 years ago

is that related to https://github.com/atom-haskell/ide-haskell/issues/119 ?

lierdakil commented 9 years ago

That's the same thing. Please update.

rvion commented 9 years ago

thanks !

3noch commented 9 years ago

Great! Thanks!