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

Bug with git repo as stack dependency #182

Closed michaelmesser closed 7 years ago

michaelmesser commented 7 years ago

One of the directories in .stack-work/downloaded and deleted and recreated very quickly. Running ghc-mod from the command line works fine. This issue only occurred after I added a dependency to stack that in downloaded directly from github.

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.11.1 Electron Version: 0.37.8 System: Mac OS X 10.12 Thrown From: haskell-ghc-mod package, v1.18.0

Stack Trace

Haskell-ghc-mod: ghc-mod command check failed with error Error

At caps: {"version":[5,6,0,0],"fileMap":true,"quoteArgs":true,"optparse":true,"typeConstraints":true,"browseParents":true,"interactiveCaseSplit":true}
URI: /Users/User/Code/haskell-project/src/Util.hs
Args: --
message: Command failed: ghc-mod check /Users/User/Code/haskell-project/src/Util.hs --
Running /Users/User/.nix-profile/bin/git clone --recursive git@github.com:ghcjs/ghcjs-dom /Users/User/Code/haskell-project/.stack-work/downloaded/QHRyRDVXBN0- in directory /Users/User/Code/haskell-project/.stack-work/downloaded/ exited with ExitFailure 128

fatal: destination path '/Users/User/Code/haskell-project/.stack-work/downloaded/QHRyRDVXBN0-' already exists and is not an empty directory.

Warning: readStack:
         Bootstrapping stack project environment failed: readCreateProcess: /Users/User/.nix-profile/bin/stack "path" (exit 1): failed
Warning: solver failed to find a solution:
Could not resolve dependencies:
trying: haskell-project-0.1.0.0 (user goal)
next goal: extra (dependency of haskell-project-0.1.0.0)
Dependency tree exhaustively searched.
Trying configure anyway.
cabal: Encountered missing dependencies:
extra -any,
ghcjs-dom-jsaddle >=0.5.0.0 && <0.6,
jsaddle -any,
lens -any,
megaparsec -any
ghc-mod: readCreateProcess: cabal "configure" "--with-ghc=ghc" "--flags" "" (exit 1): failed

