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 type failed with error ghc-modi crashed #138

Closed mainland closed 8 years ago

mainland commented 8 years ago

I'm seeing the same error as #89, but with a current version of ghc-mod. I happen to be working with a project that uses recursive modules, which lease to ghc-modi crashing. This is a known bug in ghc-mod; see DanielG/ghc-mod#727. Unfortunately the bug in ghc-mod causes haskell-ghc-mod to constantly pop up warnings.

Is there any way to suppress these warnings?

[Enter steps to reproduce below:]

Occurs constantly during editing.

Atom Version: 1.7.3 System: Ubuntu 16.04 Thrown From: haskell-ghc-mod package, v1.12.2

Stack Trace

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

caps: {"version":[5,5,0,0],"legacyInteractive":true,"fileMap":true,"rootExec":false,"quoteArgs":true,"optparse":true,"typeConstraints":false,"browseParents":false,"interactiveCaseSplit":false}
URI: /home/mainland/projects/kyllini/src/KZC/Optimize/Eval/Val.hs
Args: --,412,13
message: 
log:
-6.953s: Trying to run ghc-modi in /home/mainland/projects/kyllini
-6.952s: Checking for ghc-modi in /home/mainland/projects/kyllini
-6.952s: Spawning new ghc-modi instance for /home/mainland/projects/kyllini with options.cwd = /home/mainland/projects/kyllini,options.env = [object Object],options.encoding = utf-8
-6.952s: Spawning new ghc-modi instance for /home/mainland/projects/kyllini with options.cwd = /home/mainland/projects/kyllini,options.env = [object Object],options.encoding = utf-8
-6.896s: Started interactive action block in /home/mainland/projects/kyllini
-6.895s: Running ghc-modi command info,/home/mainland/projects/kyllini/src/KZC/Optimize/Eval/Val.hs,--,typeSize
-0.59s: Got response from ghc-modi:
typeSize :: MonadTc m => KZC.Core.Syntax.Type -> m Int      -- Defined at src/KZC/Core/Lint/Monad.hs:380:1
OK
-0.59s: Ended interactive action block in /home/mainland/projects/kyllini
-0.59s: Trying to run ghc-modi in /home/mainland/projects/kyllini
-0.59s: Checking for ghc-modi in /home/mainland/projects/kyllini
-0.59s: Found running ghc-modi instance for /home/mainland/projects/kyllini
-0.588s: Started interactive action block in /home/mainland/projects/kyllini
-0.587s: Running ghc-modi command info,/home/mainland/projects/kyllini/src/KZC/Optimize/Eval/Val.hs,--,val
-0.427s: ghc-modi said: EXCEPTION: info:     Not in scope: ‘val’
-0.427s: Got response from ghc-modi:
Cannot show info
OK
-0.427s: Ended interactive action block in /home/mainland/projects/kyllini
-0.424s: Trying to run ghc-modi in /home/mainland/projects/kyllini
-0.424s: Checking for ghc-modi in /home/mainland/projects/kyllini
-0.424s: Found running ghc-modi instance for /home/mainland/projects/kyllini
-0.424s: Started interactive action block in /home/mainland/projects/kyllini
-0.424s: Running ghc-modi command type,/home/mainland/projects/kyllini/src/KZC/Optimize/Eval/Val.hs,--,412,13
-0.066s: ghc-modi said: ghc-mod: ghc-mod: panic! (the 'impossible' happened)
-0.066s: ghc-modi said:   (GHC version 7.10.3 for x86_64-unknown-linux):
-0.066s: ghc-modi said:     plusProv
-0.066s: ghc-modi said: 
-0.066s: ghc-modi said: Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
-0.001s: ghc-modi for /home/mainland/projects/kyllini ended with 1
-0.001s: ghc-modi for /home/mainland/projects/kyllini ended with 1
-0.001s: Running ghc-modi command unmap-file,/home/mainland/projects/kyllini/src/KZC/Optimize/Eval/Val.hs
0s: ghc-modi crashed
Hide Stack Trace
ghc-modi crashed
    at module.exports.Util.mkError (/home/mainland/projects/dotfiles/.atom/packages/haskell-ghc-mod/lib/util.coffee:172:15)
    at ChildProcess.exitCallback (/home/mainland/.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)
