Open
Description
General summary/comments (optional)
hoogle commands don't work in lts-15
even from a fresh project
Steps to reproduce
$ stack new testhoogle
$ cd testhoogle
$ stack haddock
$ stack hoogle --setup --verbose
Version 2.1.3.1 x86_64 hpack-0.31.2
2020-03-17 09:12:38.832822: [debug] Checking for project config at: /Users/davidspies/testhoogle/stack.yaml
2020-03-17 09:12:38.833261: [debug] Loading project config file stack.yaml
2020-03-17 09:12:38.837065: [debug] SELECT COUNT(*) FROM "last_performed" WHERE ("action"=?) AND ("timestamp">=?); [PersistInt64 1,PersistUTCTime 2020-03-16 16:12:38.837019 UTC]
2020-03-17 09:12:38.837432: [debug] Using package location completions from a lock file
2020-03-17 09:12:38.958762: [debug] Running hpack on /Users/davidspies/testhoogle/package.yaml
2020-03-17 09:12:38.961305: [debug] hpack output unchanged in /Users/davidspies/testhoogle/testhoogle.cabal
2020-03-17 09:12:38.963102: [warn] Stack has not been tested with GHC versions above 8.6, and using 8.8.3, this may fail
2020-03-17 09:12:38.963436: [debug] Installed tools:
- ghc-8.6.4
- ghc-8.6.5
- ghc-8.8.3
- ghc-8.2.2
- ghc-8.8.2
- ghc-8.4.4
2020-03-17 09:12:38.963793: [debug] Potential GHC builds: standard
2020-03-17 09:12:38.963841: [debug] Found already installed GHC builds: standard
2020-03-17 09:12:38.964057: [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/davidspies/.stack/programs/x86_64-osx/ghc-8.8.3/bin/ghc-8.8.3"]
2020-03-17 09:12:39.009270: [debug] Loaded compiler information from cache
2020-03-17 09:12:39.009382: [warn] Stack has not been tested with Cabal versions above 2.4, but version 3.0.1.0 was found, this may fail
2020-03-17 09:12:39.010325: [debug] Resolving package entries
2020-03-17 09:12:39.010384: [debug] Parsing the targets
2020-03-17 09:12:39.012419: [debug] Checking flags
2020-03-17 09:12:39.012460: [debug] SourceMap constructed
2020-03-17 09:12:39.016555: [debug] Starting to execute command inside EnvConfig
2020-03-17 09:12:39.016907: [debug] Run process: /Users/davidspies/.local/bin/hoogle --numeric-version
2020-03-17 09:12:39.073053: [debug] Process finished in 56ms: /Users/davidspies/.local/bin/hoogle --numeric-version
2020-03-17 09:12:39.073312: [warn] No Hoogle database yet. Automatically building haddocks and hoogle database (use --no-setup to disable) ...
2020-03-17 09:12:39.073415: [debug] Using package location completions from a lock file
2020-03-17 09:12:39.194543: [warn] Stack has not been tested with GHC versions above 8.6, and using 8.8.3, this may fail
2020-03-17 09:12:39.194927: [debug] Installed tools:
- ghc-8.6.4
- ghc-8.6.5
- ghc-8.8.3
- ghc-8.2.2
- ghc-8.8.2
- ghc-8.4.4
2020-03-17 09:12:39.195053: [debug] Potential GHC builds: standard
2020-03-17 09:12:39.195083: [debug] Found already installed GHC builds: standard
2020-03-17 09:12:39.195247: [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/davidspies/.stack/programs/x86_64-osx/ghc-8.8.3/bin/ghc-8.8.3"]
2020-03-17 09:12:39.238072: [debug] Loaded compiler information from cache
2020-03-17 09:12:39.238194: [warn] Stack has not been tested with Cabal versions above 2.4, but version 3.0.1.0 was found, this may fail
2020-03-17 09:12:39.238598: [debug] Resolving package entries
2020-03-17 09:12:39.238647: [debug] Parsing the targets
2020-03-17 09:12:39.241027: [debug] Checking flags
2020-03-17 09:12:39.241065: [debug] SourceMap constructed
2020-03-17 09:12:39.244908: [debug] Starting to execute command inside EnvConfig
2020-03-17 09:12:39.246324: [debug] Finding out which packages are already installed
2020-03-17 09:12:39.246695: [debug] Run process: /Users/davidspies/.stack/programs/x86_64-osx/ghc-8.8.3/bin/ghc-pkg-8.8.3 --global --no-user-package-db dump --expand-pkgroot
2020-03-17 09:12:39.309817: [debug] Process finished in 63ms: /Users/davidspies/.stack/programs/x86_64-osx/ghc-8.8.3/bin/ghc-pkg-8.8.3 --global --no-user-package-db dump --expand-pkgroot
2020-03-17 09:12:39.313579: [debug] Run process: /Users/davidspies/.stack/programs/x86_64-osx/ghc-8.8.3/bin/ghc-pkg-8.8.3 --user --no-user-package-db --package-db /Users/davidspies/.stack/snapshots/x86_64-osx/f5a6c2ecaea5767a8268d6af4b93a0008e867891b1d58dc88ea8b85370eaa0e3/8.8.3/pkgdb dump --expand-pkgroot
2020-03-17 09:12:39.361199: [debug] Process finished in 48ms: /Users/davidspies/.stack/programs/x86_64-osx/ghc-8.8.3/bin/ghc-pkg-8.8.3 --user --no-user-package-db --package-db /Users/davidspies/.stack/snapshots/x86_64-osx/f5a6c2ecaea5767a8268d6af4b93a0008e867891b1d58dc88ea8b85370eaa0e3/8.8.3/pkgdb dump --expand-pkgroot
2020-03-17 09:12:39.361459: [debug] Run process: /Users/davidspies/.stack/programs/x86_64-osx/ghc-8.8.3/bin/ghc-pkg-8.8.3 --user --no-user-package-db --package-db /Users/davidspies/testhoogle/.stack-work/install/x86_64-osx/f5a6c2ecaea5767a8268d6af4b93a0008e867891b1d58dc88ea8b85370eaa0e3/8.8.3/pkgdb dump --expand-pkgroot
2020-03-17 09:12:39.411755: [debug] Process finished in 50ms: /Users/davidspies/.stack/programs/x86_64-osx/ghc-8.8.3/bin/ghc-pkg-8.8.3 --user --no-user-package-db --package-db /Users/davidspies/testhoogle/.stack-work/install/x86_64-osx/f5a6c2ecaea5767a8268d6af4b93a0008e867891b1d58dc88ea8b85370eaa0e3/8.8.3/pkgdb dump --expand-pkgroot
2020-03-17 09:12:39.412270: [debug] Constructing the build plan
2020-03-17 09:12:39.413511: [debug] SELECT "id","directory","type","pkg_src","active","path_env_var","haddock" FROM "config_cache" WHERE "directory"=? AND "type"=?; [PersistText "/Users/davidspies/testhoogle/.stack-work/install/x86_64-osx/f5a6c2ecaea5767a8268d6af4b93a0008e867891b1d58dc88ea8b85370eaa0e3/8.8.3/",PersistText "lib:testhoogle-0.1.0.0-AQ7NVcG0mkmClBnn1oJWKz"]
2020-03-17 09:12:39.413920: [debug] SELECT "id", "config_cache_id", "index", "option" FROM "config_cache_dir_option" WHERE ("config_cache_id"=?) ORDER BY "index"; [PersistInt64 2]
2020-03-17 09:12:39.414155: [debug] SELECT "id", "config_cache_id", "index", "option" FROM "config_cache_no_dir_option" WHERE ("config_cache_id"=?) ORDER BY "index"; [PersistInt64 2]
2020-03-17 09:12:39.414300: [debug] SELECT "id", "config_cache_id", "ghc_pkg_id" FROM "config_cache_dep" WHERE ("config_cache_id"=?); [PersistInt64 2]
2020-03-17 09:12:39.414489: [debug] SELECT "id", "config_cache_id", "component" FROM "config_cache_component" WHERE ("config_cache_id"=?); [PersistInt64 2]
2020-03-17 09:12:39.416146: [debug] Start: getPackageFiles /Users/davidspies/testhoogle/testhoogle.cabal
2020-03-17 09:12:39.418104: [debug] Finished in 2ms: getPackageFiles /Users/davidspies/testhoogle/testhoogle.cabal
2020-03-17 09:12:39.419172: [debug] Checking if we are going to build multiple executables with the same name
2020-03-17 09:12:39.419249: [debug] Executing the build plan
2020-03-17 09:12:39.420453: [info] Haddock index for local packages already up to date at:
/Users/davidspies/testhoogle/.stack-work/install/x86_64-osx/f5a6c2ecaea5767a8268d6af4b93a0008e867891b1d58dc88ea8b85370eaa0e3/8.8.3/doc/index.html
2020-03-17 09:12:39.421161: [info] Haddock index for local packages and dependencies already up to date at:
/Users/davidspies/testhoogle/.stack-work/install/x86_64-osx/f5a6c2ecaea5767a8268d6af4b93a0008e867891b1d58dc88ea8b85370eaa0e3/8.8.3/doc/all/index.html
2020-03-17 09:12:39.424789: [info] Haddock index for snapshot packages already up to date at:
/Users/davidspies/.stack/snapshots/x86_64-osx/f5a6c2ecaea5767a8268d6af4b93a0008e867891b1d58dc88ea8b85370eaa0e3/8.8.3/doc/index.html
2020-03-17 09:12:39.425142: [info] Built docs.
2020-03-17 09:12:39.425588: [debug] Run process: /Users/davidspies/.local/bin/hoogle generate --local --database=/Users/davidspies/testhoogle/.stack-work/hoogle/x86_64-osx/f5a6c2ecaea5767a8268d6af4b93a0008e867891b1d58dc88ea8b85370eaa0e3/8.8.3/database.hoo
Starting generate
Reading ghc-pkg... 0.09s
Packages missing documentation: array base binary bytestring Cabal containers deepseq directory filepath ghc ghc-boot ghc-boot-th ghc-compact ghc-heap ghc-prim ghci haskeline hpc integer-gmp libiserv mtl parsec pretty process stm template-haskell terminfo testhoogle text time transformers unix xhtml rts
No packages were found, aborting (use no arguments to index all of Stackage)
2020-03-17 09:12:39.575777: [error] Received ExitFailure 1 when running
Raw command: /Users/davidspies/.local/bin/hoogle generate --local --database=/Users/davidspies/testhoogle/.stack-work/hoogle/x86_64-osx/f5a6c2ecaea5767a8268d6af4b93a0008e867891b1d58dc88ea8b85370eaa0e3/8.8.3/database.hoo
Stack version
$ stack --version
Version 2.1.3.1 x86_64 hpack-0.31.2
Method of installation
- Official binary, downloaded from stackage.org or fpcomplete's package repository
- And then at some point
stack upgrade