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

Haskell-ghc-mod: ghc-mod interactive command info failed with error ghc-modi crashed #112

Closed tomkludy closed 8 years ago

tomkludy commented 8 years ago

The error in atom links to: https://github.com/atom-haskell/haskell-ghc-mod/issues/96

However, that issue is Closed and the resolution does not work for me. I do not have any 'Additional Path Directories' specified. I do use stack exclusively - no Haskell installed outside of stack - and I start atom with "stack exec atom". I get this error every time I open or save a file. I get the same error on both my desktop and my laptop, both OSX.

Full error report:

[Enter steps to reproduce below:]

  1. Open atom
  2. Open a Haskell file (any file will do)

Atom Version: 1.4.3 System: Mac OS X 10.11.3 Thrown From: haskell-ghc-mod package, v1.6.6

Stack Trace

Haskell-ghc-mod: ghc-mod interactive command info failed with error ghc-modi crashed

At caps: {"version":[5,5,0,0],"legacyInteractive":true,"fileMap":true,"rootExec":false,"quoteArgs":true,"optparse":true}
URI: /Users/tomkludy/Haskell/proxy-receiver/src/Lib.hs
Args: --,putStrLn
message: 
log:
-20.709s: getProcessOptions(/Users/tomkludy/Haskell/proxy-receiver)
-20.284s: PATH = /Users/tomkludy/.stack/snapshots/x86_64-osx/lts-5.1/7.10.3/bin:/Users/tomkludy/.stack/programs/x86_64-osx/ghc-7.10.3/bin:/Users/tomkludy/Haskell/proxy-rendezvous/.stack-work/install/x86_64-osx/lts-3.0/7.10.2/bin:/Users/tomkludy/.stack/snapshots/x86_64-osx/lts-3.0/7.10.2/bin:/Users/tomkludy/.stack/programs/x86_64-osx/ghc-7.10.2/bin:/Users/tomkludy/Library/Haskell/bin:/Users/tomkludy/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
:/sbin
-20.088s: Lib created
-20.088s: Lib updating
-20.088s: getProcessOptions(/Users/tomkludy/Haskell/proxy-rendezvous)
-19.705s: PATH = /Users/tomkludy/.stack/snapshots/x86_64-osx/lts-3.0/7.10.2/bin:/Users/tomkludy/Haskell/proxy-rendezvous/.stack-work/install/x86_64-osx/lts-3.0/7.10.2/bin:/Users/tomkludy/.stack/programs/x86_64-osx/ghc-7.10.2/bin:/Users/tomkludy/Library/Haskell/bin:/Users/tomkludy/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
:/sbin
-19.702s: Lib buffer is set
-19.7s: Yesod.Core created
-19.7s: Yesod.Core updating
-19.699s: Yesod.Core moduleName mismatch: Lib != Yesod.Core
-19.697s: Yesod.Core rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.695s: Yesod.Core moduleName mismatch: undefined != Yesod.Core
-19.695s: Yesod.WebSockets created
-19.695s: Yesod.WebSockets updating
-19.693s: Yesod.WebSockets moduleName mismatch: Lib != Yesod.WebSockets
-19.691s: Yesod.WebSockets rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.69s: Yesod.WebSockets moduleName mismatch: undefined != Yesod.WebSockets
-19.69s: Data.Text.Lazy created
-19.69s: Data.Text.Lazy updating
-19.688s: Data.Text.Lazy moduleName mismatch: Lib != Data.Text.Lazy
-19.687s: Data.Text.Lazy rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.686s: Data.Text.Lazy moduleName mismatch: undefined != Data.Text.Lazy
-19.686s: Data.Text.Encoding created
-19.686s: Data.Text.Encoding updating
-19.684s: Data.Text.Encoding moduleName mismatch: Lib != Data.Text.Encoding
-19.683s: Data.Text.Encoding rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.682s: Data.Text.Encoding moduleName mismatch: undefined != Data.Text.Encoding
-19.682s: Data.Text.Encoding.Error created
-19.681s: Data.Text.Encoding.Error updating
-19.68s: Data.Text.Encoding.Error moduleName mismatch: Lib != Data.Text.Encoding.Error
-19.679s: Data.Text.Encoding.Error rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.678s: Data.Text.Encoding.Error moduleName mismatch: undefined != Data.Text.Encoding.Error
-19.678s: Control.Monad created
-19.678s: Control.Monad updating
-19.676s: Control.Monad moduleName mismatch: Lib != Control.Monad
-19.675s: Control.Monad rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.675s: Control.Monad moduleName mismatch: undefined != Control.Monad
-19.674s: Control.Monad.Trans.Reader created
-19.674s: Control.Monad.Trans.Reader updating
-19.673s: Control.Monad.Trans.Reader moduleName mismatch: Lib != Control.Monad.Trans.Reader
-19.672s: Control.Monad.Trans.Reader rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.671s: Control.Monad.Trans.Reader moduleName mismatch: undefined != Control.Monad.Trans.Reader
-19.671s: Data.Time created
-19.671s: Data.Time updating
-19.67s: Data.Time moduleName mismatch: Lib != Data.Time
-19.669s: Data.Time rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.668s: Data.Time moduleName mismatch: undefined != Data.Time
-19.668s: Conduit created
-19.668s: Conduit updating
-19.667s: Conduit moduleName mismatch: Lib != Conduit
-19.666s: Conduit rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.664s: Conduit moduleName mismatch: undefined != Conduit
-19.664s: Data.Monoid created
-19.664s: Data.Monoid updating
-19.663s: Data.Monoid moduleName mismatch: Lib != Data.Monoid
-19.662s: Data.Monoid rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.66s: Data.Monoid moduleName mismatch: undefined != Data.Monoid
-19.66s: Control.Concurrent.STM.Lifted created
-19.66s: Control.Concurrent.STM.Lifted updating
-19.658s: Control.Concurrent.STM.Lifted moduleName mismatch: Lib != Control.Concurrent.STM.Lifted
-19.657s: Control.Concurrent.STM.Lifted rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.656s: Control.Concurrent.STM.Lifted moduleName mismatch: undefined != Control.Concurrent.STM.Lifted
-19.656s: Data.Text created
-19.656s: Data.Text updating
-19.655s: Data.Text moduleName mismatch: Lib != Data.Text
-19.654s: Data.Text rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.653s: Data.Text moduleName mismatch: undefined != Data.Text
-19.653s: Debug.Trace created
-19.653s: Debug.Trace updating
-19.652s: Debug.Trace moduleName mismatch: Lib != Debug.Trace
-19.651s: Debug.Trace rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.65s: Debug.Trace moduleName mismatch: undefined != Debug.Trace
-19.65s: Network.Wai.Handler.Warp created
-19.65s: Network.Wai.Handler.Warp updating
-19.649s: Network.Wai.Handler.Warp moduleName mismatch: Lib != Network.Wai.Handler.Warp
-19.648s: Network.Wai.Handler.Warp rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.647s: Network.Wai.Handler.Warp moduleName mismatch: undefined != Network.Wai.Handler.Warp
-19.647s: Network.Wai created
-19.647s: Network.Wai updating
-19.646s: Network.Wai moduleName mismatch: Lib != Network.Wai
-19.645s: Network.Wai rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.644s: Network.Wai moduleName mismatch: undefined != Network.Wai
-19.644s: Network.Wai.Conduit created
-19.644s: Network.Wai.Conduit updating
-19.642s: Network.Wai.Conduit moduleName mismatch: Lib != Network.Wai.Conduit
-19.64s: Network.Wai.Conduit rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.639s: Network.Wai.Conduit moduleName mismatch: undefined != Network.Wai.Conduit
-19.639s: Network.HTTP.Types created
-19.639s: Network.HTTP.Types updating
-19.638s: Network.HTTP.Types moduleName mismatch: Lib != Network.HTTP.Types
-19.637s: Network.HTTP.Types rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.637s: Network.HTTP.Types moduleName mismatch: undefined != Network.HTTP.Types
-19.637s: Data.ByteString.Char8 created
-19.637s: Data.ByteString.Char8 updating
-19.635s: Data.ByteString.Char8 moduleName mismatch: Lib != Data.ByteString.Char8
-19.635s: Data.ByteString.Char8 rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.633s: Data.ByteString.Char8 moduleName mismatch: undefined != Data.ByteString.Char8
-19.633s: Data.Conduit.Network created
-19.633s: Data.Conduit.Network updating
-19.632s: Data.Conduit.Network moduleName mismatch: Lib != Data.Conduit.Network
-19.631s: Data.Conduit.Network rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.63s: Data.Conduit.Network moduleName mismatch: undefined != Data.Conduit.Network
-19.63s: Network.HostName created
-19.63s: Network.HostName updating
-19.629s: Network.HostName moduleName mismatch: Lib != Network.HostName
-19.628s: Network.HostName rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.627s: Network.HostName moduleName mismatch: undefined != Network.HostName
-19.627s: Data.Word8 created
-19.627s: Data.Word8 updating
-19.626s: Data.Word8 moduleName mismatch: Lib != Data.Word8
-19.625s: Data.Word8 rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.624s: Data.Word8 moduleName mismatch: undefined != Data.Word8
-19.624s: Data.ByteString.Base64 created
-19.624s: Data.ByteString.Base64 updating
-19.623s: Data.ByteString.Base64 moduleName mismatch: Lib != Data.ByteString.Base64
-19.622s: Data.ByteString.Base64 rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.621s: Data.ByteString.Base64 moduleName mismatch: undefined != Data.ByteString.Base64
-19.621s: Data.ByteString.Internal created
-19.621s: Data.ByteString.Internal updating
-19.62s: Data.ByteString.Internal moduleName mismatch: Lib != Data.ByteString.Internal
-19.618s: Data.ByteString.Internal rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.616s: Data.ByteString.Internal moduleName mismatch: undefined != Data.ByteString.Internal
-19.616s: STMContainers.Multimap created
-19.616s: STMContainers.Multimap updating
-19.615s: STMContainers.Multimap moduleName mismatch: Lib != STMContainers.Multimap
-19.614s: STMContainers.Multimap rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.613s: STMContainers.Multimap moduleName mismatch: undefined != STMContainers.Multimap
-19.613s: Data.UUID created
-19.613s: Data.UUID updating
-19.612s: Data.UUID moduleName mismatch: Lib != Data.UUID
-19.611s: Data.UUID rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.61s: Data.UUID moduleName mismatch: undefined != Data.UUID
-19.61s: Data.UUID.V4 created
-19.61s: Data.UUID.V4 updating
-19.609s: Data.UUID.V4 moduleName mismatch: Lib != Data.UUID.V4
-19.608s: Data.UUID.V4 rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.606s: Data.UUID.V4 moduleName mismatch: undefined != Data.UUID.V4
-19.606s: Data.Hashable created
-19.606s: Data.Hashable updating
-19.605s: Data.Hashable moduleName mismatch: Lib != Data.Hashable
-19.604s: Data.Hashable rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.603s: Data.Hashable moduleName mismatch: undefined != Data.Hashable
-19.603s: Control.Concurrent.STM created
-19.602s: Control.Concurrent.STM updating
-19.601s: Control.Concurrent.STM moduleName mismatch: Lib != Control.Concurrent.STM
-19.6s: Control.Concurrent.STM rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.599s: Control.Concurrent.STM moduleName mismatch: undefined != Control.Concurrent.STM
-19.599s: ListT created
-19.599s: ListT updating
-19.598s: ListT moduleName mismatch: Lib != ListT
-19.597s: ListT rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.596s: ListT moduleName mismatch: undefined != ListT
-19.596s: Control.Exception created
-19.596s: Control.Exception updating
-19.595s: Control.Exception moduleName mismatch: Lib != Control.Exception
-19.594s: Control.Exception rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.593s: Control.Exception moduleName mismatch: undefined != Control.Exception
-19.593s: Control.Exception.Lifted created
-19.593s: Control.Exception.Lifted updating
-19.592s: Control.Exception.Lifted moduleName mismatch: Lib != Control.Exception.Lifted
-19.592s: Control.Exception.Lifted rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.59s: Control.Exception.Lifted moduleName mismatch: undefined != Control.Exception.Lifted
-19.59s: Control.Concurrent.Lifted created
-19.59s: Control.Concurrent.Lifted updating
-19.589s: Control.Concurrent.Lifted moduleName mismatch: Lib != Control.Concurrent.Lifted
-19.588s: Control.Concurrent.Lifted rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.587s: Control.Concurrent.Lifted moduleName mismatch: undefined != Control.Concurrent.Lifted
-19.587s: Prelude created
-19.587s: Prelude updating
-19.584s: Prelude moduleName mismatch: Lib != Prelude
-19.583s: Prelude rootPath mismatch: /Users/tomkludy/Haskell/proxy-receiver != /Users/tomkludy/Haskell/proxy-rendezvous
-19.582s: Prelude moduleName mismatch: undefined != Prelude
-19.554s: {"version":[5,5,0,0],"legacyInteractive":true,"fileMap":true,"rootExec":false,"quoteArgs":true,"optparse":true}
-19.552s: running ghc-mod lang,-- with options.cwd = /Users/tomkludy/Haskell/proxy-receiver,options.env = [object Object],options.encoding = utf-8
-19.544s: running ghc-mod flag,-- with options.cwd = /Users/tomkludy/Haskell/proxy-receiver,options.env = [object Object],options.encoding = utf-8
-19.541s: running ghc-mod browse,-d,--,Lib with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-19.538s: running ghc-mod browse,-d,--,Yesod.Core with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-18.833s: ghc-mod ended with code 0
-18.83s: ghc-mod ended with code 0
-18.428s: ghc-mod said: EXCEPTION: browse: module ‘Yesod.Core’ is a package module
-18.422s: ghc-mod ended with code 0
-18.422s: running ghc-mod browse,-d,--,Yesod.WebSockets with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-18.417s: Yesod.Core updated
-17.563s: ghc-mod said: EXCEPTION: browse: module ‘Yesod.WebSockets’ is a package module
-17.558s: ghc-mod ended with code 0
-17.558s: running ghc-mod browse,-d,--,Data.Text.Lazy with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-17.554s: Yesod.WebSockets updated
-17.091s: ghc-mod said: EXCEPTION: browse: <command line>: module is not loaded: ‘Lib’ (src/Lib.hs)
-17.015s: ghc-mod ended with code 0
-17.015s: running ghc-mod browse,-d,--,Data.Text.Encoding with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-17.006s: Lib updated
-16.452s: ghc-mod said: EXCEPTION: browse: module ‘Data.Text.Lazy’ is a package module
-16.452s: ghc-mod ended with code 0
-16.452s: running ghc-mod browse,-d,--,Data.Text.Encoding.Error with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-16.448s: Data.Text.Lazy updated
-16.091s: ghc-mod said: EXCEPTION: browse: module ‘Data.Text.Encoding’ is a package module
-16.085s: ghc-mod ended with code 0
-16.085s: running ghc-mod browse,-d,--,Control.Monad with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-16.081s: Data.Text.Encoding updated
-15.571s: ghc-mod said: EXCEPTION: browse: module ‘Data.Text.Encoding.Error’ is a package module
-15.565s: ghc-mod ended with code 0
-15.565s: running ghc-mod browse,-d,--,Control.Monad.Trans.Reader with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-15.562s: Data.Text.Encoding.Error updated
-15.263s: ghc-mod said: EXCEPTION: browse: module ‘Control.Monad’ is a package module
-15.258s: ghc-mod ended with code 0
-15.258s: running ghc-mod browse,-d,--,Data.Time with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-15.255s: Control.Monad updated
-14.723s: ghc-mod said: EXCEPTION: browse: module ‘Control.Monad.Trans.Reader’ is a package module
-14.717s: ghc-mod ended with code 0
-14.717s: running ghc-mod browse,-d,--,Conduit with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-14.714s: Control.Monad.Trans.Reader updated
-14.439s: ghc-mod said: EXCEPTION: browse: module ‘Data.Time’ is a package module
-14.433s: ghc-mod ended with code 0
-14.433s: running ghc-mod browse,-d,--,Data.Monoid with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-14.429s: Data.Time updated
-13.869s: ghc-mod said: EXCEPTION: browse: module ‘Conduit’ is a package module
-13.863s: ghc-mod ended with code 0
-13.863s: running ghc-mod browse,-d,--,Control.Concurrent.STM.Lifted with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-13.859s: Conduit updated
-13.581s: ghc-mod said: EXCEPTION: browse: module ‘Data.Monoid’ is a package module
-13.575s: ghc-mod ended with code 0
-13.575s: running ghc-mod browse,-d,--,Data.Text with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-13.572s: Data.Monoid updated
-13.022s: ghc-mod said: EXCEPTION: browse: module ‘Control.Concurrent.STM.Lifted’ is a package module
-13.015s: ghc-mod ended with code 0
-13.015s: running ghc-mod browse,-d,--,Debug.Trace with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-13.012s: Control.Concurrent.STM.Lifted updated
-12.702s: ghc-mod said: EXCEPTION: browse: module ‘Data.Text’ is a package module
-12.696s: ghc-mod ended with code 0
-12.696s: running ghc-mod browse,-d,--,Network.Wai.Handler.Warp with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-12.693s: Data.Text updated
-12.107s: ghc-mod said: EXCEPTION: browse: module ‘Debug.Trace’ is a package module
-12.102s: ghc-mod ended with code 0
-12.102s: running ghc-mod browse,-d,--,Network.Wai with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-12.098s: Debug.Trace updated
-11.791s: ghc-mod said: EXCEPTION: browse: module ‘Network.Wai.Handler.Warp’ is a package module
-11.785s: ghc-mod ended with code 0
-11.784s: running ghc-mod browse,-d,--,Network.Wai.Conduit with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-11.781s: Network.Wai.Handler.Warp updated
-11.267s: ghc-mod said: EXCEPTION: browse: module ‘Network.Wai’ is a package module
-11.26s: ghc-mod ended with code 0
-11.26s: running ghc-mod browse,-d,--,Network.HTTP.Types with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-11.257s: Network.Wai updated
-10.944s: ghc-mod said: EXCEPTION: browse: module ‘Network.Wai.Conduit’ is a package module
-10.938s: ghc-mod ended with code 0
-10.938s: running ghc-mod browse,-d,--,Data.ByteString.Char8 with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-10.931s: Network.Wai.Conduit updated
-10.412s: ghc-mod said: EXCEPTION: browse: module ‘Network.HTTP.Types’ is a package module
-10.405s: ghc-mod ended with code 0
-10.405s: running ghc-mod browse,-d,--,Data.Conduit.Network with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-10.401s: Network.HTTP.Types updated
-10.085s: ghc-mod said: EXCEPTION: browse: module ‘Data.ByteString.Char8’ is a package module
-10.079s: ghc-mod ended with code 0
-10.079s: running ghc-mod browse,-d,--,Network.HostName with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-10.076s: Data.ByteString.Char8 updated
-9.562s: ghc-mod said: EXCEPTION: browse: module ‘Data.Conduit.Network’ is a package module
-9.556s: ghc-mod ended with code 0
-9.556s: running ghc-mod browse,-d,--,Data.Word8 with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-9.553s: Data.Conduit.Network updated
-9.262s: ghc-mod said: EXCEPTION: browse: module ‘Network.HostName’ is a package module
-9.256s: ghc-mod ended with code 0
-9.256s: running ghc-mod browse,-d,--,Data.ByteString.Base64 with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-9.252s: Network.HostName updated
-8.722s: ghc-mod said: EXCEPTION: browse: module ‘Data.Word8’ is a package module
-8.716s: ghc-mod ended with code 0
-8.716s: running ghc-mod browse,-d,--,Data.ByteString.Internal with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-8.712s: Data.Word8 updated
-8.414s: ghc-mod said: EXCEPTION: browse: module ‘Data.ByteString.Base64’ is a package module
-8.408s: ghc-mod ended with code 0
-8.408s: running ghc-mod browse,-d,--,STMContainers.Multimap with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-8.405s: Data.ByteString.Base64 updated
-7.885s: ghc-mod said: EXCEPTION: browse: module ‘Data.ByteString.Internal’ is a package module
-7.879s: ghc-mod ended with code 0
-7.879s: running ghc-mod browse,-d,--,Data.UUID with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-7.874s: Data.ByteString.Internal updated
-7.565s: ghc-mod said: EXCEPTION: browse: module ‘STMContainers.Multimap’ is a package module
-7.559s: ghc-mod ended with code 0
-7.559s: running ghc-mod browse,-d,--,Data.UUID.V4 with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-7.556s: STMContainers.Multimap updated
-7.051s: ghc-mod said: EXCEPTION: browse: module ‘Data.UUID’ is a package module
-7.045s: ghc-mod ended with code 0
-7.045s: running ghc-mod browse,-d,--,Data.Hashable with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-7.04s: Data.UUID updated
-6.748s: ghc-mod said: EXCEPTION: browse: module ‘Data.UUID.V4’ is a package module
-6.743s: ghc-mod ended with code 0
-6.742s: running ghc-mod browse,-d,--,Control.Concurrent.STM with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-6.739s: Data.UUID.V4 updated
-6.224s: ghc-mod said: EXCEPTION: browse: module ‘Data.Hashable’ is a package module
-6.218s: ghc-mod ended with code 0
-6.218s: running ghc-mod browse,-d,--,ListT with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-6.215s: Data.Hashable updated
-5.911s: ghc-mod said: EXCEPTION: browse: module ‘Control.Concurrent.STM’ is a package module
-5.905s: ghc-mod ended with code 0
-5.905s: running ghc-mod browse,-d,--,Control.Exception with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-5.902s: Control.Concurrent.STM updated
-5.402s: ghc-mod said: EXCEPTION: browse: module ‘ListT’ is a package module
-5.396s: ghc-mod ended with code 0
-5.396s: running ghc-mod browse,-d,--,Control.Exception.Lifted with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-5.392s: ListT updated
-5.092s: ghc-mod said: EXCEPTION: browse: module ‘Control.Exception’ is a package module
-5.087s: ghc-mod ended with code 0
-5.087s: running ghc-mod browse,-d,--,Control.Concurrent.Lifted with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-5.083s: Control.Exception updated
-4.576s: ghc-mod said: EXCEPTION: browse: module ‘Control.Exception.Lifted’ is a package module
-4.57s: ghc-mod ended with code 0
-4.57s: running ghc-mod browse,-d,--,Prelude with options.cwd = /Users/tomkludy/Haskell/proxy-rendezvous,options.env = [object Object],options.encoding = utf-8
-4.566s: Control.Exception.Lifted updated
-4.255s: ghc-mod said: EXCEPTION: browse: module ‘Control.Concurrent.Lifted’ is a package module
-4.249s: ghc-mod ended with code 0
-4.249s: Control.Concurrent.Lifted updated
-3.775s: ghc-mod said: EXCEPTION: browse: module ‘Prelude’ is a package module
-3.768s: ghc-mod ended with code 0
-3.767s: Prelude updated
-0.961s: Trying to run ghc-modi in /Users/tomkludy/Haskell/proxy-receiver
-0.96s: Checking for ghc-modi in /Users/tomkludy/Haskell/proxy-receiver
-0.96s: Spawning new ghc-modi instance for /Users/tomkludy/Haskell/proxy-receiver with options.cwd = /Users/tomkludy/Haskell/proxy-receiver,options.env = [object Object],options.encoding = utf-8
-0.96s: Spawning new ghc-modi instance for /Users/tomkludy/Haskell/proxy-receiver with options.cwd = /Users/tomkludy/Haskell/proxy-receiver,options.env = [object Object],options.encoding = utf-8
-0.95s: Started interactive action block in /Users/tomkludy/Haskell/proxy-receiver
-0.95s: Running ghc-modi command info,/Users/tomkludy/Haskell/proxy-receiver/src/Lib.hs,--,putStrLn
-0.37s: ghc-modi said: cabal-helper-wrapper: Installing a private copy of Cabal because we couldn't
-0.37s: ghc-modi said: find the right version in your global/user package-db, this might take a
-0.369s: ghc-modi said: while but will only happen once per Cabal version you're using.
-0.369s: ghc-modi said: 
-0.369s: ghc-modi said: If anything goes horribly wrong just delete this directory and try again:
-0.369s: ghc-modi said:     /Users/tomkludy/.ghc-mod/cabal-helper
-0.369s: ghc-modi said: 
-0.369s: ghc-modi said: If you want to avoid this automatic installation altogether install
-0.369s: ghc-modi said: version 1.22.5.0 of Cabal manually (into your user or global package-db):
-0.369s: ghc-modi said:     $ cabal install Cabal --constraint "Cabal == 1.22.5.0"
-0.369s: ghc-modi said: 
-0.368s: ghc-modi said: Installing Cabal 1.22.5.0 ...
-0.013s: ghc-modi said: cabal: Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with
-0.012s: ghc-modi said: Cabal. Use the flag --package-db to specify a package database (it can be used
-0.012s: ghc-modi said: multiple times).
-0.011s: ghc-modi said: cabal-helper-wrapper: Installing Cabal version 1.22.5.0 failed.
-0.011s: ghc-modi said: 
-0.011s: ghc-modi said: You have the following choices to fix this:
-0.01s: ghc-modi said: 
-0.01s: ghc-modi said: - The easiest way to try and fix this is just reconfigure the project and try
-0.01s: ghc-modi said:   again:
-0.01s: ghc-modi said:         $ cabal clean && cabal configure
-0.01s: ghc-modi said: 
-0.01s: ghc-modi said: - If that fails you can try to install the version of Cabal mentioned above
-0.01s: ghc-modi said:   into your global/user package-db somehow, you'll probably have to fix
-0.01s: ghc-modi said:   something otherwise it wouldn't have failed above:
-0.009s: ghc-modi said:         $ cabal install Cabal --constraint 'Cabal == 1.22.5.0'
-0.009s: ghc-modi said: 
-0.009s: ghc-modi said: - If you're using `Build-Type: Simple`:
-0.008s: ghc-modi said:   - You can see if you can reinstall your cabal-install executable while
-0.008s: ghc-modi said:     having it linked to a version of Cabal that's available in you
-0.008s: ghc-modi said:     package-dbs or can be built automatically:
-0.008s: ghc-modi said:         $ ghc-pkg list | grep Cabal  # find an available Cabal version
-0.008s: ghc-modi said:             Cabal-W.X.Y.Z
-0.008s: ghc-modi said:         $ cabal install cabal-install --constraint 'Cabal == W.X.*'
-0.008s: ghc-modi said:     Afterwards you'll have to reconfigure your project:
-0.008s: ghc-modi said:         $ cabal clean && cabal configure
-0.008s: ghc-modi said: 
-0.008s: ghc-modi said: - If you're using `Build-Type: Custom`:
-0.008s: ghc-modi said:   - Have cabal-install rebuild your Setup.hs executable with a version of the
-0.008s: ghc-modi said:     Cabal library that you have available in your global/user package-db:
-0.008s: ghc-modi said:         $ cabal clean && cabal configure
-0.008s: ghc-modi said:     You might also have to install some version of the Cabal to do this:
-0.008s: ghc-modi said:         $ cabal install Cabal
-0.008s: ghc-modi said: 
-0.008s: ghc-modi said: 
-0.005s: ghc-modi said: ghc-mod: readCreateProcess: /Users/tomkludy/.stack/snapshots/x86_64-osx/lts-5.1/7.10.3/libexec/cabal-helper-wrapper "--with-ghc=/Users/tomkludy/.stack/programs/x86_64-osx/ghc-7.10.3/bin/ghc" "--with-ghc-pkg=/Users/tomkludy/.stack/programs/x86_64-osx/ghc-7.10.3/bin/ghc-pkg" "--with-cabal=cabal" "/Users/tomkludy/Haskell/proxy-receiver" "/Users/tomkludy/Haskell/proxy-receiver/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0" "package-db-stack" "entrypoints" "source-dirs" "ghc-options" "ghc-src-options" "ghc-pkg-options" "ghc-merged-pkg-options" "ghc-lang-options" "licenses" "flags" "config-flags" "non-default-config-flags" "compiler-version" (exit 1): failed
-0.002s: ghc-modi for /Users/tomkludy/Haskell/proxy-receiver ended with 1
-0.002s: ghc-modi for /Users/tomkludy/Haskell/proxy-receiver ended with 1
-0.001s: Running ghc-modi command unmap-file,/Users/tomkludy/Haskell/proxy-receiver/src/Lib.hs
-0.001s: ghc-modi crashed

