-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The hoogle
created by stack hoogle
doesn't contain base package
#6136
Comments
@diqye, thanks for reporting. After a little investigation and experimentation, I think I've not found a way to generate a Hoogle database that contains only the local project packages and the remote |
On further investigation, I think this problem arises because
and, in the packageDocs = find (not . null) $ ask "haddock-html" and does not understand the |
If I amend the |
It looks to me that there is a related upstream error with GHC: https://gitlab.haskell.org/ghc/ghc/-/issues/23476. |
Step 1, I've raised an issue at the Hoogle repository: ndmitchell/hoogle#404. EDIT: Step 2, I've raised a pull request that I consider fixes the issue. |
@mpilgrem Thanks your investigation and analysis. Now I want to , downgrading, resolve my problem with Warning: No hoogle version was found, trying to install the latest version
ghc: panic! (the 'impossible' happened)
(GHC version 8.8.4 for x86_64-apple-darwin):
Prelude.chr: bad argument: 2667577347
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Error: [S-6374]
While building simple Setup.hs (scroll up to its section to see the
error) using:
/Users/diqye/.stack/programs/x86_64-osx/ghc-8.8.4/bin/ghc-8.8.4 -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-3.0.1.0 /Users/diqye/.stack/setup-exe-src/setup-6HauvNHV.hs /Users/diqye/.stack/setup-exe-src/setup-shim-6HauvNHV.hs -o /Users/diqye/.stack/setup-exe-cache/x86_64-osx/tmp-Cabal-simple_6HauvNHV_3.0.1.0_ghc-8.8.4
And my system version is ~/p/api-diqye>uname -a (main|✚?↑1) 22:14
Darwin 192.168.1.7 22.3.0 Darwin Kernel Version 22.3.0: Thu Jan 5 20:49:43 PST 2023; root:xnu-8792.81.2~2/RELEASE_ARM64_T8103 arm64 |
@diqye, I think you may be encountering this GHC bug: https://gitlab.haskell.org/ghc/ghc/-/issues/19452. |
Returning to the original issue, this also affects Haddock documentation built by Cabal (the library) and, consequently, by Stack. I've raised a Cabal issue: haskell/cabal#9000 |
I resolved this issue with Genereate haddoc
and run
|
My local
hoogle
doesn't contain the documentbase
package while my versions is as below.After I have generated database by runing
stack hoogle setup/rebuild
, it seems like as belowThe text was updated successfully, but these errors were encountered: