Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

[package name] is unusable due to missing or recursive dependencies: #711

Closed
codygman opened this issue Jan 2, 2016 · 24 comments
Closed

Comments

@codygman
Copy link

codygman commented Jan 2, 2016

ghc-mod-haskell-mode-bug:master λ cd ~/source/unsorted/ghc-mod/
ghc-mod:master λ git log -n 1 --oneline 
4c95605 Split L.H.GM.Monad.Types module
ghc-mod:master λ cd ~/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug
ghc-mod-haskell-mode-bug:master λ 
ghc-mod-haskell-mode-bug:master λ ghc-mod --version 
ghc-mod version 5.4.0.0 compiled by GHC 7.10.2
ghc-mod-haskell-mode-bug:master λ stack --version
Version 1.0.0 x86_64
ghc-mod-haskell-mode-bug:master λ ghc-mod check Foundation.hs 
ghc-mod: <command line>: cannot satisfy -package-id aeson-0.10.0.0-a37a650f6e5d5ca2347967c8f8609dfd: 
    aeson-0.10.0.0-a37a650f6e5d5ca2347967c8f8609dfd is unusable due to missing or recursive dependencies:
      attoparsec-0.13.0.1-9f9155916734a226d3befd6aaf235548 base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d bytestring-0.10.6.0-c60f4c543b22c7f7293a06ae48820437 containers-0.5.6.2-e59c9b78d840fa743d4169d4bea15592 deepseq-1.4.1.1-614b63b36dd6e29d2b35afff57c25311 dlist-0.7.1.2-ff29ea897ce0546ab24638745f33b7b9 ghc-prim-0.4.0.0-6cdc86811872333585fa98756aa7c51e hashable-1.2.3.3-12072905a35fd9da4494c8223f10fb7b mtl-2.2.1-3af90341e75ee52dfc4e3143b4e5d219 scientific-0.3.4.4-d22d47c80d62cde1d38da81451fa0d7b syb-0.6-d154b8ffa473f7cfcfc32ca4d99f62f7 template-haskell-2.10.0.0-3c4cb52230f347282af9b2817f013181 text-1.2.2.0-daec687352505adca80a15e023cbae5c time-1.5.0.1-edbd1a50e7922b396ada189ab8e8523b transformers-0.4.2.0-81450cd8f86b36eaa8fa0cbaf6efc3a3 unordered-containers-0.2.5.1-7f0f7151629cffc6859004aa9b77320a vector-0.11.0.0-299aefb173ce5a731565d31f609a0cfd
    (use -v for more information)
ghc-mod-haskell-mode-bug:master λ 

repo with complete code

I thought maybe this was an issue with my stack install so I wiped out ~/.stack and the directories .stack-work hoping it would solve the issue, but no such luck.

@codygman
Copy link
Author

codygman commented Jan 2, 2016

Trying with the current release-5.5.0.0 branch.

@codygman
Copy link
Author

codygman commented Jan 2, 2016

Same error, though I'm wondering if I really had 5.5.0.0 checked out since the shell output looked like this:

ghc-mod:D:59193c7 λ git status 
HEAD detached at origin/release-5.5.0.0
nothing to commit, working directory clean
ghc-mod:D:59193c7 λ stack install 
ghc-mod-5.4.0.0: build
Preprocessing library ghc-mod-5.4.0.0...
[12 of 49] Compiling Language.Haskell.GhcMod.Output ( Language/Haskell/GhcMod/Output.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Output.o )
[13 of 49] Compiling Language.Haskell.GhcMod.Convert ( Language/Haskell/GhcMod/Convert.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Convert.o )
[16 of 49] Compiling Language.Haskell.GhcMod.Utils ( Language/Haskell/GhcMod/Utils.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Utils.o ) [Language.Haskell.GhcMod.Monad.Env changed]
[17 of 49] Compiling Language.Haskell.GhcMod.Stack ( Language/Haskell/GhcMod/Stack.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Stack.o ) [Language.Haskell.GhcMod.Monad.Out changed]
[20 of 49] Compiling Language.Haskell.GhcMod.Logger ( Language/Haskell/GhcMod/Logger.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Logger.o ) [Language.Haskell.GhcMod.Convert changed]
[21 of 49] Compiling Language.Haskell.GhcMod.LightGhc ( Language/Haskell/GhcMod/LightGhc.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/LightGhc.o )
[22 of 49] Compiling Language.Haskell.GhcMod.Logging ( Language/Haskell/GhcMod/Logging.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Logging.o ) [Language.Haskell.GhcMod.Monad.Env changed]
[23 of 49] Compiling Language.Haskell.GhcMod.Caching ( Language/Haskell/GhcMod/Caching.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Caching.o ) [Language.Haskell.GhcMod.Logging changed]
[24 of 49] Compiling Language.Haskell.GhcMod.PathsAndFiles ( Language/Haskell/GhcMod/PathsAndFiles.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/PathsAndFiles.o ) [Language.Haskell.GhcMod.Caching changed]
[25 of 49] Compiling Language.Haskell.GhcMod.CustomPackageDb ( Language/Haskell/GhcMod/CustomPackageDb.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/CustomPackageDb.o ) [Language.Haskell.GhcMod.Monad.Env changed]
[26 of 49] Compiling Language.Haskell.GhcMod.CabalHelper ( Language/Haskell/GhcMod/CabalHelper.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/CabalHelper.o ) [Language.Haskell.GhcMod.Caching changed]
[27 of 49] Compiling Language.Haskell.GhcMod.GhcPkg ( Language/Haskell/GhcMod/GhcPkg.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/GhcPkg.o ) [Language.Haskell.GhcMod.CabalHelper changed]
[28 of 49] Compiling Language.Haskell.GhcMod.World ( Language/Haskell/GhcMod/World.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/World.o ) [Language.Haskell.GhcMod.GhcPkg changed]
[29 of 49] Compiling Language.Haskell.GhcMod.HomeModuleGraph ( Language/Haskell/GhcMod/HomeModuleGraph.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/HomeModuleGraph.o ) [Language.Haskell.GhcMod.Logger changed]
[30 of 49] Compiling Language.Haskell.GhcMod.FileMapping ( Language/Haskell/GhcMod/FileMapping.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/FileMapping.o ) [Language.Haskell.GhcMod.HomeModuleGraph changed]
[31 of 49] Compiling Language.Haskell.GhcMod.Target ( Language/Haskell/GhcMod/Target.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Target.o ) [Language.Haskell.GhcMod.CabalHelper changed]
[32 of 49] Compiling Language.Haskell.GhcMod.Cradle ( Language/Haskell/GhcMod/Cradle.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Cradle.o ) [Language.Haskell.GhcMod.Logging changed]
[33 of 49] Compiling Language.Haskell.GhcMod.Monad ( Language/Haskell/GhcMod/Monad.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Monad.o ) [Language.Haskell.GhcMod.Cradle changed]
[34 of 49] Compiling Language.Haskell.GhcMod.FillSig ( Language/Haskell/GhcMod/FillSig.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/FillSig.o ) [Language.Haskell.GhcMod.Convert changed]
[35 of 49] Compiling Language.Haskell.GhcMod.Find ( Language/Haskell/GhcMod/Find.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Find.o ) [Language.Haskell.GhcMod.Convert changed]
[36 of 49] Compiling Language.Haskell.GhcMod.Flag ( Language/Haskell/GhcMod/Flag.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Flag.o ) [Language.Haskell.GhcMod.Convert changed]
[37 of 49] Compiling Language.Haskell.GhcMod.Info ( Language/Haskell/GhcMod/Info.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Info.o ) [Language.Haskell.GhcMod.Convert changed]
[38 of 49] Compiling Language.Haskell.GhcMod.Lang ( Language/Haskell/GhcMod/Lang.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Lang.o ) [Language.Haskell.GhcMod.Convert changed]
[39 of 49] Compiling Language.Haskell.GhcMod.Lint ( Language/Haskell/GhcMod/Lint.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Lint.o ) [Language.Haskell.GhcMod.Convert changed]
[40 of 49] Compiling Language.Haskell.GhcMod.Modules ( Language/Haskell/GhcMod/Modules.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Modules.o ) [Language.Haskell.GhcMod.Convert changed]
[41 of 49] Compiling Language.Haskell.GhcMod.PkgDoc ( Language/Haskell/GhcMod/PkgDoc.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/PkgDoc.o ) [Language.Haskell.GhcMod.GhcPkg changed]
[42 of 49] Compiling Language.Haskell.GhcMod.Test ( Language/Haskell/GhcMod/Test.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Test.o ) [Language.Haskell.GhcMod.Monad changed]
[43 of 49] Compiling Language.Haskell.GhcMod.Internal ( Language/Haskell/GhcMod/Internal.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Internal.o ) [Language.Haskell.GhcMod.CabalHelper changed]
[44 of 49] Compiling Language.Haskell.GhcMod.Debug ( Language/Haskell/GhcMod/Debug.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Debug.o ) [Language.Haskell.GhcMod.Cradle changed]
[45 of 49] Compiling Language.Haskell.GhcMod.Check ( Language/Haskell/GhcMod/Check.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Check.o ) [Language.Haskell.GhcMod.Logger changed]
[46 of 49] Compiling Language.Haskell.GhcMod.CaseSplit ( Language/Haskell/GhcMod/CaseSplit.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/CaseSplit.o ) [Language.Haskell.GhcMod.Convert changed]
[47 of 49] Compiling Language.Haskell.GhcMod.Browse ( Language/Haskell/GhcMod/Browse.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Browse.o ) [Language.Haskell.GhcMod.Convert changed]
[48 of 49] Compiling Language.Haskell.GhcMod.Boot ( Language/Haskell/GhcMod/Boot.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/Boot.o ) [Language.Haskell.GhcMod.Browse changed]
[49 of 49] Compiling Language.Haskell.GhcMod ( Language/Haskell/GhcMod.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod.o ) [Language.Haskell.GhcMod.Boot changed]
In-place registering ghc-mod-5.4.0.0...
Preprocessing executable 'ghc-mod' for ghc-mod-5.4.0.0...
[6 of 9] Compiling Misc             ( src/Misc.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/ghc-mod/ghc-mod-tmp/Misc.o ) [Language.Haskell.GhcMod changed]
[7 of 9] Compiling GHCMod.Options.ShellParse ( src/GHCMod/Options/ShellParse.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/ghc-mod/ghc-mod-tmp/GHCMod/Options/ShellParse.o )
[8 of 9] Compiling GHCMod.Options   ( src/GHCMod/Options.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/ghc-mod/ghc-mod-tmp/GHCMod/Options.o ) [GHCMod.Options.ShellParse changed]
[9 of 9] Compiling Main             ( src/GHCMod.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/ghc-mod/ghc-mod-tmp/Main.o ) [Language.Haskell.GhcMod changed]
Linking .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/ghc-mod/ghc-mod ...
Preprocessing executable 'ghc-modi' for ghc-mod-5.4.0.0...
Linking .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/ghc-modi/ghc-modi ...
Warning: module not listed in ghc-mod.cabal for 'ghc-mod' component (add to other-modules): Misc
Warning: module not listed in ghc-mod.cabal for 'ghc-modi' component (add to other-modules): System.Directory.ModTime
ghc-mod-5.4.0.0: copy/register
Installing library in
/home/cody/source/unsorted/ghc-mod/.stack-work/install/x86_64-linux/lts-3.1/7.10.2/lib/x86_64-linux-ghc-7.10.2/ghc-mod-5.4.0.0-4JCiE0FPh257uEMDkgfMfi
Installing executable(s) in
/home/cody/source/unsorted/ghc-mod/.stack-work/install/x86_64-linux/lts-3.1/7.10.2/bin
Registering ghc-mod-5.4.0.0...
Copying from /home/cody/source/unsorted/ghc-mod/.stack-work/install/x86_64-linux/lts-3.1/7.10.2/bin/ghc-mod to /home/cody/.local/bin/ghc-mod
Copying from /home/cody/source/unsorted/ghc-mod/.stack-work/install/x86_64-linux/lts-3.1/7.10.2/bin/ghc-modi to /home/cody/.local/bin/ghc-modi

