haskell-ide-engine icon indicating copy to clipboard operation
haskell-ide-engine copied to clipboard

hie doesn't work with error "cannot satisfy -package-id foo ... " on any Linux

Open RheoTommy opened this issue 4 years ago • 12 comments

Hi. I'm Japanese.(So I think my English is not good. )

I tried to use HIE but it didn't work.

on manjaro

When I use manjaro, I installed stack with pacman and I installed HIE with AUR. then HIE doesn't work with the error. And though I installed HIE from source code, it didn't work.

on ubuntu

When I use manjaro, I installed stack with apt and I installed HIE from source code. It didn't work.

what error

when I make a new stack project

I made a new project with this command

stack new foo

and open this project with VSCode. but didn't work with error

cannot satisfy -package-id foo-... (use -v for more information)

What should I do?

I tried to use HIE with reInstalling Ubuntu and Manjaro but it didn't work. I don't know what I should do so .

RheoTommy avatar Jan 29 '20 21:01 RheoTommy

Hi! thank you for your bug report! You might be running into https://github.com/haskell/haskell-ide-engine/issues/1608. You can try

  • Execute stack build before opening the project
  • Add in the root of your project (same folder as your package.yaml or foo.cabal file) a file called hie.yaml before opening your project

Contents of hie.yaml

cradle:
  stack:

Or bash command:

echo "cradle: { stack: {}}" > hie.yaml

fendor avatar Jan 29 '20 21:01 fendor

Wow! It worked when I add the hie.yaml. Thank you very much!

I missed the "project configuration". Was it made when hie started to use hie-bios? I think I should learn English harder to solve problems like this case XD

THANK YOU VERY MUCH. ありがとう!

RheoTommy avatar Jan 30 '20 07:01 RheoTommy

@RheoTommy did it work without the hie.yaml file but running stack build in the project dir root before opening it in vscode? It should work too cause hie should be able to load the project without a hie.yaml file

jneira avatar Jan 30 '20 07:01 jneira

Unfortunately, I think you are running into a bug. The hie.yaml is a work around for it and yeah, it was introduced with hie-bios.

fendor avatar Jan 30 '20 08:01 fendor

Adding hie.yaml did not work for me, it started to raise another error.

Running stack build before opening the editor did resolve the problem for me.

tuomohopia avatar Feb 04 '20 07:02 tuomohopia

This is turning out to be a really pesky problem for me. Every time I change something I need to rebuild the whole project with stack build for the editor to stop complaining about this.

I'm running on WIN10.

tuomohopia avatar Feb 05 '20 06:02 tuomohopia

@tuomohopia does it happens in every project, even a simple one? If it doesnt, could you link to a project in which the issue is reproduced? The log in verbose mode could useful too to try to diagnose the problem (you can set verbose mode in the hi extension settings)

Adding hie.yaml did not work for me, it started to raise another error.

Maybe we can try to tacke that one too, it seems if hie.yaml works, it could be a better workaround for now.

jneira avatar Feb 05 '20 06:02 jneira

@jneira It does not, I just tested on a new scaffolded project with stack new. Unfortunately, the project where I get this is not open source. I don't know how to start debugging to isolate the error. I couldn't find the verbosity setting anywhere, only found --bios-verbose setting for compiled hie executable.

I think it may have started to do this when I added raven-haskell-0.1.3.0 to my stack.yaml extra-deps, not sure.

I'll try recompiling hie and my project today with lts-14.22 to see if it helps. Now I'm at lts-14.20.

Now as far as hie.yaml goes, this is the error I get whenever launching vscode while it's in the project root dir:

Fail on initialisation for "D:\dev\project\src\App.hs". Failed to parse result of calling stack

tuomohopia avatar Feb 05 '20 06:02 tuomohopia

Oh, i am afraid that a (minimal if possible) project which reproduces the issue could help a lot to try to fix it. :thinking:

  • To set verbose mode you can go to: File menu -> Preferences -> Settings -> Write languageServerHaskell.trace.server in the search field -> set verbose in the combo

  • Then you can open the output tab: View menu -> Output -> Choose Haskell HIE (haskell-ide-engine) in the combo up the output panel (it only is showed if you has opened a haskell source file)

I think the problem using hie.yaml and without it will be related.

Failed to parse result of calling stack

what stack version are you using? i am afraid that hie is more likely to work with stack version >= 2.1.1

Another diagnostics can be run hie in a console opened in the project root dir: in that mode hie shows debugging information about the project:

D:\ws\haskell\haskell-ide-engine>hie --debug <some-filepath-in-the-project>
Running HIE(hie)
  Version 1.0.0.0, Git revision 66291d655bcd6064855aab3ea709a0469a371ca7 (dirty) (3730 commits) x86_64 ghc-8.6.5
To run as a LSP server on stdio, provide the '--lsp' argument
Current directory:D:\ws\haskell\haskell-ide-engine

args:[]

Looking for project config cradle...
..... lot of info should be here

jneira avatar Feb 05 '20 07:02 jneira

Yes, please paste the output of

> hie --debug <some-file>

here to show the error messages. If it happens on a stack new project, you can just try it on this project. You can also try it on your proprietary project since this command only exposes the file structure of your project, not actual file content, if this makes it any better.

fendor avatar Feb 05 '20 08:02 fendor

Ok so this happens when running hie --debug on my main executable (below). If I run it on lib files it seems to output OK, indicating it had no trouble with them.

My stack ver is Version 2.1.3, Git revision 0fa51b9925decd937e4a993ad90cb686f88fa282 (7739 commits) x86_64 hpack-0.31.2. I upgraded both hie and my project to lts-14.22 yesterday.

PS D:\dev\healthbot\healthbot-api> hie --debug .\app\Main.hs
Running HIE(hie.exe)
  Version 1.0.0.0, Git revision caf72237f596255eef3e614330db353c15b6c46b (3765 commits) x86_64 ghc-8.6.5
To run as a LSP server on stdio, provide the '--lsp' argument
Current directory:D:\dev\healthbot\healthbot-api

args:["--debug",".\\app\\Main.hs"]

Looking for project config cradle...

2020-02-06 07:30:52.1739136 [ThreadId 3] - Cabal-Helper found these projects: ["ProjLocStackYaml {plStackYaml = \"D:\\\\dev\\\\healthbot\\\\healthbot-api\\\\stack.yaml\"}","ProjLocV2Dir {plProjectDirV2 = \"D:\\\\dev\\\\healthbot\\\\healthbot-api\"}","ProjLocV1Dir {plProjectDirV1 = \"D:\\\\dev\\\\healthbot\\\\healthbot-api\"}"]
2020-02-06 07:30:52.1739136 [ThreadId 3] - These projects have the build tools installed: ["ProjLocStackYaml {plStackYaml = \"D:\\\\dev\\\\healthbot\\\\healthbot-api\\\\stack.yaml\"}","ProjLocV2Dir {plProjectDirV2 = \"D:\\\\dev\\\\healthbot\\\\healthbot-api\"}","ProjLocV1Dir {plProjectDirV1 = \"D:\\\\dev\\\\healthbot\\\\healthbot-api\"}"]
2020-02-06 07:30:52.1739136 [ThreadId 3] - Cabal-Helper decided to use: ProjLocStackYaml {plStackYaml = "D:\\dev\\healthbot\\healthbot-api\\stack.yaml"}
2020-02-06 07:30:52.1739136 [ThreadId 3] - Cabal-Helper dirs: ["D:\\dev\\healthbot\\healthbot-api","D:\\dev\\healthbot\\healthbot-api\\File.hs"]
'stty' is not recognized as an internal or external command,
operable program or batch file.
'stty' is not recognized as an internal or external command,
operable program or batch file.
'stty' is not recognized as an internal or external command,
operable program or batch file.
2020-02-06 07:30:53.3205213 [ThreadId 3] - Cabal-Helper cradle package: Package {pPackageName = "healthbot-api", pSourceDir = "D:\\dev\\healthbot\\healthbot-api", pCabalFile = CabalFile "D:\\dev\\healthbot\\healthbot-api\\healthbot-api.cabal", pFlags = [], pUnits = Unit {uUnitId = UnitId "healthbot-api", uPackage = Package {pPackageName = "healthbot-api", pSourceDir = "D:\\dev\\healthbot\\healthbot-api", pCabalFile = CabalFile "D:\\dev\\healthbot\\healthbot-api\\healthbot-api.cabal", pFlags = [], pUnits = ()}, uDistDir = DistDirLib "D:\\dev\\healthbot\\healthbot-api\\.stack-work\\dist\\e626a42b", uImpl = UnitImplStack} :| []}
2020-02-06 07:30:53.3215213 [ThreadId 3] - Cabal-Helper normalisedPackageLocation: D:\dev\healthbot\healthbot-api
2020-02-06 07:30:53.3215213 [ThreadId 3] - Module "D:\dev\healthbot\healthbot-api\File.hs" is loaded by Cradle: Cradle {cradleRootDir = "D:\\dev\\healthbot\\healthbot-api", cradleOptsProg = CradleAction: Other Stack}
2020-02-06 07:30:53.3225213 [ThreadId 3] - Executing Stack GHC with args: --numeric-version
2020-02-06 07:30:53.5662774 [ThreadId 3] - GHC Output: "Just "8.6.5""
2020-02-06 07:30:53.5662774 [ThreadId 3] - Executing Stack GHC with args: --print-libdir
2020-02-06 07:30:53.8384354 [ThreadId 3] - GHC Output: "Just "C:\\Users\\tuomo\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.6.5\\lib""


###################################################

Cradle: Stack project
Project Ghc version: 8.6.5
Libdir: Just "C:\\Users\\tuomo\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.6.5\\lib"
Searching for Haskell source files...
Found 1 Haskell source files.

###################################################

Found the following files:

D:\dev\healthbot\healthbot-api\app\Main.hs


Load them all now. This may take a very long time.

2020-02-06 07:30:53.8485831 [ThreadId 3] - New cradle: D:\dev\healthbot\healthbot-api\app\Main.hs
2020-02-06 07:30:53.8566314 [ThreadId 3] - Cabal-Helper found these projects: ["ProjLocStackYaml {plStackYaml = \"D:\\\\dev\\\\healthbot\\\\healthbot-api\\\\stack.yaml\"}","ProjLocV2Dir {plProjectDirV2 = \"D:\\\\dev\\\\healthbot\\\\healthbot-api\"}","ProjLocV1Dir {plProjectDirV1 = \"D:\\\\dev\\\\healthbot\\\\healthbot-api\"}"]
2020-02-06 07:30:53.8566314 [ThreadId 3] - These projects have the build tools installed: ["ProjLocStackYaml {plStackYaml = \"D:\\\\dev\\\\healthbot\\\\healthbot-api\\\\stack.yaml\"}","ProjLocV2Dir {plProjectDirV2 = \"D:\\\\dev\\\\healthbot\\\\healthbot-api\"}","ProjLocV1Dir {plProjectDirV1 = \"D:\\\\dev\\\\healthbot\\\\healthbot-api\"}"]
2020-02-06 07:30:53.8566314 [ThreadId 3] - Cabal-Helper decided to use: ProjLocStackYaml {plStackYaml = "D:\\dev\\healthbot\\healthbot-api\\stack.yaml"}
2020-02-06 07:30:53.8566314 [ThreadId 3] - Cabal-Helper dirs: ["D:\\dev\\healthbot\\healthbot-api","D:\\dev\\healthbot\\healthbot-api\\app\\Main.hs"]
'stty' is not recognized as an internal or external command,
operable program or batch file.
'stty' is not recognized as an internal or external command,
operable program or batch file.
'stty' is not recognized as an internal or external command,
operable program or batch file.
2020-02-06 07:30:54.9332563 [ThreadId 3] - Cabal-Helper cradle package: Package {pPackageName = "healthbot-api", pSourceDir = "D:\\dev\\healthbot\\healthbot-api", pCabalFile = CabalFile "D:\\dev\\healthbot\\healthbot-api\\healthbot-api.cabal", pFlags = [], pUnits = Unit {uUnitId = UnitId "healthbot-api", uPackage = Package {pPackageName = "healthbot-api", pSourceDir = "D:\\dev\\healthbot\\healthbot-api", pCabalFile = CabalFile "D:\\dev\\healthbot\\healthbot-api\\healthbot-api.cabal", pFlags = [], pUnits = ()}, uDistDir = DistDirLib "D:\\dev\\healthbot\\healthbot-api\\.stack-work\\dist\\e626a42b", uImpl = UnitImplStack} :| []}
2020-02-06 07:30:54.9362851 [ThreadId 3] - Cabal-Helper normalisedPackageLocation: D:\dev\healthbot\healthbot-api
2020-02-06 07:30:54.9362851 [ThreadId 3] - Module "D:\dev\healthbot\healthbot-api\app\Main.hs" is loaded by Cradle: Cradle {cradleRootDir = "D:\\dev\\healthbot\\healthbot-api", cradleOptsProg = CradleAction: Other Stack}
2020-02-06 07:30:54.9362851 [ThreadId 3] - Found cradle: Cradle {cradleRootDir = "D:\\dev\\healthbot\\healthbot-api", cradleOptsProg = CradleAction: Other Stack}
2020-02-06 07:30:54.9362851 [ThreadId 3] - Relative Module FilePath: app\Main.hs
Cabal file warning inD:\dev\healthbot\healthbot-api\healthbot-api.cabal@116:3: Unknown field: "exposed-modules"
2020-02-06 07:30:55.8684519 [ThreadId 3] - Unit Info: UnitInfo {uiUnitId = UnitId "healthbot-api", uiPackageId = ("healthbot-api",Version {versionBranch = [0,1,0,0], versionTags = []}), uiComponents = fromList [(ChLibName ChMainLibName,ChComponentInfo {ciComponentName = ChLibName ChMainLibName, ciGhcOptions = ["-fbuilding-cabal-package","-O","-outputdir",".stack-work\\dist\\e626a42b\\build","-odir",".stack-work\\dist\\e626a42b\\build","-hidir",".stack-work\\dist\\e626a42b\\build","-stubdir",".stack-work\\dist\\e626a42b\\build","-i","-i.stack-work\\dist\\e626a42b\\build","-isrc","-isrc/schema","-isrc/api","-isrc/Questions","-isrc/Users","-i.stack-work\\dist\\e626a42b\\build\\autogen","-i.stack-work\\dist\\e626a42b\\build\\global-autogen","-I.stack-work\\dist\\e626a42b\\build\\autogen","-I.stack-work\\dist\\e626a42b\\build\\global-autogen","-I.stack-work\\dist\\e626a42b\\build","-IC:\\Users\\tuomo\\AppData\\Local\\Programs\\stack\\x86_64-windows\\msys2-20180531\\mingw64\\include","-optP-include","-optP.stack-work\\dist\\e626a42b\\build\\autogen\\cabal_macros.h","-this-unit-id","healthbot-api-0.1.0.0-1O6ADnDg0LmEv8EphKixMP","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","C:\\sr\\snapshots\\7a8f3391\\pkgdb","-package-db","D:\\dev\\healthbot\\healthbot-api\\.stack-work\\install\\1f936b5b\\pkgdb","-package-id","QuickCheck-2.13.2-8nV7osDGiuU4p27xQv2fwB","-package-id","aeson-1.4.6.0-K53E18DItjy9g8Be7t7t8G","-package-id","aeson-casing-0.2.0.0-29mkMyN4PhlEQAklQAYQzG","-package-id","aeson-pretty-0.8.8-DLyDdurUvtLEcfanw3zaZG","-package-id","async-2.2.2-EbxQ7tk0OFk9dJNMtaidSf","-package-id","base-4.12.0.0","-package-id","bytestring-0.10.8.2","-package-id","cache-0.1.3.0-CtKPLLcgFgi5FV5YWifm8N","-package-id","containers-0.6.0.1","-package-id","cookie-0.4.5-FViOMgoPVhL3PprTfOcJF2","-package-id","cryptonite-0.25-8JyEaDtvCGzKRFXLw3bUF5","-package-id","email-validate-2.3.2.12-GbNwIUG18OmIfiPIteJRX0","-package-id","envy-2.0.0.0-2Od1qDFVVnIQQlgHtyMsj","-package-id","generics-sop-0.4.0.1-50QtUhSPhiXGrcY9j3QNt9","-package-id","hourglass-0.2.12-FLpbq47lMqJHI4KmEQdGdE","-package-id","jose-0.8.2.0-8ydwUPVZzIm1MtXKIzOLU6","-package-id","lens-4.17.1-6UcvPX0D6PMGgZ1Rf22SD3","-package-id","monad-logger-0.3.31-4IO0yKTI8kw7j986VI3isq","-package-id","mtl-2.2.2","-package-id","persistent-database-url-1.1.0-GaW0tWsAQa0KA2GCzwTydS","-package-id","persistent-postgresql-2.9.1-BtHtCX5RBqkGHDNx019VAF","-package-id","postgresql-binary-0.12.2-GKu7vkyo58D2pM4xLe6ULb","-package-id","quickcheck-instances-0.3.22-HJEDIvVcnx788065b9I2fA","-package-id","quickcheck-text-0.1.2.1-J6TFndn9n9xDWQF3TD48Vb","-package-id","raven-haskell-0.1.3.0-7TfURRqCBdl4aSXaDv5N8o","-package-id","resource-pool-0.2.3.2-9G55onvaeea1FjHHbpCrcb","-package-id","sendgrid-v3-0.1.2.0-ECKX7fHZQQlu768JAfBh2","-package-id","servant-0.16.2-HFIzWKDhUFrFEB2zTegKzU","-package-id","servant-auth-0.3.2.0-1LHTuxUDlW3Fu5LiTAar4I","-package-id","servant-auth-docs-0.2.10.0-GF9J8x6aPRx7nfwdVvRXAy","-package-id","servant-auth-server-0.4.5.0-Itfs6xlm1bD1GMp4NN0rSn","-package-id","servant-auth-swagger-0.2.10.0-4C5BsUMSQJj4EWRqRLEPpp","-package-id","servant-docs-0.11.4-DGgCJbo9NqizhVkWbSyJa","-package-id","servant-server-0.16.2-7ClgGabA81hC5BnH0y1lkr","-package-id","servant-swagger-1.1.7.1-278fur2MN2g3b5Ba9V5w5F","-package-id","squeal-postgresql-0.5.1.0-LLkjtdFtoqECxVTUZMUSRp","-package-id","swagger2-2.4-5S12MJgVFaZAsrN25TKjlu","-package-id","text-1.2.3.1","-package-id","text-show-3.8.2-A8eEuGCOm6AKHrBSvweZmR","-package-id","time-1.8.0.2","-package-id","transformers-0.5.6.2","-package-id","unordered-containers-0.2.10.0-LgoTL3wbBEY5bZIDJiyxW4","-package-id","wai-3.2.2.1-CVGE6ebJmI1JgNLnWqSbLw","-package-id","warp-3.3.5-7i0G5hHE9jL4FgAhVDHHRs","-XHaskell2010"], ciSourceDirs = ["src","src/schema","src/api","src/Questions","src/Users"], ciEntrypoints = ChLibEntrypoint {chExposedModules = [ChModuleName {unChModuleName = "Lib"},ChModuleName {unChModuleName = "Config"},ChModuleName {unChModuleName = "Geolocation"},ChModuleName {unChModuleName = "AnswerChoice"},ChModuleName {unChModuleName = "Helpers"},ChModuleName {unChModuleName = "Gender"},ChModuleName {unChModuleName = "Api"},ChModuleName {unChModuleName = "ApiDocs"},ChModuleName {unChModuleName = "Auth"},ChModuleName {unChModuleName = "Auth.Email"},ChModuleName {unChModuleName = "Schema"},ChModuleName {unChModuleName = "Database.Database"},ChModuleName {unChModuleName = "Database.Setup"},ChModuleName {unChModuleName = "Users.Types"},ChModuleName {unChModuleName = "UsersEndpoint"},ChModuleName {unChModuleName = "Database.Query.Users"},ChModuleName {unChModuleName = "Questions.Types"},ChModuleName {unChModuleName = "QuestionsEndpoint"},ChModuleName {unChModuleName = "Database.Query.Questions"},ChModuleName {unChModuleName = "Answers.Types"},ChModuleName {unChModuleName = "Answers.AnswerMapping"},ChModuleName {unChModuleName = "AnswersEndpoint"},ChModuleName {unChModuleName = "Database.Query.Answers"},ChModuleName {unChModuleName = "Nexts.QuestionBattery"}], chOtherModules = [ChModuleName {unChModuleName = "Paths_healthbot_api"}], chSignatures = []}}),(ChExeName "healthbot-api-exe",ChComponentInfo {ciComponentName = ChExeName "healthbot-api-exe", ciGhcOptions = ["-fbuilding-cabal-package","-O","-outputdir",".stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-odir",".stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-hidir",".stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-stubdir",".stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-i","-i.stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-iapp","-i.stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\autogen","-i.stack-work\\dist\\e626a42b\\build\\global-autogen","-I.stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\autogen","-I.stack-work\\dist\\e626a42b\\build\\global-autogen","-I.stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-IC:\\Users\\tuomo\\AppData\\Local\\Programs\\stack\\x86_64-windows\\msys2-20180531\\mingw64\\include","-optP-include","-optP.stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\autogen\\cabal_macros.h","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","C:\\sr\\snapshots\\7a8f3391\\pkgdb","-package-db","D:\\dev\\healthbot\\healthbot-api\\.stack-work\\install\\1f936b5b\\pkgdb","-package-id","aeson-1.4.6.0-K53E18DItjy9g8Be7t7t8G","-package-id","base-4.12.0.0","-package-id","bytestring-0.10.8.2","-package-id","containers-0.6.0.1","-package-id","envy-2.0.0.0-2Od1qDFVVnIQQlgHtyMsj","-package-id","healthbot-api-0.1.0.0-1O6ADnDg0LmEv8EphKixMP","-package-id","monad-logger-0.3.31-4IO0yKTI8kw7j986VI3isq","-package-id","mtl-2.2.2","-package-id","persistent-2.9.2-ANarIKVNg36IRsMluEyk82","-package-id","persistent-database-url-1.1.0-GaW0tWsAQa0KA2GCzwTydS","-package-id","persistent-postgresql-2.9.1-BtHtCX5RBqkGHDNx019VAF","-package-id","persistent-template-2.6.0-90YVnHzRHg2F4YhVfTgeAs","-package-id","sendgrid-v3-0.1.2.0-ECKX7fHZQQlu768JAfBh2","-package-id","servant-0.16.2-HFIzWKDhUFrFEB2zTegKzU","-package-id","servant-auth-0.3.2.0-1LHTuxUDlW3Fu5LiTAar4I","-package-id","servant-auth-server-0.4.5.0-Itfs6xlm1bD1GMp4NN0rSn","-package-id","servant-server-0.16.2-7ClgGabA81hC5BnH0y1lkr","-package-id","text-1.2.3.1","-package-id","time-1.8.0.2","-package-id","transformers-0.5.6.2","-package-id","wai-3.2.2.1-CVGE6ebJmI1JgNLnWqSbLw","-package-id","warp-3.3.5-7i0G5hHE9jL4FgAhVDHHRs","-XHaskell2010","-threaded","-rtsopts","-with-rtsopts=-N"], ciSourceDirs = ["app"], ciEntrypoints = ChExeEntrypoint {chMainIs = "Main.hs", chOtherModules = [ChModuleName {unChModuleName = "Paths_healthbot_api"}]}}),(ChExeName "migrations",ChComponentInfo {ciComponentName = ChExeName "migrations", ciGhcOptions = ["-fbuilding-cabal-package","-O","-outputdir",".stack-work\\dist\\e626a42b\\build\\migrations\\migrations-tmp","-odir",".stack-work\\dist\\e626a42b\\build\\migrations\\migrations-tmp","-hidir",".stack-work\\dist\\e626a42b\\build\\migrations\\migrations-tmp","-stubdir",".stack-work\\dist\\e626a42b\\build\\migrations\\migrations-tmp","-i","-i.stack-work\\dist\\e626a42b\\build\\migrations\\migrations-tmp","-imigrations","-i.stack-work\\dist\\e626a42b\\build\\migrations\\autogen","-i.stack-work\\dist\\e626a42b\\build\\global-autogen","-I.stack-work\\dist\\e626a42b\\build\\migrations\\autogen","-I.stack-work\\dist\\e626a42b\\build\\global-autogen","-I.stack-work\\dist\\e626a42b\\build\\migrations\\migrations-tmp","-IC:\\Users\\tuomo\\AppData\\Local\\Programs\\stack\\x86_64-windows\\msys2-20180531\\mingw64\\include","-optP-include","-optP.stack-work\\dist\\e626a42b\\build\\migrations\\autogen\\cabal_macros.h","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","C:\\sr\\snapshots\\7a8f3391\\pkgdb","-package-db","D:\\dev\\healthbot\\healthbot-api\\.stack-work\\install\\1f936b5b\\pkgdb","-package-id","base-4.12.0.0","-package-id","bytestring-0.10.8.2","-package-id","containers-0.6.0.1","-package-id","envy-2.0.0.0-2Od1qDFVVnIQQlgHtyMsj","-package-id","healthbot-api-0.1.0.0-1O6ADnDg0LmEv8EphKixMP","-package-id","monad-logger-0.3.31-4IO0yKTI8kw7j986VI3isq","-package-id","mtl-2.2.2","-package-id","persistent-2.9.2-ANarIKVNg36IRsMluEyk82","-package-id","persistent-database-url-1.1.0-GaW0tWsAQa0KA2GCzwTydS","-package-id","persistent-postgresql-2.9.1-BtHtCX5RBqkGHDNx019VAF","-package-id","text-1.2.3.1","-package-id","transformers-0.5.6.2","-XHaskell2010","-threaded","-rtsopts","-with-rtsopts=-N"], ciSourceDirs = ["migrations"], ciEntrypoints = ChExeEntrypoint {chMainIs = "Main.hs", chOtherModules = [ChModuleName {unChModuleName = "Paths_healthbot_api"}]}})], uiCompilerId = ("GHC",Version {versionBranch = [8,6,5], versionTags = []}), uiPackageFlags = [], uiConfigFlags = [], uiNonDefaultConfigFlags = [], uiModTimes = UnitModTimes {umtPkgYaml = Nothing, umtCabalFile = ("D:\\dev\\healthbot\\healthbot-api\\healthbot-api.cabal",1580966713), umtSetupConfig = Just ("D:\\dev\\healthbot\\healthbot-api\\.stack-work\\dist\\e626a42b\\setup-config",1580966733)}}
2020-02-06 07:30:55.8775262 [ThreadId 3] - Flags for "D:\dev\healthbot\healthbot-api\app\Main.hs": ["-fbuilding-cabal-package","-O","-outputdir",".stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-odir",".stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-hidir",".stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-stubdir",".stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-i","-iD:\\dev\\healthbot\\healthbot-api\\.stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-iD:\\dev\\healthbot\\healthbot-api\\app","-iD:\\dev\\healthbot\\healthbot-api\\.stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\autogen","-iD:\\dev\\healthbot\\healthbot-api\\.stack-work\\dist\\e626a42b\\build\\global-autogen","-I.stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\autogen","-I.stack-work\\dist\\e626a42b\\build\\global-autogen","-I.stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-IC:\\Users\\tuomo\\AppData\\Local\\Programs\\stack\\x86_64-windows\\msys2-20180531\\mingw64\\include","-optP-include","-optP.stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\autogen\\cabal_macros.h","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","C:\\sr\\snapshots\\7a8f3391\\pkgdb","-package-db","D:\\dev\\healthbot\\healthbot-api\\.stack-work\\install\\1f936b5b\\pkgdb","-package-id","aeson-1.4.6.0-K53E18DItjy9g8Be7t7t8G","-package-id","base-4.12.0.0","-package-id","bytestring-0.10.8.2","-package-id","containers-0.6.0.1","-package-id","envy-2.0.0.0-2Od1qDFVVnIQQlgHtyMsj","-package-id","healthbot-api-0.1.0.0-1O6ADnDg0LmEv8EphKixMP","-package-id","monad-logger-0.3.31-4IO0yKTI8kw7j986VI3isq","-package-id","mtl-2.2.2","-package-id","persistent-2.9.2-ANarIKVNg36IRsMluEyk82","-package-id","persistent-database-url-1.1.0-GaW0tWsAQa0KA2GCzwTydS","-package-id","persistent-postgresql-2.9.1-BtHtCX5RBqkGHDNx019VAF","-package-id","persistent-template-2.6.0-90YVnHzRHg2F4YhVfTgeAs","-package-id","sendgrid-v3-0.1.2.0-ECKX7fHZQQlu768JAfBh2","-package-id","servant-0.16.2-HFIzWKDhUFrFEB2zTegKzU","-package-id","servant-auth-0.3.2.0-1LHTuxUDlW3Fu5LiTAar4I","-package-id","servant-auth-server-0.4.5.0-Itfs6xlm1bD1GMp4NN0rSn","-package-id","servant-server-0.16.2-7ClgGabA81hC5BnH0y1lkr","-package-id","text-1.2.3.1","-package-id","time-1.8.0.2","-package-id","transformers-0.5.6.2","-package-id","wai-3.2.2.1-CVGE6ebJmI1JgNLnWqSbLw","-package-id","warp-3.3.5-7i0G5hHE9jL4FgAhVDHHRs","-XHaskell2010","-threaded","-rtsopts","-with-rtsopts=-N","app\\Main.hs","Paths_healthbot_api"]
2020-02-06 07:30:55.8775262 [ThreadId 3] - Component Infos: ChComponentInfo {ciComponentName = ChExeName "healthbot-api-exe", ciGhcOptions = ["-fbuilding-cabal-package","-O","-outputdir",".stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-odir",".stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-hidir",".stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-stubdir",".stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-i","-i.stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-iapp","-i.stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\autogen","-i.stack-work\\dist\\e626a42b\\build\\global-autogen","-I.stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\autogen","-I.stack-work\\dist\\e626a42b\\build\\global-autogen","-I.stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\healthbot-api-exe-tmp","-IC:\\Users\\tuomo\\AppData\\Local\\Programs\\stack\\x86_64-windows\\msys2-20180531\\mingw64\\include","-optP-include","-optP.stack-work\\dist\\e626a42b\\build\\healthbot-api-exe\\autogen\\cabal_macros.h","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","C:\\sr\\snapshots\\7a8f3391\\pkgdb","-package-db","D:\\dev\\healthbot\\healthbot-api\\.stack-work\\install\\1f936b5b\\pkgdb","-package-id","aeson-1.4.6.0-K53E18DItjy9g8Be7t7t8G","-package-id","base-4.12.0.0","-package-id","bytestring-0.10.8.2","-package-id","containers-0.6.0.1","-package-id","envy-2.0.0.0-2Od1qDFVVnIQQlgHtyMsj","-package-id","healthbot-api-0.1.0.0-1O6ADnDg0LmEv8EphKixMP","-package-id","monad-logger-0.3.31-4IO0yKTI8kw7j986VI3isq","-package-id","mtl-2.2.2","-package-id","persistent-2.9.2-ANarIKVNg36IRsMluEyk82","-package-id","persistent-database-url-1.1.0-GaW0tWsAQa0KA2GCzwTydS","-package-id","persistent-postgresql-2.9.1-BtHtCX5RBqkGHDNx019VAF","-package-id","persistent-template-2.6.0-90YVnHzRHg2F4YhVfTgeAs","-package-id","sendgrid-v3-0.1.2.0-ECKX7fHZQQlu768JAfBh2","-package-id","servant-0.16.2-HFIzWKDhUFrFEB2zTegKzU","-package-id","servant-auth-0.3.2.0-1LHTuxUDlW3Fu5LiTAar4I","-package-id","servant-auth-server-0.4.5.0-Itfs6xlm1bD1GMp4NN0rSn","-package-id","servant-server-0.16.2-7ClgGabA81hC5BnH0y1lkr","-package-id","text-1.2.3.1","-package-id","time-1.8.0.2","-package-id","transformers-0.5.6.2","-package-id","wai-3.2.2.1-CVGE6ebJmI1JgNLnWqSbLw","-package-id","warp-3.3.5-7i0G5hHE9jL4FgAhVDHHRs","-XHaskell2010","-threaded","-rtsopts","-with-rtsopts=-N"], ciSourceDirs = ["app"], ciEntrypoints = ChExeEntrypoint {chMainIs = "Main.hs", chOtherModules = [ChModuleName {unChModuleName = "Paths_healthbot_api"}]}}
2020-02-06 07:30:55.9183909 [ThreadId 3] - Ghc error on cradle initialisation: "cannot satisfy -package-id healthbot-api-0.1.0.0-1O6ADnDg0LmEv8EphKixMP\n    (use -v for more information)"

###################################################
###################################################

Dumping diagnostics:


D:\dev\healthbot\healthbot-api\app\Main.hs: FAILED
        "cannot satisfy -package-id healthbot-api-0.1.0.0-1O6ADnDg0LmEv8EphKixMP\n    (use -v for more information)"


Note: loading of 'Setup.hs' is not supported.

tuomohopia avatar Feb 06 '20 05:02 tuomohopia

thank you for this bug report, I think this is a bug in cabal-helper and we will report this upstream!

fendor avatar Feb 06 '20 10:02 fendor