ghc-modi crashed
    at module.exports.Util.mkError (/Users/tomkludy/.atom/packages/haskell-ghc-mod/lib/util.coffee:154:15)
    at ChildProcess.exitCallback (/Users/tomkludy/.atom/packages/haskell-ghc-mod/lib/ghc-mod/interactive-process.coffee:76:20)
    at emitTwo (events.js:92:20)
    at ChildProcess.emit (events.js:172:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

Commands

Config

{
  "core": {
    "disabledPackages": [
      "haskell-pointfree",
      "ide-haskell-repl"
    ]
  },
  "haskell-ghc-mod": {}
}

Installed Packages

# User
autocomplete-haskell, v0.6.2
haskell-ghc-mod, v1.6.6
ide-haskell, v1.3.9
ide-haskell-cabal, v1.0.0
language-haskell, v1.5.2

# Dev
No dev packages
tomkludy commented 8 years ago

I was able to resolve this issue by upgrading my stack projects to resolver: lts-5.2, then stack clean, stack build, and atom seems to be working perfectly now!

shanemikel commented 8 years ago

Usually I encounter this error whenever I'm working on a project that has an incomplete .cabal file, so if anybody else is troubled by this error, where atom can't resolve dependencies you know are installed, make sure your .cabal file lists them as build deps, or rename the cabal file with a different extension while you're working

ford-prefect commented 8 years ago

I'm still seeing this when firing up cabal with stack lts-5.4 on just a simple file set up to be in Haskell mode

lierdakil commented 8 years ago

@ford-prefect, try running stack build in your project directory. Then try running ghc-mod check path-to-main.hs. See if it works at all. At least we'll know if it's ghc-mod or this package.

nodermann2 commented 8 years ago

+1 ghc-mod check Main.hs works fine

lierdakil commented 8 years ago

If ghc-mod check Main.hs works fine, then don't run Atom with stack exec atom.

sgraf812 commented 8 years ago

Edit: You can safely ignore this comment, this is a known bug in ghc-mod: https://github.com/DanielG/ghc-mod/issues/688

For me this issue came up when

  1. Opening Atom
  2. Adding a stack project with the hs-source-dirs set to ., such as https://github.com/sgraf812/cloben

'Normal' project setups work as intended. I don't think this is an issue with haskell-ghc-mod, but rather ghc-mod itself.

Output of stack exec -- ghc-mod check cloben.hs:

cabal: Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with
Cabal. Use the flag --package-db to specify a package database (it can be used
multiple times).
ghc-mod: readCreateProcess: cabal "configure" "--with-ghc=ghc" "--flags" "" (exit 1): failed

Output of ghc-mod check cloben.hs (I've no global ghc installed):

cabal: Cannot find the program 'ghc'. User-specified path 'ghc' does not refer
to an executable and the program is not on the system path.
ghc-mod: readCreateProcess: cabal "configure" "--with-ghc=ghc" "--flags" "" (exit 1): failed

Running the same on regular project setups (e.g. source files under src/) works like a charm.