Skip to content

Stack hoogle commands fails due to not finding/installing hoogle #4905

@halhenke

Description

@halhenke

General summary/comments (optional)

stack hoogle commands failed due to not finding/installing hoogle

Steps to reproduce

Run any stack hoogle based command

Expected

Either install hoogle then generate hoogle database or find hoogle then install database

Actual

stack hoogle --verbose
Version 2.1.1, Git revision f612ea85316bbc327a64e4ad8d9f0b150dc12d4b (7648 commits) x86_64 hpack-0.31.2
2019-06-25 09:21:38.401448: [debug] Checking for project config at: /Users/hal/code/haskell/PathTag/stack.yaml
2019-06-25 09:21:38.402267: [debug] Loading project config file stack.yaml
2019-06-25 09:21:38.409633: [debug] SELECT COUNT(*) FROM "last_performed" WHERE ("action"=?) AND ("timestamp">=?); [PersistInt64 1,PersistUTCTime 2019-06-23 23:21:38.409574 UTC]
2019-06-25 09:21:38.410751: [debug] Using package location completions from a lock file
2019-06-25 09:21:38.558151: [debug] Running hpack on /Users/hal/code/haskell/PathTag/package.yaml
2019-06-25 09:21:38.561544: [debug] hpack output unchanged in /Users/hal/code/haskell/PathTag/PathTag.cabal
2019-06-25 09:21:38.561869: [debug] Completing package location information from capability-0.2.0.0@sha256:7049527e0bede44f8aeabdd0f41c50ec78da5835796e6a477615502665127a62
2019-06-25 09:21:38.562188: [debug] Added in cabal file hash: capability-0.2.0.0@sha256:7049527e0bede44f8aeabdd0f41c50ec78da5835796e6a477615502665127a62,2424
2019-06-25 09:21:38.562443: [debug] Completing package location information from superrecord-0.5.0.1@sha256:ef0dd316eda7761da831071f729aec3373b44d223b818f9b078be9fba1378b95
2019-06-25 09:21:38.562626: [debug] Added in cabal file hash: superrecord-0.5.0.1@sha256:ef0dd316eda7761da831071f729aec3373b44d223b818f9b078be9fba1378b95,2476
2019-06-25 09:21:38.562774: [debug] Completing package location information from brick-0.47@sha256:4936c50acfdf09620dad5217fb384fc0d59626f75abed8b48250b419ec2ab623
2019-06-25 09:21:38.563005: [debug] Added in cabal file hash: brick-0.47@sha256:4936c50acfdf09620dad5217fb384fc0d59626f75abed8b48250b419ec2ab623,13852
2019-06-25 09:21:38.563175: [debug] Completing package location information from config-ini-0.2.4.0@sha256:38a6d484d471c6fac81445de2eac8c4e8c82760962fca5491ae1c3bfca9c4047
2019-06-25 09:21:38.563349: [debug] Added in cabal file hash: config-ini-0.2.4.0@sha256:38a6d484d471c6fac81445de2eac8c4e8c82760962fca5491ae1c3bfca9c4047,3232
2019-06-25 09:21:38.563484: [debug] Completing package location information from data-clist-0.1.2.2@sha256:4d70add0a200a178853cd37c6469101bac3c36aebb3aa9c503ff225211b1a8c9
2019-06-25 09:21:38.563647: [debug] Added in cabal file hash: data-clist-0.1.2.2@sha256:4d70add0a200a178853cd37c6469101bac3c36aebb3aa9c503ff225211b1a8c9,936
2019-06-25 09:21:38.563843: [debug] Completing package location information from haskell-src-exts-1.21.0@sha256:02421cacaa48c055551b8e5796efc543301b7ea9527a38e1385403d2b85512fb,4467
2019-06-25 09:21:38.563993: [debug] Completing package location information from text-zipper-0.10.1@sha256:8b73a97a3717a17df9b0a722b178950c476ff2268ca5c583e99d010c94af849e
2019-06-25 09:21:38.567512: [debug] Added in cabal file hash: text-zipper-0.10.1@sha256:8b73a97a3717a17df9b0a722b178950c476ff2268ca5c583e99d010c94af849e,1471
2019-06-25 09:21:38.567715: [debug] Completing package location information from word-wrap-0.4.1@sha256:f72233b383ef569c557bfd9812cbb8e306c415ce509082c0bd15ee51c0239ccc
2019-06-25 09:21:38.567950: [debug] Added in cabal file hash: word-wrap-0.4.1@sha256:f72233b383ef569c557bfd9812cbb8e306c415ce509082c0bd15ee51c0239ccc,1606
2019-06-25 09:21:38.569160: [debug] Asking for a supported GHC version
2019-06-25 09:21:38.569471: [debug] Installed tools:
 - ghc-8.6.4
 - ghc-8.6.2
 - ghc-8.6.5
 - ghc-8.6.3
 - ghc-8.2.1
 - ghc-8.2.2