Copied executables to /home/cody/.local/bin:
- ghc-modi
- ghc-mod
ghc-mod:D:59193c7 λ cd -
ghc-mod-haskell-mode-bug:master λ ls
Application.hs  Import.hs    app                             static
Foundation.hs   Model.hs     config                          templates
Handler         Settings     ghc-mod-haskell-mode-bug.cabal  test
Import          Settings.hs  stack.yaml                      
ghc-mod-haskell-mode-bug:master λ ghc-mod check Foundation.hs 
ghc-mod: <command line>: cannot satisfy -package-id aeson-0.10.0.0-a37a650f6e5d5ca2347967c8f8609dfd: 
    aeson-0.10.0.0-a37a650f6e5d5ca2347967c8f8609dfd is unusable due to missing or recursive dependencies:
      attoparsec-0.13.0.1-9f9155916734a226d3befd6aaf235548 base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d bytestring-0.10.6.0-c60f4c543b22c7f7293a06ae48820437 containers-0.5.6.2-e59c9b78d840fa743d4169d4bea15592 deepseq-1.4.1.1-614b63b36dd6e29d2b35afff57c25311 dlist-0.7.1.2-ff29ea897ce0546ab24638745f33b7b9 ghc-prim-0.4.0.0-6cdc86811872333585fa98756aa7c51e hashable-1.2.3.3-12072905a35fd9da4494c8223f10fb7b mtl-2.2.1-3af90341e75ee52dfc4e3143b4e5d219 scientific-0.3.4.4-d22d47c80d62cde1d38da81451fa0d7b syb-0.6-d154b8ffa473f7cfcfc32ca4d99f62f7 template-haskell-2.10.0.0-3c4cb52230f347282af9b2817f013181 text-1.2.2.0-daec687352505adca80a15e023cbae5c time-1.5.0.1-edbd1a50e7922b396ada189ab8e8523b transformers-0.4.2.0-81450cd8f86b36eaa8fa0cbaf6efc3a3 unordered-containers-0.2.5.1-7f0f7151629cffc6859004aa9b77320a vector-0.11.0.0-299aefb173ce5a731565d31f609a0cfd
    (use -v for more information)
ghc-mod-haskell-mode-bug:master λ 

@codygman
Copy link
Author

codygman commented Jan 2, 2016

More verbose output:

ghc-mod-haskell-mode-bug:master λ ghc-mod --verbose 7 check Foundation.hs 
DEBUG: reading cache: /home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/setup-config.ghc-mod.cabal-components
DEBUG: resolveEntrypoint:
       ["-i","-i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build","-i.","-iapp","-i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen","-I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen","-I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build","-optP-include","-optP.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen/cabal_macros.h"]
DEBUG: resolveEntrypoint:
       ["-i","-i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/ghc-mod-haskell-mode-bug/ghc-mod-haskell-mode-bug-tmp","-iapp","-i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen","-I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen","-I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/ghc-mod-haskell-mode-bug/ghc-mod-haskell-mode-bug-tmp","-optP-include","-optP.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen/cabal_macros.h"]