Fresheyeball commented 8 years ago

:+1:

lierdakil commented 8 years ago

Create a file named .disable-ghc-mod in your project root. This will basically disable all ghc-mod functions, but it will also shut it up as a side effect.

lierdakil commented 8 years ago

NB: this "feature" is a horrible hack, and may change or go away in the future.

mainland commented 8 years ago

I'd rather have ghc-mod enabled and deal with the errors :) Of course, it would be better if there were an option to leave ghc-mod enabled and just swallow any errors it throws.

Fresheyeball commented 8 years ago

Or just make them... Smaller. As in visually smaller and less intrusive. On Sat, May 7, 2016 at 11:02 PM Geoffrey Mainland notifications@github.com wrote:

I'd rather have ghc-mod enabled and deal with the errors :) Of course, it would be better if there were an option to leave ghc-mod enabled and just swallow any errors it throws.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/atom-haskell/haskell-ghc-mod/issues/138#issuecomment-217691471

lierdakil commented 8 years ago

Hiding errors is bad for a whole lot of reasons... Not the least of that is it becomes impossible to troubleshoot issues. I could add another horrible undocumented hack for that, but honestly, I don't think it's an especially good idea.

Errors are reported as they are now for the sake of easy feedback. Design is fixed by Atom, so nothing I can do there.

lierdakil commented 8 years ago

I'm open to ideas on how to make this work.

As a small pro tip, pressing esc closes all error pop-ups. That's the way I've been dealing with those >_>

mainland commented 8 years ago

Yes, I press esc quite often :)

I appreciate that there isn't a great solution here---this is really a bug in ghc-mod/ghc.

One option would be to catch any ghc-mod hard crash and ignore it, perhaps with a config option that explicitly says to ignore any ghc-mod crash. After all, if ghc-mod crashes, what more can you do?

lierdakil commented 8 years ago

ghc-mod can crash for many different reasons, much of which are due to configuration errors. So I've made crashes reported like this to provide a semblance of support (and also to give an explicit reason why "nothing works" to new users). I feel like adding an option for this is inviting bug reports a la "nothing happens"... of which there were quite a bit back in the day.

So if we are to hide crash reports at all, I feel like this "option" needs to be obscure enough as to be relatively invisible to new users. I might have a couple of ideas on this front though.

2016-05-09 17:09 GMT+03:00 Geoffrey Mainland notifications@github.com:

Yes, I press esc quite often :)

I appreciate that there isn't a great solution here---this is really a bug in ghc-mod/ghc.

One option would be to catch any ghc-mod hard crash and ignore it, perhaps with a config option that explicitly says to ignore any ghc-mod crash. After all, if ghc-mod crashes, what more can you do?

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/atom-haskell/haskell-ghc-mod/issues/138#issuecomment-217874619

mainland commented 8 years ago

Can ghc-mod crash with a GHC internal error that is due to a configuration error? Ignoring ghc-mod: panic! (the 'impossible' happened) errors would be enough for my purposes. I would be very happy to have a "hidden" configuration switch to ignore these sorts of errors!

corwin-of-amber commented 8 years ago

I am all for showing the user what is going in instead of silently failing. However, errors popping on almost every keystroke makes the tool completely unusable and for no good reason. Moreover, the error message provides no useful input beyond what would be conveyed by a tiny red exclamation mark at the corner of the screen. It says "Please report this as a GHC bug", but it does not provide the command line used (of course, GHC by itself compiles my source code just fine). In any case, repeating the same error as before... sounds a bit redundant. If you show it to me once, I know to expect ghc-mod features to not work (aka "nothing happens") and I do not need a reminder.

Fresheyeball commented 8 years ago

Just an idea, but I think a good UX might be to have a "fix" option. As in, if the most common fix for this one (at least for me) is stack install --dependencies-only maybe just provide a button that issues that command.

lierdakil commented 8 years ago

Okay, so here we go.

Since haskell-ghc-mod-1.15.0 supports some 'advanced' configuration per-project via .haskell-ghc-mod.json config file in project root. See https://github.com/atom-haskell/haskell-ghc-mod#advanced-configuration

TL;DR create .haskell-ghc-mod.json in project root with following contents to suppress error pop-ups:

{ "suppressErrors": true }
lierdakil commented 8 years ago

@Fresheyeball -- I will eventually add that to ide-haskell-cabal. But there are some caveats, regrettably.

lierdakil commented 8 years ago

Okay, so 'build dependencies' command is added to ide-haskell-cabal. I will think about integrating that into error report interface somewhere down the line, as well as other stuff. Main problem is detecting recoverable errors at the moment. Closing this issue, as it seems to be resolved.

yoeluk commented 7 years ago

why was this and the other similar issue #112 closed? this is clearly not resolved and it is major annoyance!

lierdakil commented 7 years ago

The only "real" resolution is to make ghc-mod more robust. That would be out of scope for this particular project, which is undermanned as it is. There are enough workarounds to at least make this major annoyance smaller if you know what you're doing. As for new users, I'd prefer for them to see obnoxious error messages rather than to have the infamous "nothing works and I have no idea why" experience.

Miguelme commented 6 years ago

This issue is being thrown to me as follows:

caps: {"version":[5,5,0,0],"fileMap":true,"quoteArgs":true,"optparse":true,"typeConstraints":false,"browseParents":false,"interactiveCaseSplit":false,"importedFrom":false}
URI: /Users/user/Haskell/data-csv/app/Main.hs
Args: --,38,54
message: 
log:
-13.709s: "ReadUtil created"
-13.709s: "ReadUtil updating"
-13.708s: "getProcessOptions(/Users/user/Haskell/data-csv)"
-13.707s: "Looking for cabal sandbox..."
-13.707s: "Looking for stack sandbox..."
-13.706s: "Running stack with PATH ","/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z"
-13.706s: "Running stack path,--snapshot-install-root,--local-install-root,--bin-path with opts = ",{"encoding":"utf-8","stdio":"pipe","cwd":"/Users/user/Haskell/data-csv","env":{"ATOM_HOME":"/Users/user/.atom","NODE_PATH":"/private/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/AppTranslocation/E10AD689-0395-4172-AD7B-DF155A538742/d/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","TMPDIR":"/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/user","SHELL":"/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.ic1R1QYrtc/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.u9Y4caIliy/Listeners","PATH":"/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z","LOGNAME":"user","DISPLAY":"/private/tmp/com.apple.launchd.Cprz302GeR/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"user","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","ZSH":"/Users/user/.oh-my-zsh","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","WORKON_HOME":"/Users/user/.virtualenvs","PROJECT_HOME":"/Users/user/Devel","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","_VIRTUALENVWRAPPER_API":" mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv","_":"/usr/bin/env","LC_CTYPE":""},"timeout":60000}
-13.693s: "Prelude created"
-13.693s: "Prelude updating"
-13.69s: "ReadUtil buffer is set"
-13.69s: "Prelude moduleName mismatch: ReadUtil != Prelude"
-13.597s: "Reading cabal sandbox config failed with ",{"errno":-2,"code":"ENOENT","syscall":"open","path":"/Users/user/Haskell/data-csv/cabal.sandbox.config"}
-13.597s: "No cabal sandbox found"
-13.594s: "Prelude moduleName mismatch: Main != Prelude"
-13.539s: "Got response from stack path,--snapshot-install-root,--local-install-root,--bin-path",{"stdout":"bin-path: /Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin:/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z\nsnapshot-install-root: /Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2\nlocal-install-root: /Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2\n","stderr":""}
-13.539s: "Found stack sandbox ","/Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2/bin","/Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin","/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin"
-13.539s: "PATH = /Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin:/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z"
-13.539s: "Running /Users/user/.local/bin/ghc-mod version with opts = ",{"timeout":60000,"cwd":"/Users/user/Haskell/data-csv","env":{"ATOM_HOME":"/Users/user/.atom","NODE_PATH":"/private/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/AppTranslocation/E10AD689-0395-4172-AD7B-DF155A538742/d/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","TMPDIR":"/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/user","SHELL":"/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.ic1R1QYrtc/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.u9Y4caIliy/Listeners","PATH":"/Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin:/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z","LOGNAME":"user","DISPLAY":"/private/tmp/com.apple.launchd.Cprz302GeR/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"user","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","ZSH":"/Users/user/.oh-my-zsh","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","WORKON_HOME":"/Users/user/.virtualenvs","PROJECT_HOME":"/Users/user/Devel","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","_VIRTUALENVWRAPPER_API":" mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv","_":"/usr/bin/env","LC_CTYPE":""},"encoding":"utf-8","maxBuffer":null}
-13.522s: "Got response from /Users/user/.local/bin/ghc-mod version",{"stdout":"ghc-mod version 5.5.0.0 compiled by GHC 7.10.3\n","stderr":""}
-13.521s: "Ghc-mod 5,5,0,0 built with 7.10.3"
-13.521s: "{\"version\":[5,5,0,0],\"fileMap\":true,\"quoteArgs\":true,\"optparse\":true,\"typeConstraints\":false,\"browseParents\":false,\"interactiveCaseSplit\":false,\"importedFrom\":false}"
-13.521s: "Running stack ghc,--,--numeric-version with opts = ",{"timeout":60000,"cwd":"/Users/user/Haskell/data-csv","env":{"ATOM_HOME":"/Users/user/.atom","NODE_PATH":"/private/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/AppTranslocation/E10AD689-0395-4172-AD7B-DF155A538742/d/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","TMPDIR":"/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/user","SHELL":"/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.ic1R1QYrtc/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.u9Y4caIliy/Listeners","PATH":"/Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin:/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z","LOGNAME":"user","DISPLAY":"/private/tmp/com.apple.launchd.Cprz302GeR/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"user","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","ZSH":"/Users/user/.oh-my-zsh","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","WORKON_HOME":"/Users/user/.virtualenvs","PROJECT_HOME":"/Users/user/Devel","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","_VIRTUALENVWRAPPER_API":" mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv","_":"/usr/bin/env","LC_CTYPE":""},"encoding":"utf-8","maxBuffer":null}
-13.512s: "Running ghc --numeric-version with opts = ",{"timeout":60000,"cwd":"/Users/user/Haskell/data-csv","env":{"ATOM_HOME":"/Users/user/.atom","NODE_PATH":"/private/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/AppTranslocation/E10AD689-0395-4172-AD7B-DF155A538742/d/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","TMPDIR":"/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/user","SHELL":"/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.ic1R1QYrtc/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.u9Y4caIliy/Listeners","PATH":"/Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin:/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z","LOGNAME":"user","DISPLAY":"/private/tmp/com.apple.launchd.Cprz302GeR/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"user","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","ZSH":"/Users/user/.oh-my-zsh","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","WORKON_HOME":"/Users/user/.virtualenvs","PROJECT_HOME":"/Users/user/Devel","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","_VIRTUALENVWRAPPER_API":" mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv","_":"/usr/bin/env","LC_CTYPE":""},"encoding":"utf-8","maxBuffer":null}
-13.504s: "Running /Users/user/.local/bin/ghc-mod browse,-d,--,ReadUtil with opts = ",{"cwd":"/Users/user/Haskell/data-csv","env":{"ATOM_HOME":"/Users/user/.atom","NODE_PATH":"/private/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/AppTranslocation/E10AD689-0395-4172-AD7B-DF155A538742/d/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","TMPDIR":"/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/user","SHELL":"/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.ic1R1QYrtc/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.u9Y4caIliy/Listeners","PATH":"/Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin:/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z","LOGNAME":"user","DISPLAY":"/private/tmp/com.apple.launchd.Cprz302GeR/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"user","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","ZSH":"/Users/user/.oh-my-zsh","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","WORKON_HOME":"/Users/user/.virtualenvs","PROJECT_HOME":"/Users/user/Devel","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","_VIRTUALENVWRAPPER_API":" mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv","_":"/usr/bin/env","LC_CTYPE":""},"encoding":"utf-8","maxBuffer":null}
-13.497s: "Running /Users/user/.local/bin/ghc-mod browse,-d,--,Prelude with opts = ",{"cwd":"/Users/user/Haskell/data-csv","env":{"ATOM_HOME":"/Users/user/.atom","NODE_PATH":"/private/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/AppTranslocation/E10AD689-0395-4172-AD7B-DF155A538742/d/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","TMPDIR":"/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/user","SHELL":"/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.ic1R1QYrtc/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.u9Y4caIliy/Listeners","PATH":"/Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin:/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z","LOGNAME":"user","DISPLAY":"/private/tmp/com.apple.launchd.Cprz302GeR/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"user","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","ZSH":"/Users/user/.oh-my-zsh","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","WORKON_HOME":"/Users/user/.virtualenvs","PROJECT_HOME":"/Users/user/Devel","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","_VIRTUALENVWRAPPER_API":" mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv","_":"/usr/bin/env","LC_CTYPE":""},"encoding":"utf-8","maxBuffer":null}
-13.446s: "Got response from ghc --numeric-version",{"stdout":"8.0.2\n","stderr":""}
-13.352s: "Got response from stack ghc,--,--numeric-version",{"stdout":"8.0.2\n","stderr":""}
-13.352s: "Stack GHC version 8.0.2"
-13.352s: "Path GHC version 8.0.2"
-13.341s: "GHC version in your Stack '8.0.2' doesn't match with GHC version used to build ghc-mod '7.10.3'. This can lead to problems when using Stack projects"
-13.34s: "GHC version in your PATH '8.0.2' doesn't match with GHC version used to build ghc-mod '7.10.3'. This can lead to problems when using Cabal or Plain projects"
-13.313s: "EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"
-13.313s: "Got response from /Users/user/.local/bin/ghc-mod browse,-d,--,Prelude",{"stdout":"","stderr":"EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"}
-13.313s: "Prelude updated"
-13.312s: "EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"
-13.312s: "Got response from /Users/user/.local/bin/ghc-mod browse,-d,--,ReadUtil",{"stdout":"","stderr":"EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"}
-13.312s: "ReadUtil updated"
-1.925s: "Main created"
-1.925s: "Main updating"
-1.924s: "ReadUtil created"
-1.924s: "ReadUtil updating"
-1.924s: "Text.CSV created"
-1.924s: "Text.CSV updating"
-1.924s: "Data.Either created"
-1.924s: "Data.Either updating"
-1.924s: "Data.List created"
-1.924s: "Data.List updating"
-1.924s: "Prelude created"
-1.924s: "Prelude updating"
-1.923s: "Main buffer is set"
-1.923s: "ReadUtil moduleName mismatch: Main != ReadUtil"
-1.923s: "ReadUtil buffer is set"
-1.923s: "ReadUtil moduleName mismatch: Main != ReadUtil"
-1.923s: "Text.CSV moduleName mismatch: Main != Text.CSV"
-1.922s: "Text.CSV moduleName mismatch: ReadUtil != Text.CSV"
-1.922s: "Text.CSV moduleName mismatch: Main != Text.CSV"
-1.922s: "Data.Either moduleName mismatch: Main != Data.Either"
-1.922s: "Data.Either moduleName mismatch: ReadUtil != Data.Either"
-1.922s: "Data.Either moduleName mismatch: Main != Data.Either"
-1.922s: "Data.List moduleName mismatch: Main != Data.List"
-1.922s: "Data.List moduleName mismatch: ReadUtil != Data.List"
-1.922s: "Data.List moduleName mismatch: Main != Data.List"
-1.922s: "Prelude moduleName mismatch: Main != Prelude"
-1.922s: "Prelude moduleName mismatch: ReadUtil != Prelude"
-1.922s: "Prelude moduleName mismatch: Main != Prelude"
-1.868s: "Running /Users/user/.local/bin/ghc-mod browse,-d,--,Main with opts = ",{"cwd":"/Users/user/Haskell/data-csv","env":{"ATOM_HOME":"/Users/user/.atom","NODE_PATH":"/private/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/AppTranslocation/E10AD689-0395-4172-AD7B-DF155A538742/d/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","TMPDIR":"/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/user","SHELL":"/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.ic1R1QYrtc/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.u9Y4caIliy/Listeners","PATH":"/Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin:/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z","LOGNAME":"user","DISPLAY":"/private/tmp/com.apple.launchd.Cprz302GeR/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"user","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","ZSH":"/Users/user/.oh-my-zsh","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","WORKON_HOME":"/Users/user/.virtualenvs","PROJECT_HOME":"/Users/user/Devel","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","_VIRTUALENVWRAPPER_API":" mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv","_":"/usr/bin/env","LC_CTYPE":""},"encoding":"utf-8","maxBuffer":null}
-1.859s: "Running /Users/user/.local/bin/ghc-mod browse,-d,--,ReadUtil with opts = ",{"cwd":"/Users/user/Haskell/data-csv","env":{"ATOM_HOME":"/Users/user/.atom","NODE_PATH":"/private/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/AppTranslocation/E10AD689-0395-4172-AD7B-DF155A538742/d/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","TMPDIR":"/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/user","SHELL":"/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.ic1R1QYrtc/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.u9Y4caIliy/Listeners","PATH":"/Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin:/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z","LOGNAME":"user","DISPLAY":"/private/tmp/com.apple.launchd.Cprz302GeR/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"user","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","ZSH":"/Users/user/.oh-my-zsh","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","WORKON_HOME":"/Users/user/.virtualenvs","PROJECT_HOME":"/Users/user/Devel","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","_VIRTUALENVWRAPPER_API":" mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv","_":"/usr/bin/env","LC_CTYPE":""},"encoding":"utf-8","maxBuffer":null}
-1.651s: "EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"
-1.651s: "Got response from /Users/user/.local/bin/ghc-mod browse,-d,--,Main",{"stdout":"","stderr":"EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"}
-1.65s: "Main updated"
-1.65s: "EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"
-1.65s: "Got response from /Users/user/.local/bin/ghc-mod browse,-d,--,ReadUtil",{"stdout":"","stderr":"EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"}
-1.65s: "ReadUtil updated"
-1.65s: "Running /Users/user/.local/bin/ghc-mod browse,-d,--,Text.CSV with opts = ",{"cwd":"/Users/user/Haskell/data-csv","env":{"ATOM_HOME":"/Users/user/.atom","NODE_PATH":"/private/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/AppTranslocation/E10AD689-0395-4172-AD7B-DF155A538742/d/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","TMPDIR":"/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/user","SHELL":"/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.ic1R1QYrtc/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.u9Y4caIliy/Listeners","PATH":"/Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin:/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z","LOGNAME":"user","DISPLAY":"/private/tmp/com.apple.launchd.Cprz302GeR/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"user","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","ZSH":"/Users/user/.oh-my-zsh","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","WORKON_HOME":"/Users/user/.virtualenvs","PROJECT_HOME":"/Users/user/Devel","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","_VIRTUALENVWRAPPER_API":" mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv","_":"/usr/bin/env","LC_CTYPE":""},"encoding":"utf-8","maxBuffer":null}
-1.64s: "Running /Users/user/.local/bin/ghc-mod browse,-d,--,Data.Either with opts = ",{"cwd":"/Users/user/Haskell/data-csv","env":{"ATOM_HOME":"/Users/user/.atom","NODE_PATH":"/private/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/AppTranslocation/E10AD689-0395-4172-AD7B-DF155A538742/d/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","TMPDIR":"/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/user","SHELL":"/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.ic1R1QYrtc/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.u9Y4caIliy/Listeners","PATH":"/Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin:/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z","LOGNAME":"user","DISPLAY":"/private/tmp/com.apple.launchd.Cprz302GeR/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"user","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","ZSH":"/Users/user/.oh-my-zsh","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","WORKON_HOME":"/Users/user/.virtualenvs","PROJECT_HOME":"/Users/user/Devel","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","_VIRTUALENVWRAPPER_API":" mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv","_":"/usr/bin/env","LC_CTYPE":""},"encoding":"utf-8","maxBuffer":null}
-1.46s: "EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"
-1.46s: "Got response from /Users/user/.local/bin/ghc-mod browse,-d,--,Text.CSV",{"stdout":"","stderr":"EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"}
-1.46s: "Text.CSV updated"
-1.46s: "EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"
-1.46s: "Got response from /Users/user/.local/bin/ghc-mod browse,-d,--,Data.Either",{"stdout":"","stderr":"EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"}
-1.459s: "Data.Either updated"
-1.459s: "Running /Users/user/.local/bin/ghc-mod browse,-d,--,Data.List with opts = ",{"cwd":"/Users/user/Haskell/data-csv","env":{"ATOM_HOME":"/Users/user/.atom","NODE_PATH":"/private/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/AppTranslocation/E10AD689-0395-4172-AD7B-DF155A538742/d/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","TMPDIR":"/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/user","SHELL":"/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.ic1R1QYrtc/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.u9Y4caIliy/Listeners","PATH":"/Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin:/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z","LOGNAME":"user","DISPLAY":"/private/tmp/com.apple.launchd.Cprz302GeR/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"user","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","ZSH":"/Users/user/.oh-my-zsh","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","WORKON_HOME":"/Users/user/.virtualenvs","PROJECT_HOME":"/Users/user/Devel","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","_VIRTUALENVWRAPPER_API":" mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv","_":"/usr/bin/env","LC_CTYPE":""},"encoding":"utf-8","maxBuffer":null}
-1.453s: "Running /Users/user/.local/bin/ghc-mod browse,-d,--,Prelude with opts = ",{"cwd":"/Users/user/Haskell/data-csv","env":{"ATOM_HOME":"/Users/user/.atom","NODE_PATH":"/private/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/AppTranslocation/E10AD689-0395-4172-AD7B-DF155A538742/d/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","TMPDIR":"/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/user","SHELL":"/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.ic1R1QYrtc/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.u9Y4caIliy/Listeners","PATH":"/Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin:/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z","LOGNAME":"user","DISPLAY":"/private/tmp/com.apple.launchd.Cprz302GeR/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"user","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","ZSH":"/Users/user/.oh-my-zsh","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","WORKON_HOME":"/Users/user/.virtualenvs","PROJECT_HOME":"/Users/user/Devel","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","_VIRTUALENVWRAPPER_API":" mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv","_":"/usr/bin/env","LC_CTYPE":""},"encoding":"utf-8","maxBuffer":null}
-1.275s: "EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"
-1.275s: "Got response from /Users/user/.local/bin/ghc-mod browse,-d,--,Data.List",{"stdout":"","stderr":"EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"}
-1.275s: "Data.List updated"
-1.275s: "EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"
-1.274s: "Got response from /Users/user/.local/bin/ghc-mod browse,-d,--,Prelude",{"stdout":"","stderr":"EXCEPTION: browse:\n           Could not find $libexecdir/cabal-helper-wrapper\n           \n           If you are a developer set the environment variable\n           `cabal_helper_libexecdir' to override $libexecdir[1]. The following will\n           work in the cabal-helper source tree:\n           \n               $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper\n           \n           [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec\n           \n           If you don't know what I'm talking about something went wrong with your\n           installation. Please report this problem here:\n           \n               https://github.com/DanielG/cabal-helper/issues\n"}
-1.274s: "Prelude updated"
-0.171s: "Trying to run ghc-modi in /Users/user/Haskell/data-csv"
-0.17s: "Checking for ghc-modi in /Users/user/Haskell/data-csv"
-0.17s: "Spawning new ghc-modi instance for /Users/user/Haskell/data-csv with",{"cwd":"/Users/user/Haskell/data-csv","env":{"ATOM_HOME":"/Users/user/.atom","NODE_PATH":"/private/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/AppTranslocation/E10AD689-0395-4172-AD7B-DF155A538742/d/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","TMPDIR":"/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/user","SHELL":"/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.ic1R1QYrtc/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.u9Y4caIliy/Listeners","PATH":"/Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin:/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z","LOGNAME":"user","DISPLAY":"/private/tmp/com.apple.launchd.Cprz302GeR/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"user","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","ZSH":"/Users/user/.oh-my-zsh","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","WORKON_HOME":"/Users/user/.virtualenvs","PROJECT_HOME":"/Users/user/Devel","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","_VIRTUALENVWRAPPER_API":" mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv","_":"/usr/bin/env","LC_CTYPE":""},"encoding":"utf-8","maxBuffer":null}
-0.17s: "Spawning new ghc-modi instance for /Users/user/Haskell/data-csv with options = ",{"cwd":"/Users/user/Haskell/data-csv","env":{"ATOM_HOME":"/Users/user/.atom","NODE_PATH":"/private/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/AppTranslocation/E10AD689-0395-4172-AD7B-DF155A538742/d/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","TMPDIR":"/var/folders/m9/rdqr_hkn1yzchlnkm8dsmwdr0000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/user","SHELL":"/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.ic1R1QYrtc/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.u9Y4caIliy/Listeners","PATH":"/Users/user/Haskell/data-csv/.stack-work/install/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/snapshots/x86_64-osx/lts-9.1/8.0.2/bin:/Users/user/.stack/programs/x86_64-osx/ghc-8.0.2/bin:/Users/user/.local/bin:/usr/local/bin:/Users/user/.stack/programs/x86_64-osx:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/user/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z","LOGNAME":"user","DISPLAY":"/private/tmp/com.apple.launchd.Cprz302GeR/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"user","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","ZSH":"/Users/user/.oh-my-zsh","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","WORKON_HOME":"/Users/user/.virtualenvs","PROJECT_HOME":"/Users/user/Devel","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","_VIRTUALENVWRAPPER_API":" mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv","_":"/usr/bin/env","LC_CTYPE":""},"encoding":"utf-8","maxBuffer":null}
-0.161s: "Started interactive action block in /Users/user/Haskell/data-csv"
-0.16s: "Running ghc-modi command type","/Users/user/Haskell/data-csv/app/Main.hs","--",38,54
-0.005s: "ghc-modi said: ghc-mod: Could not find $libexecdir/cabal-helper-wrapper"
-0.005s: "ghc-modi said: "
-0.005s: "ghc-modi said: If you are a developer set the environment variable"
-0.004s: "ghc-modi said: `cabal_helper_libexecdir' to override $libexecdir[1]. The following will"
-0.004s: "ghc-modi said: work in the cabal-helper source tree:"
-0.004s: "ghc-modi said: "
-0.004s: "ghc-modi said:     $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper"
-0.004s: "ghc-modi said: "
-0.004s: "ghc-modi said: [1]: /Users/user/.stack/snapshots/x86_64-osx/lts-6.14/7.10.3/libexec"
-0.004s: "ghc-modi said: "
-0.004s: "ghc-modi said: If you don't know what I'm talking about something went wrong with your"
-0.004s: "ghc-modi said: installation. Please report this problem here:"
-0.004s: "ghc-modi said: "
-0.004s: "ghc-modi said:     https://github.com/DanielG/cabal-helper/issues"
0s: {"name":"ghc-modi crashed"}

Any help will be appreciated. I've been strugling with this for several weeks

lierdakil commented 6 years ago

@Miguelme, sorry about late response, I was busy with other stuff. There's your immediate problem:

-13.341s: "GHC version in your Stack '8.0.2' doesn't match with GHC version used to build ghc-mod '7.10.3'. This can lead to problems when using Stack projects"
-13.34s: "GHC version in your PATH '8.0.2' doesn't match with GHC version used to build ghc-mod '7.10.3'. This can lead to problems when using Cabal or Plain projects"

You seem to be using Stack. Try running stack build ghc-mod in the root of your project to build the correct ghc-mod executable for your compiler. Also you seem to have ghc-mod path set to /Users/user/.local/bin/ghc-mod, please reset it to default ghc-mod, otherwise it wouldn't be able to find snapshot-specific executable.