2019-06-25 09:21:38.569872: [debug] Potential GHC builds: standard
2019-06-25 09:21:38.569909: [debug] Found already installed GHC builds: standard
2019-06-25 09:21:38.570103: [debug] SELECT "id","actual_version","arch","ghc_path","ghc_size","ghc_modified","ghc_pkg_path","runghc_path","haddock_path","cabal_version","global_db","global_db_cache_size","global_db_cache_modified","info","global_dump" FROM "compiler_cache" WHERE "ghc_path"=?; [PersistText "/Users/hal/.stack/programs/x86_64-osx/ghc-8.6.3/bin/ghc-8.6.3"]
2019-06-25 09:21:38.628223: [debug] Loaded compiler information from cache
2019-06-25 09:21:38.628387: [debug] Asking for a supported GHC version
2019-06-25 09:21:38.629707: [debug] Resolving package entries
2019-06-25 09:21:38.629793: [debug] Parsing the targets
2019-06-25 09:21:38.634125: [debug] Checking flags
2019-06-25 09:21:38.634276: [debug] SourceMap constructed
2019-06-25 09:21:38.643602: [debug] Starting to execute command inside EnvConfig
2019-06-25 09:21:38.643971: [warn] Hoogle isn't installed. Automatically installing (use --no-setup to disable) ...
2019-06-25 09:21:38.656868: [info] Minimum version is hoogle-5.0. Found acceptable hoogle-5.0.17.9@sha256:beb55b392cb15e62ef1183d6adc40117c00eacd3958717a05f244948c6588740,3159 in your index, installing it.
2019-06-25 09:21:38.657018: [debug] Using package location completions from a lock file
2019-06-25 09:21:38.782187: [debug] Completing package location information from capability-0.2.0.0@sha256:7049527e0bede44f8aeabdd0f41c50ec78da5835796e6a477615502665127a62
2019-06-25 09:21:38.782469: [debug] Added in cabal file hash: capability-0.2.0.0@sha256:7049527e0bede44f8aeabdd0f41c50ec78da5835796e6a477615502665127a62,2424
2019-06-25 09:21:38.782608: [debug] Completing package location information from superrecord-0.5.0.1@sha256:ef0dd316eda7761da831071f729aec3373b44d223b818f9b078be9fba1378b95
2019-06-25 09:21:38.782774: [debug] Added in cabal file hash: superrecord-0.5.0.1@sha256:ef0dd316eda7761da831071f729aec3373b44d223b818f9b078be9fba1378b95,2476
2019-06-25 09:21:38.782890: [debug] Completing package location information from brick-0.47@sha256:4936c50acfdf09620dad5217fb384fc0d59626f75abed8b48250b419ec2ab623
2019-06-25 09:21:38.783103: [debug] Added in cabal file hash: brick-0.47@sha256:4936c50acfdf09620dad5217fb384fc0d59626f75abed8b48250b419ec2ab623,13852
2019-06-25 09:21:38.783255: [debug] Completing package location information from config-ini-0.2.4.0@sha256:38a6d484d471c6fac81445de2eac8c4e8c82760962fca5491ae1c3bfca9c4047
2019-06-25 09:21:38.783416: [debug] Added in cabal file hash: config-ini-0.2.4.0@sha256:38a6d484d471c6fac81445de2eac8c4e8c82760962fca5491ae1c3bfca9c4047,3232
2019-06-25 09:21:38.783533: [debug] Completing package location information from data-clist-0.1.2.2@sha256:4d70add0a200a178853cd37c6469101bac3c36aebb3aa9c503ff225211b1a8c9
2019-06-25 09:21:38.783681: [debug] Added in cabal file hash: data-clist-0.1.2.2@sha256:4d70add0a200a178853cd37c6469101bac3c36aebb3aa9c503ff225211b1a8c9,936
2019-06-25 09:21:38.783932: [debug] Completing package location information from haskell-src-exts-1.21.0@sha256:02421cacaa48c055551b8e5796efc543301b7ea9527a38e1385403d2b85512fb,4467
2019-06-25 09:21:38.784040: [debug] Completing package location information from text-zipper-0.10.1@sha256:8b73a97a3717a17df9b0a722b178950c476ff2268ca5c583e99d010c94af849e
2019-06-25 09:21:38.784195: [debug] Added in cabal file hash: text-zipper-0.10.1@sha256:8b73a97a3717a17df9b0a722b178950c476ff2268ca5c583e99d010c94af849e,1471
2019-06-25 09:21:38.784304: [debug] Completing package location information from word-wrap-0.4.1@sha256:f72233b383ef569c557bfd9812cbb8e306c415ce509082c0bd15ee51c0239ccc
2019-06-25 09:21:38.784457: [debug] Added in cabal file hash: word-wrap-0.4.1@sha256:f72233b383ef569c557bfd9812cbb8e306c415ce509082c0bd15ee51c0239ccc,1606
2019-06-25 09:21:38.785348: [debug] Asking for a supported GHC version
2019-06-25 09:21:38.785676: [debug] Installed tools:
 - ghc-8.6.4
 - ghc-8.6.2
 - ghc-8.6.5
 - ghc-8.6.3
 - ghc-8.2.1
 - ghc-8.2.2