DEBUG: resolveEntrypoint: []
DEBUG: making sure autogen files exist
DEBUG: reading cache: .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/setup-config.ghc-mod.resolved-components
VOMIT: Initializing GHC session with following options: "-fbuilding-cabal-package" "-O" "-outputdir" ".stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build" "-odir" ".stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build" "-hidir" ".stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build" "-stubdir" ".stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build" "-i" "-i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build" "-i." "-iapp" "-i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen" "-I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen" "-I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build" "-optP-include" "-optP.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen/cabal_macros.h" "-hide-all-packages" "-no-user-package-db" "-package-db" "/home/cody/.stack/snapshots/x86_64-linux/nightly-2015-12-28/7.10.3/pkgdb" "-package-db" "/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/.stack-work/install/x86_64-linux/nightly-2015-12-28/7.10.3/pkgdb" "-package-id" "aeson-0.10.0.0-a37a650f6e5d5ca2347967c8f8609dfd" "-package-id" "base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d" "-package-id" "bytestring-0.10.6.0-c60f4c543b22c7f7293a06ae48820437" "-package-id" "case-insensitive-1.2.0.5-b70abcc291b422d8a51d5d3da314e550" "-package-id" "classy-prelude-0.12.5-de29b32b867b2af8688df145882cee41" "-package-id" "classy-prelude-conduit-0.12.5-5d36b896c4ce7d60b1cedb11042763d9" "-package-id" "classy-prelude-yesod-0.12.5-996994be12b85a5203fe715289106c0b" "-package-id" "conduit-1.2.6-ce8c558274d4e5410e912098683199cd" "-package-id" "containers-0.5.6.2-e59c9b78d840fa743d4169d4bea15592" "-package-id" "data-default-0.5.3-a34fab0e414a3e31b9dccb1774520fca" "-package-id" "directory-1.2.2.0-f8e14a9d121b76a00a0f669ee724a732" "-package-id" "fast-logger-2.4.1-a1bb01b100e42af4b13b416d0b0f6d8a" "-package-id" "file-embed-0.0.9-408c5739643af30060203ae65583ca8b" "-package-id" "hjsmin-0.1.5.1-3259cac2bdfbaae65fc3c35a7f37a38b" "-package-id" "http-conduit-2.1.8-9da8832a59564614b2dd7dbdb26e2767" "-package-id" "monad-control-1.0.0.4-54877a66474b3cf85d4214e0258a1578" "-package-id" "monad-logger-0.3.16-db727214424715675e8af4beee7e26a9" "-package-id" "persistent-2.2.4-e7b6491c04e8938ae2b84612b0a94d6e" "-package-id" "persistent-sqlite-2.2-a187e3f9b88ed4f01cafd2280645b67a" "-package-id" "persistent-template-2.1.5-4a970a90442957311227cfca503c3c68" "-package-id" "safe-0.3.9-e3aa437cf6afe091d2ac3ab91bc10ddd" "-package-id" "shakespeare-2.0.7-02e068ac036bc1a2e355b3cddec7c662" "-package-id" "template-haskell-2.10.0.0-3c4cb52230f347282af9b2817f013181" "-package-id" "text-1.2.2.0-daec687352505adca80a15e023cbae5c" "-package-id" "time-1.5.0.1-edbd1a50e7922b396ada189ab8e8523b" "-package-id" "unordered-containers-0.2.5.1-7f0f7151629cffc6859004aa9b77320a" "-package-id" "vector-0.11.0.0-299aefb173ce5a731565d31f609a0cfd" "-package-id" "wai-3.0.5.0-4d4f18d7025b901756589b5b1863461d" "-package-id" "wai-extra-3.0.13-a71a164c7d531ba58c8e38b6aa837185" "-package-id" "wai-logger-2.2.4.1-8fc69452562b67bfb726f3c0c877939e" "-package-id" "warp-3.1.12-6047c68b861cd6d3a7cdb3a30415382c" "-package-id" "yaml-0.8.15.2-257481920e6145852a767c1fce4d3857" "-package-id" "yesod-1.4.2-3f058f52fc73d2a2d3c9d4b305490883" "-package-id" "yesod-auth-1.4.11-a6a1a8c5952b2945fda288df026e9843" "-package-id" "yesod-core-1.4.18.1-48c794a45935a6df279449baced2c2c3" "-package-id" "yesod-form-1.4.6-dc560a05739f92664aaaa0d7e26a2286" "-package-id" "yesod-static-1.5.0.3-3903f73f08fe8d9d0d36c3b970568d41" "-XHaskell98" "-XTemplateHaskell" "-XQuasiQuotes" "-XOverloadedStrings" "-XNoImplicitPrelude" "-XMultiParamTypeClasses" "-XTypeFamilies" "-XGADTs" "-XGeneralizedNewtypeDeriving" "-XFlexibleContexts" "-XFlexibleInstances" "-XEmptyDataDecls" "-XNoMonomorphismRestriction" "-XDeriveDataTypeable" "-XViewPatterns" "-XTupleSections" "-XRecordWildCards" "-Wall" "-fwarn-tabs" "-O2" "-O0"
DEBUG: initSession: Session not initialized, creating new one
ghc-mod: <command line>: cannot satisfy -package-id aeson-0.10.0.0-a37a650f6e5d5ca2347967c8f8609dfd: 
    aeson-0.10.0.0-a37a650f6e5d5ca2347967c8f8609dfd is unusable due to missing or recursive dependencies:
      attoparsec-0.13.0.1-9f9155916734a226d3befd6aaf235548 base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d bytestring-0.10.6.0-c60f4c543b22c7f7293a06ae48820437 containers-0.5.6.2-e59c9b78d840fa743d4169d4bea15592 deepseq-1.4.1.1-614b63b36dd6e29d2b35afff57c25311 dlist-0.7.1.2-ff29ea897ce0546ab24638745f33b7b9 ghc-prim-0.4.0.0-6cdc86811872333585fa98756aa7c51e hashable-1.2.3.3-12072905a35fd9da4494c8223f10fb7b mtl-2.2.1-3af90341e75ee52dfc4e3143b4e5d219 scientific-0.3.4.4-d22d47c80d62cde1d38da81451fa0d7b syb-0.6-d154b8ffa473f7cfcfc32ca4d99f62f7 template-haskell-2.10.0.0-3c4cb52230f347282af9b2817f013181 text-1.2.2.0-daec687352505adca80a15e023cbae5c time-1.5.0.1-edbd1a50e7922b396ada189ab8e8523b transformers-0.4.2.0-81450cd8f86b36eaa8fa0cbaf6efc3a3 unordered-containers-0.2.5.1-7f0f7151629cffc6859004aa9b77320a vector-0.11.0.0-299aefb173ce5a731565d31f609a0cfd
    (use -v for more information)
ghc-mod-haskell-mode-bug:master λ 

@codygman
Copy link
Author

codygman commented Jan 2, 2016

While trying to explore the ghc-mod codebase I also got these errors:

<command line>: cannot satisfy -package-id hspec-2.2.1-d1b3f738c446e52377e80f103a9af412: 
    hspec-2.2.1-d1b3f738c446e52377e80f103a9af412 is unusable due to missing or recursive dependencies:
      HUnit-1.3.0.0-904109a490c85ff643c14c4cfbe058fb QuickCheck-2.8.1-d916e048f0046af0c204bb2faa7653b3 base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d hspec-core-2.2.1-f688551d07d04dface3d35981927ff3b hspec-expectations-0.7.2-32452cb885c4dd8bf509804119201a43 transformers-0.4.2.0-81450cd8f86b36eaa8fa0cbaf6efc3a3
    (use -v for more information)
Warning: resolveModule "/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/test/Spec.hs":
         could not execute: hspec-discover
