{"action":"created","issue":{"url":"https://api.github.com/repos/atom-haskell/haskell-ghc-mod/issues/86","repository_url":"https://api.github.com/repos/atom-haskell/haskell-ghc-mod","labels_url":"https://api.github.com/repos/atom-haskell/haskell-ghc-mod/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/atom-haskell/haskell-ghc-mod/issues/86/comments","events_url":"https://api.github.com/repos/atom-haskell/haskell-ghc-mod/issues/86/events","html_url":"https://github.com/atom-haskell/haskell-ghc-mod/issues/86","id":125644063,"number":86,"title":"Haskell-ghc-mod: ghc-mod command check failed with error code 1","user":{"login":"aarondl","id":699706,"avatar_url":"https://avatars.githubusercontent.com/u/699706?v=3","gravatar_id":"","url":"https://api.github.com/users/aarondl","html_url":"https://github.com/aarondl","followers_url":"https://api.github.com/users/aarondl/followers","following_url":"https://api.github.com/users/aarondl/following{/other_user}","gists_url":"https://api.github.com/users/aarondl/gists{/gist_id}","starred_url":"https://api.github.com/users/aarondl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aarondl/subscriptions","organizations_url":"https://api.github.com/users/aarondl/orgs","repos_url":"https://api.github.com/users/aarondl/repos","events_url":"https://api.github.com/users/aarondl/events{/privacy}","received_events_url":"https://api.github.com/users/aarondl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-01-08T16:29:06Z","updated_at":"2016-03-18T14:44:00Z","closed_at":"2016-01-09T12:49:18Z","body":"1. Open any haskell file in any project (happens much more frequently with stack projects for whatever reason)\r\n\r\n**Atom Version**: 1.3.2\r\n**System**: Microsoft Windows 10 Home\r\n**Thrown From**: [haskell-ghc-mod](https://github.com/atom-haskell/haskell-ghc-mod) package, v1.5.4\r\n\r\n\r\n### Stack Trace\r\n\r\nHaskell-ghc-mod: ghc-mod command check failed with error code 1\r\n\r\n```\r\nAt caps: {\"version\":[5,4,0,0],\"legacyInteractive\":true,\"fileMap\":true,\"rootExec\":true,\"quoteArgs\":false}\r\nURI: C:\\Users\\Aaron\\Documents\\fnq\\src\\Config.hs\r\nArgs: \r\nmessage: Setting codepage to UTF-8 (65001) to ensure correct output from GHC\r\n\r\nPattern match failure in do expression at Language\\Haskell\\GhcMod\\Stack.hs:41:3-10\r\n\r\nlog:\r\n-0.253s: getProcessOptions(C:\\Users\\Aaron\\Documents\\fnq)\r\n-0.253s: PATH = C:\\Users\\Aaron\\AppData\\Roaming\\Cabal\\bin\\;C:\\Users\\Aaron\\AppData\\Local\\Programs\\minghc-7.10.2-x86_64\\ghc-7.10.2\\bin\\;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Windows Live\\Shared;C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files (x86)\\Go\\bin;C:\\Program Files (x86)\\Skype\\Phone\\;C:\\Users\\Aaron\\AppData\\Local\\Programs\\minghc-7.10.2-x86_64\\switch;C:\\Users\\Aaron\\AppData\\Local\\Programs\\minghc-7.10.2-x86_64\\git-2.4.5.1\\cmd;C:\\Users\\Aaron\\AppData\\Local\\Programs\\minghc-7.10.2-x86_64\\git-2.4.5.1\\usr\\bin;C:\\Users\\Aaron\\AppData\\Local\\Programs\\minghc-7.10.2-x86_64\\ghc-7.10.2\\mingw\\bin;C:\\Users\\Aaron\\AppData\\Local\\Programs\\minghc-7.10.2-x86_64\\ghc-7.10.2\\bin;C:\\Users\\Aaron\\AppData\\Local\\Programs\\minghc-7.10.2-x86_64\\bin;C:\\Users\\Aaron\\AppData\\Roaming\\cabal\\bin;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Windows Live\\Shared;C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files (x86)\\Go\\bin;C:\\Program Files (x86)\\Skype\\Phone\\;C:\\Users\\Aaron\\Documents\\Go\\bin;C:\\Program Files\\Python 3.4.2\\;C:\\Users\\Aaron\\AppData\\Local\\atom\\bin\r\n-0.243s: running C:\\Users\\Aaron\\AppData\\Roaming\\Cabal\\bin\\ghc-mod check,C:\\Users\\Aaron\\Documents\\fnq\\src\\Config.hs with options.cwd = C:\\Users\\Aaron\\Documents\\fnq,options.env = [object Object],options.encoding = utf-8\r\n-0.237s: getProcessOptions(C:\\Users\\Aaron\\Documents\\fnq)\r\n-0.236s: PATH = C:\\Users\\Aaron\\AppData\\Roaming\\Cabal\\bin\\;C:\\Users\\Aaron\\AppData\\Local\\Programs\\minghc-7.10.2-x86_64\\ghc-7.10.2\\bin\\;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Windows Live\\Shared;C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files (x86)\\Go\\bin;C:\\Program Files (x86)\\Skype\\Phone\\;C:\\Users\\Aaron\\AppData\\Local\\Programs\\minghc-7.10.2-x86_64\\switch;C:\\Users\\Aaron\\AppData\\Local\\Programs\\minghc-7.10.2-x86_64\\git-2.4.5.1\\cmd;C:\\Users\\Aaron\\AppData\\Local\\Programs\\minghc-7.10.2-x86_64\\git-2.4.5.1\\usr\\bin;C:\\Users\\Aaron\\AppData\\Local\\Programs\\minghc-7.10.2-x86_64\\ghc-7.10.2\\mingw\\bin;C:\\Users\\Aaron\\AppData\\Local\\Programs\\minghc-7.10.2-x86_64\\ghc-7.10.2\\bin;C:\\Users\\Aaron\\AppData\\Local\\Programs\\minghc-7.10.2-x86_64\\bin;C:\\Users\\Aaron\\AppData\\Roaming\\cabal\\bin;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Windows Live\\Shared;C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files (x86)\\Go\\bin;C:\\Program Files (x86)\\Skype\\Phone\\;C:\\Users\\Aaron\\Documents\\Go\\bin;C:\\Program Files\\Python 3.4.2\\;C:\\Users\\Aaron\\AppData\\Local\\atom\\bin\r\n-0.236s: running C:\\Users\\Aaron\\AppData\\Roaming\\Cabal\\bin\\ghc-mod lint,C:\\Users\\Aaron\\Documents\\fnq\\src\\Config.hs with options.cwd = C:\\Users\\Aaron\\Documents\\fnq,options.env = [object Object],options.encoding = utf-8\r\n-0.166s: ghc-mod said: Setting codepage to UTF-8 (65001) to ensure correct output from GHC\r\n-0.166s: ghc-mod said: Setting codepage to UTF-8 (65001) to ensure correct output from GHC\r\n0s: ghc-mod said: Pattern match failure in do expression at Language\\Haskell\\GhcMod\\Stack.hs:41:3-10\r\n0s: C:\\Users\\Aaron\\AppData\\Roaming\\Cabal\\bin\\ghc-mod ended with code 1\r\n0s: code 1: Setting codepage to UTF-8 (65001) to ensure correct output from GHC\r\n\r\nPattern match failure in do expression at Language\\Haskell\\GhcMod\\Stack.hs:41:3-10\r\n\r\n\r\ncode 1: Setting codepage to UTF-8 (65001) to ensure correct output from GHC\r\n\r\nPattern match failure in do expression at Language\\Haskell\\GhcMod\\Stack.hs:41:3-10\r\n\r\n    at module.exports.Util.mkError (file:///C:/Users/Aaron/.atom/packages/haskell-ghc-mod/lib/util.coffee:97:15)\r\n    at BufferedProcess.exit (file:///C:/Users/Aaron/.atom/packages/haskell-ghc-mod/lib/ghc-mod/ghc-modi-process-real.coffee:117:20)\r\n    at triggerExitCallback (C:\\Users\\Aaron\\AppData\\Local\\atom\\app-1.3.2\\resources\\app.asar\\src\\buffered-process.js:213:47)\r\n    at ChildProcess.<anonymous> (C:\\Users\\Aaron\\AppData\\Local\\atom\\app-1.3.2\\resources\\app.asar\\src\\buffered-process.js:235:18)\r\n    at emitTwo (events.js:87:13)\r\n    at ChildProcess.emit (events.js:172:7)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n  2x -4:50.7.0 vim-mode:move-right (atom-text-editor.editor.vim-mode.is-focused.normal-mode)\r\n     -4:50.4.0 vim-mode:activate-insert-mode (atom-text-editor.editor.vim-mode.is-focused.normal-mode)\r\n     -4:48.5.0 core:move-right (atom-text-editor.editor.vim-mode.is-focused.insert-mode)\r\n     -4:47.8.0 vim-mode:reset-normal-mode (atom-text-editor.editor.vim-mode.is-focused.insert-mode)\r\n     -4:47.6.0 core:save (atom-text-editor.editor.vim-mode.is-focused.normal-mode)\r\n     -4:33.1.0 vim-mode:move-left (atom-text-editor.editor.vim-mode.normal-mode.is-focused)\r\n     -4:33 vim-mode:activate-insert-mode (atom-text-editor.editor.vim-mode.normal-mode.is-focused)\r\n  2x -4:32.1.0 core:backspace (atom-text-editor.editor.vim-mode.is-focused.insert-mode)\r\n     -4:31.5.0 vim-mode:reset-normal-mode (atom-text-editor.editor.vim-mode.is-focused.insert-mode)\r\n     -4:31.4.0 core:save (atom-text-editor.editor.vim-mode.is-focused.normal-mode)\r\n     -4:00.1.0 vim-mode:delete (atom-text-editor.editor.vim-mode.normal-mode.is-focused)\r\n  6x -4:00.0 vim-mode:move-to-next-word (atom-text-editor.editor.vim-mode.is-focused.operator-pending-mode)\r\n     -3:58.7.0 vim-mode:activate-insert-mode (atom-text-editor.editor.vim-mode.is-focused.normal-mode)\r\n     -3:58.1.0 core:move-right (atom-text-editor.editor.vim-mode.is-focused.insert-mode)\r\n     -3:57.4.0 vim-mode:reset-normal-mode (atom-text-editor.editor.vim-mode.is-focused.insert-mode.autocomplete-active)\r\n  2x -3:57.3.0 core:save (atom-text-editor.editor.vim-mode.is-focused.normal-mode)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"disabledPackages\": [\r\n      \"ide-haskell-repl\",\r\n      \"autocomplete-haskell\"\r\n    ]\r\n  },\r\n  \"haskell-ghc-mod\": {\r\n    \"ghcModPath\": \"C:\\\\Users\\\\Aaron\\\\AppData\\\\Roaming\\\\Cabal\\\\bin\\\\ghc-mod\",\r\n    \"additionalPathDirectories\": [\r\n      \"C:\\\\Users\\\\Aaron\\\\AppData\\\\Roaming\\\\Cabal\\\\bin\\\\\",\r\n      \"C:\\\\Users\\\\Aaron\\\\AppData\\\\Local\\\\Programs\\\\minghc-7.10.2-x86_64\\\\ghc-7.10.2\\\\bin\\\\\"\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\nautocomplete-go, v0.1.1\r\nenvironment, v1.1.1\r\ngo-config, v0.3.1\r\ngo-plus, v3.5.2\r\nhaskell-ghc-mod, v1.5.4\r\nide-haskell, v1.3.9\r\nide-haskell-cabal, v1.0.0\r\nlanguage-haskell, v1.5.2\r\nvim-mode, v0.64.0\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/atom-haskell/haskell-ghc-mod/issues/comments/198391625","html_url":"https://github.com/atom-haskell/haskell-ghc-mod/issues/86#issuecomment-198391625","issue_url":"https://api.github.com/repos/atom-haskell/haskell-ghc-mod/issues/86","id":198391625,"user":{"login":"lierdakil","id":7275622,"avatar_url":"https://avatars.githubusercontent.com/u/7275622?v=3","gravatar_id":"","url":"https://api.github.com/users/lierdakil","html_url":"https://github.com/lierdakil","followers_url":"https://api.github.com/users/lierdakil/followers","following_url":"https://api.github.com/users/lierdakil/following{/other_user}","gists_url":"https://api.github.com/users/lierdakil/gists{/gist_id}","starred_url":"https://api.github.com/users/lierdakil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lierdakil/subscriptions","organizations_url":"https://api.github.com/users/lierdakil/orgs","repos_url":"https://api.github.com/users/lierdakil/repos","events_url":"https://api.github.com/users/lierdakil/events{/privacy}","received_events_url":"https://api.github.com/users/lierdakil/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T14:44:00Z","updated_at":"2016-03-18T14:44:00Z","body":"@mdibaiee, it can't be the same if everything configures. Please copy-paste Atom's error report here."}}