log:
-21.889s: "Util did-save triggered"
-21.889s: "Util updating"
-21.888s: {}
-21.888s: "Running ghc-mod check,/Users/User/Code/haskell-project/src/Util.hs,-- with opts = ",{"cwd":"/Users/User/Code/haskell-project","env":{"ATOM_HOME":"/Users/User/.atom","NODE_PATH":"/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","\u001b]1337;RemoteHost":"User@User-MacBook-Pro.local\u0007\u001b]1337;CurrentDir=/\u0007\u001b]1337;ShellIntegrationVersion=2;shell=zsh\u0007TMPDIR=/var/folders/_m/1h8dd_fd3dx3qvtq87_c4q480000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/User","SHELL":"/Users/User/.nix-profile/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.6WAhbOThy0/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.zNvWWVGdbj/Listeners","PATH":"/Users/User/Code/haskell-project/.stack-work/install/x86_64-osx/lts-7.2/8.0.1/bin:/Users/User/.stack/snapshots/x86_64-osx/lts-7.2/8.0.1/bin:/nix/store/yqds1v9nq0c2p80i15fxkd87dhp4c50j-python3-3.5.2/bin/:/Users/User/.local/bin:/Users/User/.nix-profile/bin:/Users/User/.nix-profile/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/User/go/bin","LOGNAME":"User","DISPLAY":"/private/tmp/com.apple.launchd.6dQUe6QteB/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"User","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","LC_ALL":"en_US.UTF-8","LANG":"en_US.UTF-8","NIX_PATH":"nixpkgs=/Users/User/.nix-defexpr/channels/nixpkgs:nixpkgs=/Users/User/.nix-defexpr/channels/nixpkgs","SSL_CERT_FILE":"/Users/User/.nix-profile/etc/ssl/certs/ca-bundle.crt","ANTIGEN_DEFAULT_REPO_URL":"https://github.com/robbyrussell/oh-my-zsh.git","ADOTDIR":"/Users/User/.antigen","ZSH":"/Users/User/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh.git","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","HOMEBREW_CASK_OPTS":"--appdir=/Applications","ITERM_SHELL_INTEGRATION_INSTALLED":"Yes","GOPATH":"/Users/User/go","_":"/Users/User/.nix-profile/bin/env"},"encoding":"utf-8","maxBuffer":null}
-21.875s: {}
-21.875s: "Running ghc-mod lint,/Users/User/Code/haskell-project/src/Util.hs,-- with opts = ",{"cwd":"/Users/User/Code/haskell-project","env":{"ATOM_HOME":"/Users/User/.atom","NODE_PATH":"/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","\u001b]1337;RemoteHost":"User@User-MacBook-Pro.local\u0007\u001b]1337;CurrentDir=/\u0007\u001b]1337;ShellIntegrationVersion=2;shell=zsh\u0007TMPDIR=/var/folders/_m/1h8dd_fd3dx3qvtq87_c4q480000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/User","SHELL":"/Users/User/.nix-profile/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.6WAhbOThy0/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.zNvWWVGdbj/Listeners","PATH":"/Users/User/Code/haskell-project/.stack-work/install/x86_64-osx/lts-7.2/8.0.1/bin:/Users/User/.stack/snapshots/x86_64-osx/lts-7.2/8.0.1/bin:/nix/store/yqds1v9nq0c2p80i15fxkd87dhp4c50j-python3-3.5.2/bin/:/Users/User/.local/bin:/Users/User/.nix-profile/bin:/Users/User/.nix-profile/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/User/go/bin","LOGNAME":"User","DISPLAY":"/private/tmp/com.apple.launchd.6dQUe6QteB/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"User","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","LC_ALL":"en_US.UTF-8","LANG":"en_US.UTF-8","NIX_PATH":"nixpkgs=/Users/User/.nix-defexpr/channels/nixpkgs:nixpkgs=/Users/User/.nix-defexpr/channels/nixpkgs","SSL_CERT_FILE":"/Users/User/.nix-profile/etc/ssl/certs/ca-bundle.crt","ANTIGEN_DEFAULT_REPO_URL":"https://github.com/robbyrussell/oh-my-zsh.git","ADOTDIR":"/Users/User/.antigen","ZSH":"/Users/User/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh.git","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","HOMEBREW_CASK_OPTS":"--appdir=/Applications","ITERM_SHELL_INTEGRATION_INSTALLED":"Yes","GOPATH":"/Users/User/go","_":"/Users/User/.nix-profile/bin/env"},"encoding":"utf-8","maxBuffer":null}
-21.867s: {}
-21.867s: "Running ghc-mod browse,-d,-p,--,Util with opts = ",{"cwd":"/Users/User/Code/haskell-project","env":{"ATOM_HOME":"/Users/User/.atom","NODE_PATH":"/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","\u001b]1337;RemoteHost":"User@User-MacBook-Pro.local\u0007\u001b]1337;CurrentDir=/\u0007\u001b]1337;ShellIntegrationVersion=2;shell=zsh\u0007TMPDIR=/var/folders/_m/1h8dd_fd3dx3qvtq87_c4q480000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/User","SHELL":"/Users/User/.nix-profile/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.6WAhbOThy0/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.zNvWWVGdbj/Listeners","PATH":"/Users/User/Code/haskell-project/.stack-work/install/x86_64-osx/lts-7.2/8.0.1/bin:/Users/User/.stack/snapshots/x86_64-osx/lts-7.2/8.0.1/bin:/nix/store/yqds1v9nq0c2p80i15fxkd87dhp4c50j-python3-3.5.2/bin/:/Users/User/.local/bin:/Users/User/.nix-profile/bin:/Users/User/.nix-profile/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/User/go/bin","LOGNAME":"User","DISPLAY":"/private/tmp/com.apple.launchd.6dQUe6QteB/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"User","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","LC_ALL":"en_US.UTF-8","LANG":"en_US.UTF-8","NIX_PATH":"nixpkgs=/Users/User/.nix-defexpr/channels/nixpkgs:nixpkgs=/Users/User/.nix-defexpr/channels/nixpkgs","SSL_CERT_FILE":"/Users/User/.nix-profile/etc/ssl/certs/ca-bundle.crt","ANTIGEN_DEFAULT_REPO_URL":"https://github.com/robbyrussell/oh-my-zsh.git","ADOTDIR":"/Users/User/.antigen","ZSH":"/Users/User/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh.git","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","HOMEBREW_CASK_OPTS":"--appdir=/Applications","ITERM_SHELL_INTEGRATION_INSTALLED":"Yes","GOPATH":"/Users/User/go","_":"/Users/User/.nix-profile/bin/env"},"encoding":"utf-8","maxBuffer":null}
-21.334s: "Running /Users/User/.nix-profile/bin/git clone --recursive git@github.com:ghcjs/ghcjs-dom /Users/User/Code/haskell-project/.stack-work/downloaded/QHRyRDVXBN0- in directory /Users/User/Code/haskell-project/.stack-work/downloaded/ exited with ExitFailure 128\n\n\nfatal: destination path '/Users/User/Code/haskell-project/.stack-work/downloaded/QHRyRDVXBN0-' already exists and is not an empty directory.\n\nWarning: readStack:\n         Bootstrapping stack project environment failed: readCreateProcess: /Users/User/.nix-profile/bin/stack \"path\" (exit 1): failed\n"
-21.334s: "Got response from ghc-mod lint,/Users/User/Code/haskell-project/src/Util.hs,--",{"stdout":"","stderr":"Running /Users/User/.nix-profile/bin/git clone --recursive git@github.com:ghcjs/ghcjs-dom /Users/User/Code/haskell-project/.stack-work/downloaded/QHRyRDVXBN0- in directory /Users/User/Code/haskell-project/.stack-work/downloaded/ exited with ExitFailure 128\n\n\nfatal: destination path '/Users/User/Code/haskell-project/.stack-work/downloaded/QHRyRDVXBN0-' already exists and is not an empty directory.\n\nWarning: readStack:\n         Bootstrapping stack project environment failed: readCreateProcess: /Users/User/.nix-profile/bin/stack \"path\" (exit 1): failed\n"}
-18.897s: "Running /Users/User/.nix-profile/bin/git clone --recursive git@github.com:ghcjs/ghcjs-dom /Users/User/Code/haskell-project/.stack-work/downloaded/QHRyRDVXBN0- in directory /Users/User/Code/haskell-project/.stack-work/downloaded/ exited with ExitFailure 128\n\n\nfatal: destination path '/Users/User/Code/haskell-project/.stack-work/downloaded/QHRyRDVXBN0-' already exists and is not an empty directory.\n\nWarning: readStack:\n         Bootstrapping stack project environment failed: readCreateProcess: /Users/User/.nix-profile/bin/stack \"path\" (exit 1): failed\nWarning: solver failed to find a solution:\nCould not resolve dependencies:\ntrying: haskell-project-0.1.0.0 (user goal)\nnext goal: extra (dependency of haskell-project-0.1.0.0)\nDependency tree exhaustively searched.\nTrying configure anyway.\ncabal: Encountered missing dependencies:\nextra -any,\nghcjs-dom-jsaddle >=0.5.0.0 && <0.6,\njsaddle -any,\nlens -any,\nmegaparsec -any\nWarning: solver failed to find a solution:\nCould not resolve dependencies:\ntrying: haskell-project-0.1.0.0 (user goal)\nnext goal: extra (dependency of haskell-project-0.1.0.0)\nDependency tree exhaustively searched.\nTrying configure anyway.\ncabal: Encountered missing dependencies:\nextra -any,\nghcjs-dom-jsaddle >=0.5.0.0 && <0.6,\njsaddle -any,\nlens -any,\nmegaparsec -any\nEXCEPTION: browse:\n           readCreateProcess: cabal \"configure\" \"--with-ghc=ghc\" \"--flags\" \"\" (exit 1): failed\n"
-18.897s: "Got response from ghc-mod browse,-d,-p,--,Util",{"stdout":"","stderr":"Running /Users/User/.nix-profile/bin/git clone --recursive git@github.com:ghcjs/ghcjs-dom /Users/User/Code/haskell-project/.stack-work/downloaded/QHRyRDVXBN0- in directory /Users/User/Code/haskell-project/.stack-work/downloaded/ exited with ExitFailure 128\n\n\nfatal: destination path '/Users/User/Code/haskell-project/.stack-work/downloaded/QHRyRDVXBN0-' already exists and is not an empty directory.\n\nWarning: readStack:\n         Bootstrapping stack project environment failed: readCreateProcess: /Users/User/.nix-profile/bin/stack \"path\" (exit 1): failed\nWarning: solver failed to find a solution:\nCould not resolve dependencies:\ntrying: haskell-project-0.1.0.0 (user goal)\nnext goal: extra (dependency of haskell-project-0.1.0.0)\nDependency tree exhaustively searched.\nTrying configure anyway.\ncabal: Encountered missing dependencies:\nextra -any,\nghcjs-dom-jsaddle >=0.5.0.0 && <0.6,\njsaddle -any,\nlens -any,\nmegaparsec -any\nWarning: solver failed to find a solution:\nCould not resolve dependencies:\ntrying: haskell-project-0.1.0.0 (user goal)\nnext goal: extra (dependency of haskell-project-0.1.0.0)\nDependency tree exhaustively searched.\nTrying configure anyway.\ncabal: Encountered missing dependencies:\nextra -any,\nghcjs-dom-jsaddle >=0.5.0.0 && <0.6,\njsaddle -any,\nlens -any,\nmegaparsec -any\nEXCEPTION: browse:\n           readCreateProcess: cabal \"configure\" \"--with-ghc=ghc\" \"--flags\" \"\" (exit 1): failed\n"}
-18.897s: "Util updated"
-14.61s: "Got response from ghc-mod check,/Users/User/Code/haskell-project/src/Util.hs,--",{"stdout":"src/Util.hs:26:13:• Data constructor not in scope: Jut :: a -> Maybe a\u0000• Perhaps you meant one of these:\u0000    ‘Just’ (imported from Data.Maybe),\u0000    variable ‘Document.cut’ (imported from GHCJS.DOM.Document),\u0000    variable ‘Element.cut’ (imported from GHCJS.DOM.Element)\n","stderr":""}
-1.696s: "Util did-save triggered"
-1.696s: "Util updating"
-1.674s: {}
-1.674s: "Running ghc-mod check,/Users/User/Code/haskell-project/src/Util.hs,-- with opts = ",{"cwd":"/Users/User/Code/haskell-project","env":{"ATOM_HOME":"/Users/User/.atom","NODE_PATH":"/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","\u001b]1337;RemoteHost":"User@User-MacBook-Pro.local\u0007\u001b]1337;CurrentDir=/\u0007\u001b]1337;ShellIntegrationVersion=2;shell=zsh\u0007TMPDIR=/var/folders/_m/1h8dd_fd3dx3qvtq87_c4q480000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/User","SHELL":"/Users/User/.nix-profile/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.6WAhbOThy0/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.zNvWWVGdbj/Listeners","PATH":"/Users/User/Code/haskell-project/.stack-work/install/x86_64-osx/lts-7.2/8.0.1/bin:/Users/User/.stack/snapshots/x86_64-osx/lts-7.2/8.0.1/bin:/nix/store/yqds1v9nq0c2p80i15fxkd87dhp4c50j-python3-3.5.2/bin/:/Users/User/.local/bin:/Users/User/.nix-profile/bin:/Users/User/.nix-profile/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/User/go/bin","LOGNAME":"User","DISPLAY":"/private/tmp/com.apple.launchd.6dQUe6QteB/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"User","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","LC_ALL":"en_US.UTF-8","LANG":"en_US.UTF-8","NIX_PATH":"nixpkgs=/Users/User/.nix-defexpr/channels/nixpkgs:nixpkgs=/Users/User/.nix-defexpr/channels/nixpkgs","SSL_CERT_FILE":"/Users/User/.nix-profile/etc/ssl/certs/ca-bundle.crt","ANTIGEN_DEFAULT_REPO_URL":"https://github.com/robbyrussell/oh-my-zsh.git","ADOTDIR":"/Users/User/.antigen","ZSH":"/Users/User/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh.git","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","HOMEBREW_CASK_OPTS":"--appdir=/Applications","ITERM_SHELL_INTEGRATION_INSTALLED":"Yes","GOPATH":"/Users/User/go","_":"/Users/User/.nix-profile/bin/env"},"encoding":"utf-8","maxBuffer":null}
-1.665s: {}
-1.665s: "Running ghc-mod lint,/Users/User/Code/haskell-project/src/Util.hs,-- with opts = ",{"cwd":"/Users/User/Code/haskell-project","env":{"ATOM_HOME":"/Users/User/.atom","NODE_PATH":"/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","\u001b]1337;RemoteHost":"User@User-MacBook-Pro.local\u0007\u001b]1337;CurrentDir=/\u0007\u001b]1337;ShellIntegrationVersion=2;shell=zsh\u0007TMPDIR=/var/folders/_m/1h8dd_fd3dx3qvtq87_c4q480000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/User","SHELL":"/Users/User/.nix-profile/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.6WAhbOThy0/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.zNvWWVGdbj/Listeners","PATH":"/Users/User/Code/haskell-project/.stack-work/install/x86_64-osx/lts-7.2/8.0.1/bin:/Users/User/.stack/snapshots/x86_64-osx/lts-7.2/8.0.1/bin:/nix/store/yqds1v9nq0c2p80i15fxkd87dhp4c50j-python3-3.5.2/bin/:/Users/User/.local/bin:/Users/User/.nix-profile/bin:/Users/User/.nix-profile/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/User/go/bin","LOGNAME":"User","DISPLAY":"/private/tmp/com.apple.launchd.6dQUe6QteB/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"User","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","LC_ALL":"en_US.UTF-8","LANG":"en_US.UTF-8","NIX_PATH":"nixpkgs=/Users/User/.nix-defexpr/channels/nixpkgs:nixpkgs=/Users/User/.nix-defexpr/channels/nixpkgs","SSL_CERT_FILE":"/Users/User/.nix-profile/etc/ssl/certs/ca-bundle.crt","ANTIGEN_DEFAULT_REPO_URL":"https://github.com/robbyrussell/oh-my-zsh.git","ADOTDIR":"/Users/User/.antigen","ZSH":"/Users/User/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh.git","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","HOMEBREW_CASK_OPTS":"--appdir=/Applications","ITERM_SHELL_INTEGRATION_INSTALLED":"Yes","GOPATH":"/Users/User/go","_":"/Users/User/.nix-profile/bin/env"},"encoding":"utf-8","maxBuffer":null}
-1.66s: {}
-1.66s: "Running ghc-mod browse,-d,-p,--,Util with opts = ",{"cwd":"/Users/User/Code/haskell-project","env":{"ATOM_HOME":"/Users/User/.atom","NODE_PATH":"/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/exports","NODE_ENV":"production","\u001b]1337;RemoteHost":"User@User-MacBook-Pro.local\u0007\u001b]1337;CurrentDir=/\u0007\u001b]1337;ShellIntegrationVersion=2;shell=zsh\u0007TMPDIR=/var/folders/_m/1h8dd_fd3dx3qvtq87_c4q480000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","HOME":"/Users/User","SHELL":"/Users/User/.nix-profile/bin/zsh","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.6WAhbOThy0/Render","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.zNvWWVGdbj/Listeners","PATH":"/Users/User/Code/haskell-project/.stack-work/install/x86_64-osx/lts-7.2/8.0.1/bin:/Users/User/.stack/snapshots/x86_64-osx/lts-7.2/8.0.1/bin:/nix/store/yqds1v9nq0c2p80i15fxkd87dhp4c50j-python3-3.5.2/bin/:/Users/User/.local/bin:/Users/User/.nix-profile/bin:/Users/User/.nix-profile/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/User/go/bin","LOGNAME":"User","DISPLAY":"/private/tmp/com.apple.launchd.6dQUe6QteB/org.macosforge.xquartz:0","XPC_SERVICE_NAME":"0","USER":"User","XPC_FLAGS":"0x0","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","SHLVL":"0","PWD":"/","OLDPWD":"/","LC_ALL":"en_US.UTF-8","LANG":"en_US.UTF-8","NIX_PATH":"nixpkgs=/Users/User/.nix-defexpr/channels/nixpkgs:nixpkgs=/Users/User/.nix-defexpr/channels/nixpkgs","SSL_CERT_FILE":"/Users/User/.nix-profile/etc/ssl/certs/ca-bundle.crt","ANTIGEN_DEFAULT_REPO_URL":"https://github.com/robbyrussell/oh-my-zsh.git","ADOTDIR":"/Users/User/.antigen","ZSH":"/Users/User/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh.git","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","HOMEBREW_CASK_OPTS":"--appdir=/Applications","ITERM_SHELL_INTEGRATION_INSTALLED":"Yes","GOPATH":"/Users/User/go","_":"/Users/User/.nix-profile/bin/env"},"encoding":"utf-8","maxBuffer":null}
-0.002s: "Running /Users/User/.nix-profile/bin/git clone --recursive git@github.com:ghcjs/ghcjs-dom /Users/User/Code/haskell-project/.stack-work/downloaded/QHRyRDVXBN0- in directory /Users/User/Code/haskell-project/.stack-work/downloaded/ exited with ExitFailure 128\n\n\nfatal: destination path '/Users/User/Code/haskell-project/.stack-work/downloaded/QHRyRDVXBN0-' already exists and is not an empty directory.\n\nWarning: readStack:\n         Bootstrapping stack project environment failed: readCreateProcess: /Users/User/.nix-profile/bin/stack \"path\" (exit 1): failed\nWarning: solver failed to find a solution:\nCould not resolve dependencies:\ntrying: haskell-project-0.1.0.0 (user goal)\nnext goal: extra (dependency of haskell-project-0.1.0.0)\nDependency tree exhaustively searched.\nTrying configure anyway.\ncabal: Encountered missing dependencies:\nextra -any,\nghcjs-dom-jsaddle >=0.5.0.0 && <0.6,\njsaddle -any,\nlens -any,\nmegaparsec -any\nghc-mod: readCreateProcess: cabal \"configure\" \"--with-ghc=ghc\" \"--flags\" \"\" (exit 1): failed\n"
-0.002s: "Running ghc-mod check,/Users/User/Code/haskell-project/src/Util.hs,-- failed with ",{"killed":false,"code":1,"signal":null,"cmd":"ghc-mod check /Users/User/Code/haskell-project/src/Util.hs --"}
0s: {"killed":false,"code":1,"signal":null,"cmd":"ghc-mod check /Users/User/Code/haskell-project/src/Util.hs --"}

Error
    at /Users/User/.atom/packages/haskell-ghc-mod/lib/util.coffee:60:26
    at ChildProcess.exithandler (child_process.js:221:5)
    at emitTwo (events.js:100:13)
    at ChildProcess.emit (events.js:185:7)
    at maybeClose (internal/child_process.js:850:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)

Commands

     -2:12.3.0 vim-mode:activate-insert-mode (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -2:06.4.0 core:backspace (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
  2x -2:05.7.0 core:save (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
 11x -1:59.8.0 blur (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -1:46.2.0 core:backspace (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
     -1:45 core:save (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
  2x -1:35.4.0 blur (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
     -1:30.7.0 core:save (atom-text-editor.editor.vim-mode.insert-mode.is-focused.autocomplete-active)
     -1:18.7.0 blur (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
     -1:13.1.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
  3x -1:11.3.0 blur (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
     -0:22.3.0 core:backspace (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
     -0:22 core:save (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
  5x -0:20.4.0 blur (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
     -0:03.6.0 core:backspace (atom-text-editor.editor.vim-mode.insert-mode.is-focused.autocomplete-active)
     -0:01.8.0 core:save (atom-text-editor.editor.vim-mode.insert-mode.is-focused.autocomplete-active)

Config

{
  "core": {
    "customFileTypes": {
      "source.ini": [
        ".buckconfig",
        ".flowconfig"
      ],
      "source.json": [
        ".arcconfig",
        "BUCK.autodeps"
      ],
      "source.python": [
        "BUCK"
      ]
    },
    "disabledPackages": [
      "whitespace",
      "alignment",
      "atom-alignment",
      "ide-haskell-cabal",
      "ide-haskell-repl",
      "haskell-pointfree"
    ],
    "ignoredNames": [
      ".git",
      ".hg",
      ".svn",
      ".DS_Store",
      "._*",
      "Thumbs.db",
      ".live-archive"
    ],
    "projectHome": "/Users/User/Code",
    "telemetryConsent": "no",
    "themes": [
      "one-dark-ui",
      "monokai"
    ]
  },
  "haskell-ghc-mod": {}
}

Installed Packages

# User
.bin, vundefined (inactive)
advanced-new-file, v0.5.0 (inactive)
aligner, v0.22.2 (active)
atom-beautify, v0.29.13 (active)
atom-material-syntax, v0.4.6 (inactive)
atom-material-ui, v1.3.6 (inactive)
atom-ternjs, v0.15.0 (active)
atom-typescript, v10.1.9 (active)
autocomplete-haskell, v0.6.7 (active)
batman-syntax, v1.0.1 (inactive)
browser-plus, v0.0.76 (active)
build, v0.65.0 (active)
busy, v0.7.0 (active)
change-case, v0.6.3 (active)
color-picker, v2.2.2 (active)
editorconfig, v1.4.1 (active)
elm-format, v2.1.0 (active)
file-icons, v1.7.22 (active)
git-control, v0.8.2 (inactive)
git-plus, v5.18.0 (active)
haskell-ghc-mod, v1.18.0 (active)
haskell-pointfree, v0.1.3 (inactive)
Hydrogen, v0.14.0 (inactive)
ide-haskell, v1.8.1 (active)
ide-haskell-cabal, v1.6.4 (inactive)
ide-haskell-repl, v0.1.10 (inactive)
jshint, v1.8.6 (active)
language-elm, v1.5.0 (active)
language-haskell, v1.9.9 (active)
language-lisp, v0.2.0 (active)
linter, v1.11.18 (active)
linter-elm-make, v0.17.7 (active)
live-archive, v0.1.15 (active)
merge-conflicts, v1.4.4 (active)
minimap, v4.25.0 (active)
monokai, v0.18.0 (active)
navigate, v0.1.16 (active)
nucleus-dark-ui, v0.10.11 (inactive)
nuclide-diff-view, vundefined (active)
one-dark-ui, v1.6.2 (active)
pdf-view, v0.50.0 (active)
pigments, v0.37.0 (active)
save-session, vundefined (active)
ssh-config, v0.10.1 (active)
symbols-tree-view, v0.13.2 (active)
tabs-to-spaces, v1.0.2 (active)
terminal-plus, v0.14.5 (active)
travis-ci-status, v1.3.0 (active)
valign, v1.1.3 (inactive)
vim-mode, v0.65.1 (active)
vim-surround, v0.8.1 (active)
zentabs, v0.8.7 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.44.0 (inactive)
base16-tomorrow-dark-theme, v1.2.0 (inactive)
base16-tomorrow-light-theme, v1.2.0 (inactive)
one-dark-ui, v1.6.2 (active)
one-light-ui, v1.6.0 (inactive)
one-dark-syntax, v1.3.0 (inactive)
one-light-syntax, v1.3.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.7.0 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.2 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.1 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.42.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (active)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (active)
find-and-replace, v0.201.1 (inactive)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.59.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v1.0.0 (active)
notifications, v0.65.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.242.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.68.2 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.0 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.101.0 (active)
timecop, v0.33.2 (active)
tree-view, v0.209.3 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (active)
whitespace, v0.33.0 (inactive)
wrap-guide, v0.38.2 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.2 (active)
language-csharp, v0.12.1 (active)
language-css, v0.37.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.42.1 (active)
language-html, v0.45.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.23.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.2 (active)
language-less, v0.29.5 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.2 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.69.0 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.56.0 (active)
language-shellscript, v0.22.4 (active)
language-source, v0.9.0 (active)
language-sql, v0.23.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.9 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages
lierdakil commented 7 years ago

1) You may want to run stack build from command line when changing dependencies or stack.yaml. That's a bit awkward, I know. 2) ghcjs isn't really supported by ghc-mod (yet). So... 3) Is your stack.yaml even configured to use ghcjs? https://docs.haskellstack.org/en/stable/ghcjs/

michaelmesser commented 7 years ago

@lierdakil I am using GHCJS-DOM with GHC not GHCJS. I ran stack build which worked fine. I do not need this to work anymore since the dependency is on hackage now. I ran ghc-mod by hand on the files and it worked fine.

lierdakil commented 7 years ago

I am using GHCJS-DOM with GHC not GHCJS

Ah, ok. Sorry for my assumption.

Well, long story short, hgm runs several ghc-mod processes to increase overall responsiveness -- and it works fine on multi-core systems most of the time. However, there are some cases when it fails -- usually when ghc-mod decides to run stack build -- which is usually when there are dependencies missing. There's a fix in the works currently, but it will be some time before that's released (ghc-mod is the blocker here). Hgm's setting 'Low Memory System' forces single-threaded operation, which can help with this problem somewhat, but at the cost of considerably longer initialization times.

I'm going to close this for now, since there's a relevant issue open already.