<command line>: cannot satisfy -package-id aeson-0.10.0.0-a37a650f6e5d5ca2347967c8f8609dfd: 
    aeson-0.10.0.0-a37a650f6e5d5ca2347967c8f8609dfd is unusable due to missing or recursive dependencies:
      attoparsec-0.13.0.1-9f9155916734a226d3befd6aaf235548 base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d bytestring-0.10.6.0-c60f4c543b22c7f7293a06ae48820437 containers-0.5.6.2-e59c9b78d840fa743d4169d4bea15592 deepseq-1.4.1.1-614b63b36dd6e29d2b35afff57c25311 dlist-0.7.1.2-ff29ea897ce0546ab24638745f33b7b9 ghc-prim-0.4.0.0-6cdc86811872333585fa98756aa7c51e hashable-1.2.3.3-12072905a35fd9da4494c8223f10fb7b mtl-2.2.1-3af90341e75ee52dfc4e3143b4e5d219 scientific-0.3.4.4-d22d47c80d62cde1d38da81451fa0d7b syb-0.6-d154b8ffa473f7cfcfc32ca4d99f62f7 template-haskell-2.10.0.0-3c4cb52230f347282af9b2817f013181 text-1.2.2.0-daec687352505adca80a15e023cbae5c time-1.5.0.1-edbd1a50e7922b396ada189ab8e8523b transformers-0.4.2.0-81450cd8f86b36eaa8fa0cbaf6efc3a3 unordered-containers-0.2.5.1-7f0f7151629cffc6859004aa9b77320a vector-0.11.0.0-299aefb173ce5a731565d31f609a0cfd
    (use -v for more information)
ghc-mod: <command line>: cannot satisfy -package-id hspec-2.2.1-d1b3f738c446e52377e80f103a9af412: 
    hspec-2.2.1-d1b3f738c446e52377e80f103a9af412 is unusable due to missing or recursive dependencies:
      HUnit-1.3.0.0-904109a490c85ff643c14c4cfbe058fb QuickCheck-2.8.1-d916e048f0046af0c204bb2faa7653b3 base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d hspec-core-2.2.1-f688551d07d04dface3d35981927ff3b hspec-expectations-0.7.2-32452cb885c4dd8bf509804119201a43 transformers-0.4.2.0-81450cd8f86b36eaa8fa0cbaf6efc3a3
    (use -v for more information)
Warning: preprocess "test/Spec.hs": could not execute: hspec-discover
Warning: preprocess "/home/cody/source/unsorted/ghc-mod/test/Spec.hs":
         could not execute: hspec-discover

@DanielG
Copy link
Owner

DanielG commented Jan 2, 2016

A ghc-mod debug in the project directory might be helpful. I have a feeling this might be related to GHC's hardcoded library path.

@codygman
Copy link
Author

codygman commented Jan 2, 2016

ghc-mod-haskell-mode-bug:master λ ghc-mod debug 

Root directory:       /home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug
Current directory:    /home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug
GHC Package flags:
    -fbuilding-cabal-package -O -outputdir
    .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -odir
    .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -hidir
    .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -stubdir
    .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -i
    -i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -i. -iapp
    -i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen
    -I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen
    -I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -optP-include
    -optP.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen/cabal_macros.h
    -hide-all-packages -no-user-package-db -package-db
    /home/cody/.stack/snapshots/x86_64-linux/nightly-2015-12-28/7.10.3/pkgdb
    -package-db
    /home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/.stack-work/install/x86_64-linux/nightly-2015-12-28/7.10.3/pkgdb
    -package-id aeson-0.10.0.0-a37a650f6e5d5ca2347967c8f8609dfd
    -package-id base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d
    -package-id bytestring-0.10.6.0-c60f4c543b22c7f7293a06ae48820437
    -package-id
    case-insensitive-1.2.0.5-b70abcc291b422d8a51d5d3da314e550
    -package-id classy-prelude-0.12.5-de29b32b867b2af8688df145882cee41
    -package-id
    classy-prelude-conduit-0.12.5-5d36b896c4ce7d60b1cedb11042763d9
    -package-id
    classy-prelude-yesod-0.12.5-996994be12b85a5203fe715289106c0b
    -package-id conduit-1.2.6-ce8c558274d4e5410e912098683199cd
    -package-id containers-0.5.6.2-e59c9b78d840fa743d4169d4bea15592
    -package-id data-default-0.5.3-a34fab0e414a3e31b9dccb1774520fca
    -package-id directory-1.2.2.0-f8e14a9d121b76a00a0f669ee724a732
    -package-id fast-logger-2.4.1-a1bb01b100e42af4b13b416d0b0f6d8a
    -package-id file-embed-0.0.9-408c5739643af30060203ae65583ca8b
    -package-id hjsmin-0.1.5.1-3259cac2bdfbaae65fc3c35a7f37a38b
    -package-id http-conduit-2.1.8-9da8832a59564614b2dd7dbdb26e2767
    -package-id monad-control-1.0.0.4-54877a66474b3cf85d4214e0258a1578
    -package-id monad-logger-0.3.16-db727214424715675e8af4beee7e26a9
    -package-id persistent-2.2.4-e7b6491c04e8938ae2b84612b0a94d6e
    -package-id persistent-sqlite-2.2-a187e3f9b88ed4f01cafd2280645b67a
    -package-id
    persistent-template-2.1.5-4a970a90442957311227cfca503c3c68
    -package-id safe-0.3.9-e3aa437cf6afe091d2ac3ab91bc10ddd -package-id
    shakespeare-2.0.7-02e068ac036bc1a2e355b3cddec7c662 -package-id
    template-haskell-2.10.0.0-3c4cb52230f347282af9b2817f013181
    -package-id text-1.2.2.0-daec687352505adca80a15e023cbae5c
    -package-id time-1.5.0.1-edbd1a50e7922b396ada189ab8e8523b
    -package-id
    unordered-containers-0.2.5.1-7f0f7151629cffc6859004aa9b77320a
    -package-id vector-0.11.0.0-299aefb173ce5a731565d31f609a0cfd
    -package-id wai-3.0.5.0-4d4f18d7025b901756589b5b1863461d
    -package-id wai-extra-3.0.13-a71a164c7d531ba58c8e38b6aa837185
    -package-id wai-logger-2.2.4.1-8fc69452562b67bfb726f3c0c877939e
    -package-id warp-3.1.12-6047c68b861cd6d3a7cdb3a30415382c
    -package-id yaml-0.8.15.2-257481920e6145852a767c1fce4d3857
    -package-id yesod-1.4.2-3f058f52fc73d2a2d3c9d4b305490883
    -package-id yesod-auth-1.4.11-a6a1a8c5952b2945fda288df026e9843
    -package-id yesod-core-1.4.18.1-48c794a45935a6df279449baced2c2c3
    -package-id yesod-form-1.4.6-dc560a05739f92664aaaa0d7e26a2286
    -package-id yesod-static-1.5.0.3-3903f73f08fe8d9d0d36c3b970568d41
    -XHaskell98 -XTemplateHaskell -XQuasiQuotes -XOverloadedStrings
    -XNoImplicitPrelude -XMultiParamTypeClasses -XTypeFamilies -XGADTs
    -XGeneralizedNewtypeDeriving -XFlexibleContexts -XFlexibleInstances
    -XEmptyDataDecls -XNoMonomorphismRestriction -XDeriveDataTypeable
    -XViewPatterns -XTupleSections -XRecordWildCards -Wall -fwarn-tabs
    -O2
GHC System libraries: /home/cody/.stack/programs/x86_64-linux/ghc-7.10.2/lib/ghc-7.10.2
GHC user options:

Stack ghc executable:    Just "/home/cody/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc"
Stack ghc-pkg executable:Just "/home/cody/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg"
Cabal file:           Just "/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/ghc-mod-haskell-mode-bug.cabal"
Project:   StackProject (StackEnv {seDistDir = ".stack-work/dist/x86_64-linux/Cabal-1.22.5.0", seBinPath = ["/home/cody/.stack/snapshots/x86_64-linux/nightly-2015-12-28/7.10.3/bin","/home/cody/.stack/programs/x86_64-linux/ghc-7.10.3/bin","/home/cody/.local/bin","/usr/local/sbin","/usr/local/bin","/usr/sbin","/usr/bin","/sbin","/bin","/usr/games","/usr/local/games"], seSnapshotPkgDb = "/home/cody/.stack/snapshots/x86_64-linux/nightly-2015-12-28/7.10.3/pkgdb", seLocalPkgDb = "/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/.stack-work/install/x86_64-linux/nightly-2015-12-28/7.10.3/pkgdb"})
Cabal entrypoints:
    Setup.hs
    library
        Application (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Application.hs)
        Foundation (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Foundation.hs)
        Import (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Import.hs)
        Import.NoFoundation (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Import/NoFoundation.hs)
        Model (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Model.hs)
        Settings (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Settings.hs)
        Settings.StaticFiles (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Settings/StaticFiles.hs)
        Handler.Common (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Handler/Common.hs)
        Handler.Home (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Handler/Home.hs)
        Handler.Comment (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Handler/Comment.hs)
    exe:ghc-mod-haskell-mode-bug
        Main (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/app/main.hs)
Cabal components:
    Setup.hs
    library
        Application (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Application.hs)
            Import
            Handler.Common
            Handler.Home
            Handler.Comment
        Foundation (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Foundation.hs)
            Import.NoFoundation
        Import (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Import.hs)
            Foundation
            Import.NoFoundation
        Import.NoFoundation (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Import/NoFoundation.hs)
            Model
            Settings
            Settings.StaticFiles
        Model (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Model.hs)
        Settings (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Settings.hs)
        Settings.StaticFiles (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Settings/StaticFiles.hs)
            Settings
        Handler.Common (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Handler/Common.hs)
            Import
        Handler.Home (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Handler/Home.hs)
            Import
        Handler.Comment (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/Handler/Comment.hs)
            Import
    exe:ghc-mod-haskell-mode-bug
        Main (/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/app/main.hs)
GHC Cabal options:
    Setup.hs
    library
        -fbuilding-cabal-package -O -outputdir
        .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -odir
        .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -hidir
        .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -stubdir
        .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -i
        -i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -i. -iapp
        -i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen
        -I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen
        -I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -optP-include
        -optP.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen/cabal_macros.h
        -hide-all-packages -no-user-package-db -package-db
        /home/cody/.stack/snapshots/x86_64-linux/nightly-2015-12-28/7.10.3/pkgdb
        -package-db
        /home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/.stack-work/install/x86_64-linux/nightly-2015-12-28/7.10.3/pkgdb
        -package-id aeson-0.10.0.0-a37a650f6e5d5ca2347967c8f8609dfd
        -package-id base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d
        -package-id bytestring-0.10.6.0-c60f4c543b22c7f7293a06ae48820437
        -package-id
        case-insensitive-1.2.0.5-b70abcc291b422d8a51d5d3da314e550
        -package-id classy-prelude-0.12.5-de29b32b867b2af8688df145882cee41
        -package-id
        classy-prelude-conduit-0.12.5-5d36b896c4ce7d60b1cedb11042763d9
        -package-id
        classy-prelude-yesod-0.12.5-996994be12b85a5203fe715289106c0b
        -package-id conduit-1.2.6-ce8c558274d4e5410e912098683199cd
        -package-id containers-0.5.6.2-e59c9b78d840fa743d4169d4bea15592
        -package-id data-default-0.5.3-a34fab0e414a3e31b9dccb1774520fca
        -package-id directory-1.2.2.0-f8e14a9d121b76a00a0f669ee724a732
        -package-id fast-logger-2.4.1-a1bb01b100e42af4b13b416d0b0f6d8a
        -package-id file-embed-0.0.9-408c5739643af30060203ae65583ca8b
        -package-id hjsmin-0.1.5.1-3259cac2bdfbaae65fc3c35a7f37a38b
        -package-id http-conduit-2.1.8-9da8832a59564614b2dd7dbdb26e2767
        -package-id monad-control-1.0.0.4-54877a66474b3cf85d4214e0258a1578
        -package-id monad-logger-0.3.16-db727214424715675e8af4beee7e26a9
        -package-id persistent-2.2.4-e7b6491c04e8938ae2b84612b0a94d6e
        -package-id persistent-sqlite-2.2-a187e3f9b88ed4f01cafd2280645b67a
        -package-id
        persistent-template-2.1.5-4a970a90442957311227cfca503c3c68
        -package-id safe-0.3.9-e3aa437cf6afe091d2ac3ab91bc10ddd -package-id
        shakespeare-2.0.7-02e068ac036bc1a2e355b3cddec7c662 -package-id
        template-haskell-2.10.0.0-3c4cb52230f347282af9b2817f013181
        -package-id text-1.2.2.0-daec687352505adca80a15e023cbae5c
        -package-id time-1.5.0.1-edbd1a50e7922b396ada189ab8e8523b
        -package-id
        unordered-containers-0.2.5.1-7f0f7151629cffc6859004aa9b77320a
        -package-id vector-0.11.0.0-299aefb173ce5a731565d31f609a0cfd
        -package-id wai-3.0.5.0-4d4f18d7025b901756589b5b1863461d
        -package-id wai-extra-3.0.13-a71a164c7d531ba58c8e38b6aa837185
        -package-id wai-logger-2.2.4.1-8fc69452562b67bfb726f3c0c877939e
        -package-id warp-3.1.12-6047c68b861cd6d3a7cdb3a30415382c
        -package-id yaml-0.8.15.2-257481920e6145852a767c1fce4d3857
        -package-id yesod-1.4.2-3f058f52fc73d2a2d3c9d4b305490883
        -package-id yesod-auth-1.4.11-a6a1a8c5952b2945fda288df026e9843
        -package-id yesod-core-1.4.18.1-48c794a45935a6df279449baced2c2c3
        -package-id yesod-form-1.4.6-dc560a05739f92664aaaa0d7e26a2286
        -package-id yesod-static-1.5.0.3-3903f73f08fe8d9d0d36c3b970568d41
        -XHaskell98 -XTemplateHaskell -XQuasiQuotes -XOverloadedStrings
        -XNoImplicitPrelude -XMultiParamTypeClasses -XTypeFamilies -XGADTs
        -XGeneralizedNewtypeDeriving -XFlexibleContexts -XFlexibleInstances
        -XEmptyDataDecls -XNoMonomorphismRestriction -XDeriveDataTypeable
        -XViewPatterns -XTupleSections -XRecordWildCards -Wall -fwarn-tabs
        -O2
    exe:ghc-mod-haskell-mode-bug
        -fbuilding-cabal-package -O -outputdir
        .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -odir
        .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -hidir
        .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -stubdir
        .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -i
        -i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/ghc-mod-haskell-mode-bug/ghc-mod-haskell-mode-bug-tmp
        -i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -i. -iapp
        -i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen
        -I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/ghc-mod-haskell-mode-bug/ghc-mod-haskell-mode-bug-tmp
        -I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen
        -I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -optP-include
        -optP.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen/cabal_macros.h
        -hide-all-packages -no-user-package-db -package-db
        /home/cody/.stack/snapshots/x86_64-linux/nightly-2015-12-28/7.10.3/pkgdb
        -package-db
        /home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/.stack-work/install/x86_64-linux/nightly-2015-12-28/7.10.3/pkgdb
        -package-id aeson-0.10.0.0-a37a650f6e5d5ca2347967c8f8609dfd
        -package-id base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d
        -package-id bytestring-0.10.6.0-c60f4c543b22c7f7293a06ae48820437
        -package-id
        case-insensitive-1.2.0.5-b70abcc291b422d8a51d5d3da314e550
        -package-id classy-prelude-0.12.5-de29b32b867b2af8688df145882cee41
        -package-id
        classy-prelude-conduit-0.12.5-5d36b896c4ce7d60b1cedb11042763d9
        -package-id
        classy-prelude-yesod-0.12.5-996994be12b85a5203fe715289106c0b
        -package-id conduit-1.2.6-ce8c558274d4e5410e912098683199cd
        -package-id containers-0.5.6.2-e59c9b78d840fa743d4169d4bea15592
        -package-id data-default-0.5.3-a34fab0e414a3e31b9dccb1774520fca
        -package-id directory-1.2.2.0-f8e14a9d121b76a00a0f669ee724a732
        -package-id fast-logger-2.4.1-a1bb01b100e42af4b13b416d0b0f6d8a
        -package-id file-embed-0.0.9-408c5739643af30060203ae65583ca8b
        -package-id hjsmin-0.1.5.1-3259cac2bdfbaae65fc3c35a7f37a38b
        -package-id http-conduit-2.1.8-9da8832a59564614b2dd7dbdb26e2767
        -package-id monad-control-1.0.0.4-54877a66474b3cf85d4214e0258a1578
        -package-id monad-logger-0.3.16-db727214424715675e8af4beee7e26a9
        -package-id persistent-2.2.4-e7b6491c04e8938ae2b84612b0a94d6e
        -package-id persistent-sqlite-2.2-a187e3f9b88ed4f01cafd2280645b67a
        -package-id
        persistent-template-2.1.5-4a970a90442957311227cfca503c3c68
        -package-id safe-0.3.9-e3aa437cf6afe091d2ac3ab91bc10ddd -package-id
        shakespeare-2.0.7-02e068ac036bc1a2e355b3cddec7c662 -package-id
        template-haskell-2.10.0.0-3c4cb52230f347282af9b2817f013181
        -package-id text-1.2.2.0-daec687352505adca80a15e023cbae5c
        -package-id time-1.5.0.1-edbd1a50e7922b396ada189ab8e8523b
        -package-id
        unordered-containers-0.2.5.1-7f0f7151629cffc6859004aa9b77320a
        -package-id vector-0.11.0.0-299aefb173ce5a731565d31f609a0cfd
        -package-id wai-3.0.5.0-4d4f18d7025b901756589b5b1863461d
        -package-id wai-extra-3.0.13-a71a164c7d531ba58c8e38b6aa837185
        -package-id wai-logger-2.2.4.1-8fc69452562b67bfb726f3c0c877939e
        -package-id warp-3.1.12-6047c68b861cd6d3a7cdb3a30415382c
        -package-id yaml-0.8.15.2-257481920e6145852a767c1fce4d3857
        -package-id yesod-1.4.2-3f058f52fc73d2a2d3c9d4b305490883
        -package-id yesod-auth-1.4.11-a6a1a8c5952b2945fda288df026e9843
        -package-id yesod-core-1.4.18.1-48c794a45935a6df279449baced2c2c3
        -package-id yesod-form-1.4.6-dc560a05739f92664aaaa0d7e26a2286
        -package-id yesod-static-1.5.0.3-3903f73f08fe8d9d0d36c3b970568d41
        -XHaskell98 -XTemplateHaskell -XQuasiQuotes -XOverloadedStrings
        -XNoImplicitPrelude -XMultiParamTypeClasses -XTypeFamilies -XGADTs
        -XGeneralizedNewtypeDeriving -XFlexibleContexts -XFlexibleInstances
        -XEmptyDataDecls -XNoMonomorphismRestriction -XDeriveDataTypeable
        -XViewPatterns -XTupleSections -XRecordWildCards -threaded -rtsopts
        -with-rtsopts=-N -Wall -fwarn-tabs -O2
GHC search path options:
    Setup.hs
    library
        -i -i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -i. -iapp
        -i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen
        -I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen
        -I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build -optP-include
        -optP.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen/cabal_macros.h
    exe:ghc-mod-haskell-mode-bug
        -i
        -i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/ghc-mod-haskell-mode-bug/ghc-mod-haskell-mode-bug-tmp
        -iapp -i.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen
        -I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen
        -I.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/ghc-mod-haskell-mode-bug/ghc-mod-haskell-mode-bug-tmp
        -optP-include
        -optP.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen/cabal_macros.h
ghc-mod-haskell-mode-bug:master λ 

@codygman
Copy link
Author

codygman commented Jan 3, 2016

Is this easy for you to reproduce using the repo I posted earlier @DanielG or shall I go a step further and make a docker image?

@DanielG
Copy link
Owner

DanielG commented Jan 3, 2016

Oh I didn't mean you have to provide more stuff to reproduce it, someone else just has to do it to make sure it's not a problem specific to your environment. Once someone can reproduce it we can consider it a bug.

Though I wouldn't say no to a docker image either ;)

@DanielG
Copy link
Owner

DanielG commented Jan 3, 2016

Looks like Debian unstable's gcc/binutils is too new for ghc's runtime linker or something: ghc-mod: /home/dxld/.stack/snapshots/x86_64-linux/nightly-2015-12-28/7.10.3/lib/x86_64-linux-ghc-7.10.3/persistent-sqlite-2.2-2ogrkn2pVNi1QFcLfHXk9n/libHSpersistent-sqlite-2.2-2ogrkn2pVNi1QFcLfHXk9n.a: unhandled ELF relocation(RelA) type 42.

42 seems to be R_386_IRELATIVE.

@DanielG
Copy link
Owner

DanielG commented Jan 3, 2016

Actually that docker container is sounding nice right about now :)

@p-pavel
Copy link

p-pavel commented Jan 4, 2016

Have absolutely the same problem on Mac OS X, GHC-7.10.3, ghc-mod-5.4.0.0.
Additional information attached:
==== ghc-mod list =====
ghc-mod -v7 list DEBUG: reading cache: /Users/ppavel/tmp/mystack/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/setup-config.ghc-mod.package-options ghc-mod: <command line>: cannot satisfy -package-id persistent-2.2.4-5eb29b5c2f0291a84926f318f4957322: persistent-2.2.4-5eb29b5c2f0291a84926f318f4957322 is unusable due to missing or recursive dependencies: aeson-0.10.0.0-6365b674dbd1f36e0d960acd4b57c341 attoparsec-0.13.0.1-2f46a96ed636088fe8fe9ecd8021f3cc conduit-1.2.6.1-77a3d010c33077b3765a16da587c59ef exceptions-0.8.0.2-9c20b6fff6ffa8499852ab4a71dd373d lifted-base-0.2.3.6-3e932d54ce5ec8c6b0bf558e1ea81e39 monad-control-1.0.0.4-1a065aaa77bf62ec1c44c1ba3e6b2d4a monad-logger-0.3.16-16efdffe130afa82ca2405fa88c44b44 mtl-2.2.1-b6b36d751642fde56f037818eb788105 old-locale-1.0.0.7-226545412ff89fdc42d011fe5641eba4 resource-pool-0.2.3.2-9e3320929e34c2e4c21a80bb0f13fded resourcet-1.1.7-e2e387aeb2fde1ccf63f9be38552ac54 scientific-0.3.4.4-8c52950626121f812870c1d7658e2a30 transformers-base-0.4.4-3e7c24088c35df2882272790ddd531ba vector-0.11.0.0-3c85dee988950ea88ba0cba31473444f (use -v for more information)