2019-06-25 09:21:38.786049: [debug] Potential GHC builds: standard
2019-06-25 09:21:38.786081: [debug] Found already installed GHC builds: standard
2019-06-25 09:21:38.786226: [debug] SELECT "id","actual_version","arch","ghc_path","ghc_size","ghc_modified","ghc_pkg_path","runghc_path","haddock_path","cabal_version","global_db","global_db_cache_size","global_db_cache_modified","info","global_dump" FROM "compiler_cache" WHERE "ghc_path"=?; [PersistText "/Users/hal/.stack/programs/x86_64-osx/ghc-8.6.3/bin/ghc-8.6.3"]
2019-06-25 09:21:38.821312: [debug] Loaded compiler information from cache
2019-06-25 09:21:38.821437: [debug] Asking for a supported GHC version
2019-06-25 09:21:38.822489: [debug] Resolving package entries
2019-06-25 09:21:38.822548: [debug] Parsing the targets
2019-06-25 09:21:38.882071: [debug] Checking flags
2019-06-25 09:21:38.882138: [debug] SourceMap constructed
2019-06-25 09:21:38.886435: [debug] Starting to execute command inside EnvConfig
2019-06-25 09:21:38.890141: [debug] Finding out which packages are already installed
2019-06-25 09:21:38.890312: [debug] Run process: /Users/hal/.stack/programs/x86_64-osx/ghc-8.6.3/bin/ghc-pkg-8.6.3 --global --no-user-package-db dump --expand-pkgroot
2019-06-25 09:21:38.948583: [debug] Process finished in 58ms: /Users/hal/.stack/programs/x86_64-osx/ghc-8.6.3/bin/ghc-pkg-8.6.3 --global --no-user-package-db dump --expand-pkgroot
2019-06-25 09:21:38.951383: [debug] Ignoring package haskeline due to wanting version 0.7.5.0 instead of 0.7.4.3
2019-06-25 09:21:38.953093: [debug] Ignoring package Cabal due to wanting version 2.4.1.0 instead of 2.4.0.1
2019-06-25 09:21:38.953839: [debug] Run process: /Users/hal/.stack/programs/x86_64-osx/ghc-8.6.3/bin/ghc-pkg-8.6.3 --user --no-user-package-db --package-db /Users/hal/.stack/snapshots/x86_64-osx/c19da423c573e10b6cdcf0f1f51ead47485b56ef54185d1a57bad3717977b839/8.6.3/pkgdb dump --expand-pkgroot
2019-06-25 09:21:39.071878: [debug] Process finished in 118ms: /Users/hal/.stack/programs/x86_64-osx/ghc-8.6.3/bin/ghc-pkg-8.6.3 --user --no-user-package-db --package-db /Users/hal/.stack/snapshots/x86_64-osx/c19da423c573e10b6cdcf0f1f51ead47485b56ef54185d1a57bad3717977b839/8.6.3/pkgdb dump --expand-pkgroot
2019-06-25 09:21:39.075935: [debug] Run process: /Users/hal/.stack/programs/x86_64-osx/ghc-8.6.3/bin/ghc-pkg-8.6.3 --user --no-user-package-db --package-db /Users/hal/code/haskell/PathTag/.stack-work/install/x86_64-osx/c19da423c573e10b6cdcf0f1f51ead47485b56ef54185d1a57bad3717977b839/8.6.3/pkgdb dump --expand-pkgroot
2019-06-25 09:21:39.120018: [debug] Process finished in 44ms: /Users/hal/.stack/programs/x86_64-osx/ghc-8.6.3/bin/ghc-pkg-8.6.3 --user --no-user-package-db --package-db /Users/hal/code/haskell/PathTag/.stack-work/install/x86_64-osx/c19da423c573e10b6cdcf0f1f51ead47485b56ef54185d1a57bad3717977b839/8.6.3/pkgdb dump --expand-pkgroot
2019-06-25 09:21:39.120470: [debug] Constructing the build plan
2019-06-25 09:21:39.163569: [debug] Parsing cabal file for hoogle (from Hackage)
2019-06-25 09:21:39.165275: [debug] Checking if we are going to build multiple executables with the same name
2019-06-25 09:21:39.165334: [debug] Executing the build plan
2019-06-25 09:21:39.189879: [info] Haddock index for snapshot packages already up to date at:
/Users/hal/.stack/snapshots/x86_64-osx/c19da423c573e10b6cdcf0f1f51ead47485b56ef54185d1a57bad3717977b839/8.6.3/doc/index.html
2019-06-25 09:21:39.190191: [warn] Couldn't find hoogle in path after installing.  This shouldn't happen, may be a bug.```

### Stack version

$ stack --version
Version 2.1.1, Git revision f612ea8 (7648 commits) x86_64 hpack-0.31.2


### Method of installation

curl -sSL https://get.haskellstack.org/ | sh


Error message comes from here:

https://github.com/commercialhaskell/stack/blob/89d165b8df7f09263e3e15fc165d9da35bf37b60/src/Stack/Hoogle.hs#L178

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions