{"action":"created","issue":{"url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/285","repository_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce","labels_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/285/labels{/name}","comments_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/285/comments","events_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/285/events","html_url":"https://github.com/carymrobbins/intellij-haskforce/issues/285","id":163614233,"number":285,"title":"Unable to parse problems from ghc-modi: cabal: Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with Cabal.","user":{"login":"runeksvendsen","id":1069247,"avatar_url":"https://avatars.githubusercontent.com/u/1069247?v=3","gravatar_id":"","url":"https://api.github.com/users/runeksvendsen","html_url":"https://github.com/runeksvendsen","followers_url":"https://api.github.com/users/runeksvendsen/followers","following_url":"https://api.github.com/users/runeksvendsen/following{/other_user}","gists_url":"https://api.github.com/users/runeksvendsen/gists{/gist_id}","starred_url":"https://api.github.com/users/runeksvendsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runeksvendsen/subscriptions","organizations_url":"https://api.github.com/users/runeksvendsen/orgs","repos_url":"https://api.github.com/users/runeksvendsen/repos","events_url":"https://api.github.com/users/runeksvendsen/events{/privacy}","received_events_url":"https://api.github.com/users/runeksvendsen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/labels/ghc-mod","name":"ghc-mod","color":"5319e7"},{"url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/labels/stack","name":"stack","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-07-04T06:57:39Z","updated_at":"2016-07-31T22:44:45Z","closed_at":null,"body":"Hello\r\n\r\nI'm experiencing the following error in IntelliJ 2016.1.3 (Build #IU-145.1617) on OSX, with the newest HaskForce (0.3-beta.35), ghc-mod version 5.5.0.0, stack 1.1.2 and GHC 7.10.3:\r\n\r\n```\r\nUsing working directory: /Users/rune/IdeaProjects/blockchain-restful-address-index\r\nStarting ghc-modi process: /Users/rune/.local/bin/stack exec -- /Users/rune/.stack/snapshots/x86_64-osx/lts-6.4/7.10.3/bin/ghc-mod legacy-interactive\r\ncheck /Users/rune/IdeaProjects/blockchain-restful-address-index/src/Main.hs\r\ncabal: Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with\r\nCabal. Use the flag --package-db to specify a package database (it can be used\r\nmultiple times).\r\nghc-mod: readCreateProcess: cabal \"configure\" \"--with-ghc=ghc\" \"--flags\" \"\" (exit 1): failed\r\n\r\nUnable to parse problems from ghc-modi: cabal: Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with\r\nCabal. Use the flag --package-db to specify a package database (it can be used\r\nmultiple times).\r\nghc-mod: readCreateProcess: cabal \"configure\" \"--with-ghc=ghc\" \"--flags\" \"\" (exit 1): failed\r\n```\r\n\r\nI really have no idea what's going on here, so please let me know if there is additional information I can provide that will help solve this. Or if you can point me in a direction, maybe I can solve it myself.\r\n\r\nThe project files are available here: https://github.com/runeksvendsen/blockchain-restful-address-index (the `.idea` folder is there, too, in case it's relevant)."},"comment":{"url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/comments/236461475","html_url":"https://github.com/carymrobbins/intellij-haskforce/issues/285#issuecomment-236461475","issue_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/285","id":236461475,"user":{"login":"DanielG","id":199218,"avatar_url":"https://avatars.githubusercontent.com/u/199218?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielG","html_url":"https://github.com/DanielG","followers_url":"https://api.github.com/users/DanielG/followers","following_url":"https://api.github.com/users/DanielG/following{/other_user}","gists_url":"https://api.github.com/users/DanielG/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielG/subscriptions","organizations_url":"https://api.github.com/users/DanielG/orgs","repos_url":"https://api.github.com/users/DanielG/repos","events_url":"https://api.github.com/users/DanielG/events{/privacy}","received_events_url":"https://api.github.com/users/DanielG/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T22:44:45Z","updated_at":"2016-07-31T22:44:45Z","body":"Quoting from the output above: \r\n> /Users/rune/.local/bin/stack exec -- /Users/rune/.stack/snapshots/x86_64-osx/lts-6.4/7.10.3/bin/ghc-mod legacy-interactive check /Users/rune/IdeaProjects/blockchain-restful-address-index/src/Main.hs\r\n\r\n`stack exec` sets the GHC_PACKAGE_PATH envvar and cabal-install added this error around 1.24 (IIRC). This has been popping up all over the place in the last few months.\r\n\r\nThe only thing that seems plausible here since `dist/` is already gone is `stack` not being in ghc-mod's `PATH`, in that case it will fall through to using Cabal.\r\n\r\nIn the upcoming 5.6 release I have reworked the project detection code a bit. ghc-mod now takes various environment variables set by Stack as a very strong hint to use it instead of cabal so that new version should complain loudly about this case. ([Package candidate](https://hackage.haskell.org/package/ghc-mod-5.6.0.0/candidate), Install using `cabal install https://hackage.haskell.org/package/ghc-mod-5.6.0.0/candidate/ghc-mod-5.6.0.0.tar.gz`)\r\n"}}
{"actor":{"display_login":"DanielG"}}