==== ghc-mod debug ====
`ghc-mod debug
Root directory: /Users/ppavel/tmp/mystack
Current directory: /Users/ppavel/tmp/mystack
GHC Package flags:
-hide-all-packages -no-user-package-db -package-db
/Users/ppavel/.stack/snapshots/x86_64-osx/nightly-2016-01-03/7.10.3/pkgdb
-package-db
/Users/ppavel/tmp/mystack/.stack-work/install/x86_64-osx/nightly-2016-01-03/7.10.3/pkgdb
-package-id base-4.8.2.0-cc43d8e06aa74e9c4c0132becc49ee25
-package-id persistent-2.2.4-5eb29b5c2f0291a84926f318f4957322
GHC System libraries: /Users/ppavel/.stack/programs/x86_64-osx/ghc-7.10.3/lib/ghc-7.10.3
GHC user options:

Stack ghc executable: Just "/usr/local/bin/ghc"
Stack ghc-pkg executable:Just "/usr/local/bin/ghc-pkg"
Cabal file: Just "/Users/ppavel/tmp/mystack/mystack.cabal"
Project: StackProject (StackEnv {seDistDir = ".stack-work/dist/x86_64-osx/Cabal-1.22.5.0", seBinPath = ["/Users/ppavel/.stack/snapshots/x86_64-osx/nightly-2016-01-03/7.10.3/bin","/Users/ppavel/.local/bin","/Users/ppavel/.local/sbt/bin","/opt/local/bin","/opt/local/sbin","/usr/local/bin","/usr/bin","/bin","/usr/sbin","/sbin"], seSnapshotPkgDb = "/Users/ppavel/.stack/snapshots/x86_64-osx/nightly-2016-01-03/7.10.3/pkgdb", seLocalPkgDb = "/Users/ppavel/tmp/mystack/.stack-work/install/x86_64-osx/nightly-2016-01-03/7.10.3/pkgdb"})
Cabal entrypoints:
Setup.hs
Main (/Users/ppavel/tmp/mystack/Setup.hs)
exe:mystack-exe
Main (/Users/ppavel/tmp/mystack/Main.hs)
Cabal components:
Setup.hs
Main (/Users/ppavel/tmp/mystack/Setup.hs)
exe:mystack-exe
Main (/Users/ppavel/tmp/mystack/Main.hs)
GHC Cabal options:
Setup.hs
exe:mystack-exe
-fbuilding-cabal-package -O -outputdir
.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-odir
.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-hidir
.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-stubdir
.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-i
-i.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-i. -i.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen
-I.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen
-I.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-optP-include
-optP.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/cabal_macros.h
-hide-all-packages -no-user-package-db -package-db
/Users/ppavel/.stack/snapshots/x86_64-osx/nightly-2016-01-03/7.10.3/pkgdb
-package-db
/Users/ppavel/tmp/mystack/.stack-work/install/x86_64-osx/nightly-2016-01-03/7.10.3/pkgdb
-package-id base-4.8.2.0-cc43d8e06aa74e9c4c0132becc49ee25
-package-id persistent-2.2.4-5eb29b5c2f0291a84926f318f4957322
-XHaskell2010 -threaded -rtsopts -with-rtsopts=-N
GHC search path options:
Setup.hs
exe:mystack-exe
-i
-i.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-i. -i.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen
-I.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen
-I.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-optP-include
-optP.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/cabal_macros.h`

@codygman
Copy link
Author

codygman commented Jan 5, 2016

Daniel, I might be able to do it tomorrow after work.

On Mon, Jan 4, 2016 at 11:57 AM, p-pavel [email protected] wrote:

Have absolutely the same problem on Mac OS X, GHC-7.10.3, ghc-mod-5.4.0.0.
Additional information attached:
==== ghc-mod list =====
ghc-mod -v7 list
DEBUG: reading cache:
/Users/ppavel/tmp/mystack/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/setup-config.ghc-mod.package-options
ghc-mod: : cannot satisfy -package-id
persistent-2.2.4-5eb29b5c2f0291a84926f318f4957322:
persistent-2.2.4-5eb29b5c2f0291a84926f318f4957322 is unusable due to
missing or recursive dependencies:
aeson-0.10.0.0-6365b674dbd1f36e0d960acd4b57c341
attoparsec-0.13.0.1-2f46a96ed636088fe8fe9ecd8021f3cc
conduit-1.2.6.1-77a3d010c33077b3765a16da587c59ef
exceptions-0.8.0.2-9c20b6fff6ffa8499852ab4a71dd373d
lifted-base-0.2.3.6-3e932d54ce5ec8c6b0bf558e1ea81e39
monad-control-1.0.0.4-1a065aaa77bf62ec1c44c1ba3e6b2d4a
monad-logger-0.3.16-16efdffe130afa82ca2405fa88c44b44
mtl-2.2.1-b6b36d751642fde56f037818eb788105
old-locale-1.0.0.7-226545412ff89fdc42d011fe5641eba4
resource-pool-0.2.3.2-9e3320929e34c2e4c21a80bb0f13fded
resourcet-1.1.7-e2e387aeb2fde1ccf63f9be38552ac54
scientific-0.3.4.4-8c52950626121f812870c1d7658e2a30
transformers-base-0.4.4-3e7c24088c35df2882272790ddd531ba
vector-0.11.0.0-3c85dee988950ea88ba0cba31473444f
(use -v for more information)

==== ghc-mod debug ====
`ghc-mod debug
Root directory: /Users/ppavel/tmp/mystack
Current directory: /Users/ppavel/tmp/mystack
GHC Package flags:
-hide-all-packages -no-user-package-db -package-db
/Users/ppavel/.stack/snapshots/x86_64-osx/nightly-2016-01-03/7.10.3/pkgdb
-package-db

/Users/ppavel/tmp/mystack/.stack-work/install/x86_64-osx/nightly-2016-01-03/7.10.3/pkgdb
-package-id base-4.8.2.0-cc43d8e06aa74e9c4c0132becc49ee25
-package-id persistent-2.2.4-5eb29b5c2f0291a84926f318f4957322
GHC System libraries:
/Users/ppavel/.stack/programs/x86_64-osx/ghc-7.10.3/lib/ghc-7.10.3
GHC user options:

Stack ghc executable: Just "/usr/local/bin/ghc"
Stack ghc-pkg executable:Just "/usr/local/bin/ghc-pkg"
Cabal file: Just "/Users/ppavel/tmp/mystack/mystack.cabal"
Project: StackProject (StackEnv {seDistDir =
".stack-work/dist/x86_64-osx/Cabal-1.22.5.0", seBinPath =
["/Users/ppavel/.stack/snapshots/x86_64-osx/nightly-2016-01-03/7.10.3/bin","/Users/ppavel/.local/bin","/Users/ppavel/.local/sbt/bin","/opt/local/bin","/opt/local/sbin","/usr/local/bin","/usr/bin","/bin","/usr/sbin","/sbin"],
seSnapshotPkgDb =
"/Users/ppavel/.stack/snapshots/x86_64-osx/nightly-2016-01-03/7.10.3/pkgdb",
seLocalPkgDb =
"/Users/ppavel/tmp/mystack/.stack-work/install/x86_64-osx/nightly-2016-01-03/7.10.3/pkgdb"})
Cabal entrypoints:
Setup.hs
Main (/Users/ppavel/tmp/mystack/Setup.hs)
exe:mystack-exe
Main (/Users/ppavel/tmp/mystack/Main.hs)
Cabal components:
Setup.hs
Main (/Users/ppavel/tmp/mystack/Setup.hs)
exe:mystack-exe
Main (/Users/ppavel/tmp/mystack/Main.hs)
GHC Cabal options:
Setup.hs
exe:mystack-exe
-fbuilding-cabal-package -O -outputdir

.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-odir

.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-hidir

.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-stubdir

.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-i

-i.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-i. -i.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen
-I.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen

-I.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-optP-include

-optP.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/cabal_macros.h
-hide-all-packages -no-user-package-db -package-db
/Users/ppavel/.stack/snapshots/x86_64-osx/nightly-2016-01-03/7.10.3/pkgdb
-package-db

/Users/ppavel/tmp/mystack/.stack-work/install/x86_64-osx/nightly-2016-01-03/7.10.3/pkgdb
-package-id base-4.8.2.0-cc43d8e06aa74e9c4c0132becc49ee25
-package-id persistent-2.2.4-5eb29b5c2f0291a84926f318f4957322
-XHaskell2010 -threaded -rtsopts -with-rtsopts=-N
GHC search path options:
Setup.hs
exe:mystack-exe
-i

-i.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-i. -i.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen
-I.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen

-I.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/mystack-exe/mystack-exe-tmp
-optP-include

-optP.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/cabal_macros.h`


Reply to this email directly or view it on GitHub
#711 (comment)
.

@meditans
Copy link
Contributor

meditans commented Jan 8, 2016

I'm experiencing the same bug, what should I post here to help debugging?

@DanielG
Copy link
Owner

DanielG commented Jan 8, 2016

Well what we really need is to pin down the cause of this. Since @codygman's testcase is blowing up on my system a simpler one would be useful to have.

Another thing that would help a lot would be a comparison between the GHC options seen in ghc-mod debug and stack ghci. Unfortunetely even with --verbose stack doesn't even print that, all I can find is the line below which doesn't include anything interresting AFAICT so either some diving into Stack's source or raising an issue with them is in order:

2016-01-08 15:39:44.805274: [debug] Run process: ghc --interactive -i -odir=/home/dxld/.stack/global/.stack-work/odir -hidir=/home/dxld/.stack/global/.stack-work/odir -ghci-script=/tmp/ghci3265/ghci-script @(stack_03v8PatSPAPLwmtfdY8jsA:Stack.Exec src/Stack/Exec.hs:51:5)

Once we have a canonical set of options from stack that works with ghci we can start looking at what's actually in .stack-work/dist/*/*/setup-config and then find out why that doesn't end up coming out of ghc-mod (or why it's wrong but I think that's unlikely).

I don't have much time to work on ghc-mod currently so if anyone wants to do any of the above I'd be happy to provide more help.

@codygman
Copy link
Author

codygman commented Jan 8, 2016

stack -v7 I think prints ghc options
On Jan 8, 2016 8:46 AM, "Daniel Gröber" [email protected] wrote:

Well what we really need is to pin down the cause of this. Since @codygman
https://github.com/codygman's testcase is blowing up on my system a
simpler one would be useful to have.

Another thing that would help a lot would be a comparison between the GHC
options seen in ghc-mod debug and stack ghci. Unfortunetely even with
--verbose stack doesn't even print that, all I can find is the line below
which doesn't include anything interresting AFAICT so either some diving
into Stack's source or raising an issue with them is in order:

2016-01-08 15:39:44.805274: [debug] Run process: ghc --interactive -i -odir=/home/dxld/.stack/global/.stack-work/odir -hidir=/home/dxld/.stack/global/.stack-work/odir -ghci-script=/tmp/ghci3265/ghci-script @(stack_03v8PatSPAPLwmtfdY8jsA:Stack.Exec src/Stack/Exec.hs:51:5)

Once we have a canonical set of options from stack that works with ghci we
can start looking at what's actually in .stack-work/dist///setup-config
and then find out why that doesn't end up coming out of ghc-mod (or why
it's wrong but I think that's unlikely).

I don't have much time to work on ghc-mod currently so if anyone wants to
do any of the above I'd be happy to provide more help.


Reply to this email directly or view it on GitHub
#711 (comment)
.

@DanielG
Copy link
Owner

DanielG commented Jan 8, 2016

Invalid option -v7'` :(

@codygman
Copy link
Author

codygman commented Jan 8, 2016

stack build -v7
On Jan 8, 2016 9:13 AM, "Daniel Gröber" [email protected] wrote:

Invalid option-v7'` :(


Reply to this email directly or view it on GitHub
#711 (comment)
.

@DanielG
Copy link
Owner

DanielG commented Jan 8, 2016

Oh right that might actually be good enough since we're only interested in the package flags.

@jasonzoladz
Copy link

I don't know if this helps, but after I upgraded my default stack resolver to lts-4.0, I was having the same issue when working in pre-lts-4.0 projects. The problem disappears when you change the specific project's stack.yaml to match the default resolver (i.e., 4.0). Weird.

@meditans
Copy link
Contributor

meditans commented Jan 8, 2016

@jasonzoladz that happened to me too, then I nuked both ~/.stack and the local directory .stack-work in my project (both are based on lts-4.0 now) and the error went away.

@DanielG
Copy link
Owner

DanielG commented Jan 17, 2016

Ah I'm such a moron, I should've seen this earlier that's a classic problem. @codygman you're using a ghc-mod exectuable that's linked against ghc-7.10.2 in a stack project using 7.10.3! That can't work, you need to rebuild ghc-mod against the matching version of ghc.

You can see that in

StackProject (StackEnv {seDistDir = ".stack-work/dist/x86_64-linux/Cabal-1.22.5.0", seBinPath = ["/home/cody/.stack/snapshots/x86_64-linux/nightly-2015-12-28/7.10.3/bin","/home/cody/.stack/programs/x86_64-linux/ghc-7.10.3/bin","/home/cody/.local/bin","/usr/local/sbin","/usr/local/bin","/usr/sbin","/usr/bin","/sbin","/bin","/usr/games","/usr/local/games"], seSnapshotPkgDb = "/home/cody/.stack/snapshots/x86_64-linux/nightly-2015-12-28/7.10.3/pkgdb", seLocalPkgDb = "/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/.stack-work/install/x86_64-linux/nightly-2015-12-28/7.10.3/pkgdb"})

where it mentions 7.10.3 whereas ghc-mod version spits out ghc-mod version 5.4.0.0 compiled by GHC 7.10.2.

I've gotten so used to non trivial problems with Stack I completely forgot about our classic failure cases ;)

@codygman
Copy link
Author

That's correct, it works now. Did you ever figure out how to provide better
error messages for this?
On Jan 17, 2016 12:04 PM, "Daniel Gröber" [email protected] wrote:

Ah I'm such a moron, I should've seen this earlier that's a classic
problem. @codygman https://github.com/codygman you're using a ghc-mod
exectuable that's linked against ghc-7.10.2 in a stack project using
7.10.3! That can't work, you need to rebuild ghc-mod against the matching
version of ghc.

You can see that in

StackProject (StackEnv {seDistDir = ".stack-work/dist/x86_64-linux/Cabal-1.22.5.0", seBinPath = ["/home/cody/.stack/snapshots/x86_64-linux/nightly-2015-12-28/7.10.3/bin","/home/cody/.stack/programs/x86_64-linux/ghc-7.10.3/bin","/home/cody/.local/bin","/usr/local/sbin","/usr/local/bin","/usr/sbin","/usr/bin","/sbin","/bin","/usr/games","/usr/local/games"], seSnapshotPkgDb = "/home/cody/.stack/snapshots/x86_64-linux/nightly-2015-12-28/7.10.3/pkgdb", seLocalPkgDb = "/home/cody/programming/haskell/bug-repros/ghc-mod-haskell-mode-bug/.stack-work/install/x86_64-linux/nightly-2015-12-28/7.10.3/pkgdb"})

where it mentions 7.10.3 whereas ghc-mod version spits out ghc-mod
version 5.4.0.0 compiled by GHC 7.10.2.

I've gotten so used to non trivial problems with Stack I completely forgot
about our classic failure cases ;)


Reply to this email directly or view it on GitHub
#711 (comment).

@DanielG
Copy link
Owner

DanielG commented Jan 17, 2016

Eventually we will it's just a matter of banging someones head against the problem: #673, #687

@DanielG DanielG closed this as completed Jan 17, 2016
@nrolland
Copy link
Contributor

That bit me. what a terribly misleading message !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants