-
Notifications
You must be signed in to change notification settings - Fork 239
haddock: internal error: ..Cabal.../share/doc/html/doc-index.json: openBinaryFile: does not exist #1582
Comments
The |
I also bumped into this error on I ended up switching back to |
@pasqu4le are you using GHC 9.2 or earlier? 9.2 series is at the end of life and the Haddock-side fix (#1488) has never been ported to it, unfortunately. SO, you either stick to Cabal 3.6 on GHC 9.2 or you can elect to upgrade both the compiler and the build tool: GHC 9.4+ and Cabal 3.8+ don't seem to suffer from this issue. Some discussion: haskell/cabal#9060 (comment) |
Ah, yes, I'm indeed still using an older version of GHC. @ulysses4ever thank you for answering and for the additional context 👍 |
@pasqu4le good news is that this problem will probably be fixed in the coming real soon now Cabal 3.10.2. |
I'm running into this issue now with |
@jtdaugherty yeah, you can upgrade to GHC 9.4 and then deal with all the clang fallout on windows. |
Cabal 3.10.2.0 exposes a bug in Haddock shipped with GHC 9.0 and 9.2, so we need to work around it by bumping the version of GHC/Haddock we use for building/uploading docs to Hackage, and to prevent build failures we don't ever try to build haddocks for Hackage with older versions of GHC/Haddock. Related: haskell/haddock#1582 (comment) Related: haskell/cabal#8326 Related: haskell/cabal#9060 Related: haskell/cabal#9073 Related: haskell/cabal#9049
Cabal 3.10.2.0 exposes a bug in Haddock shipped with GHC 9.0 and 9.2, so we need to work around it by bumping the version of GHC/Haddock we use for building/uploading docs to Hackage, and to prevent build failures we don't ever try to build haddocks for Hackage with older versions of GHC/Haddock. Related: haskell/haddock#1582 (comment) Related: haskell/cabal#8326 Related: haskell/cabal#9060 Related: haskell/cabal#9073 Related: haskell/cabal#9049
Cabal 3.10.2.0 exposes a bug in Haddock shipped with GHC 9.0 and 9.2, so we need to work around it by bumping the version of GHC/Haddock we use for building/uploading docs to Hackage, and to prevent build failures we don't ever try to build haddocks for Hackage with older versions of GHC/Haddock. Related: haskell/haddock#1582 (comment) Related: haskell/cabal#8326 Related: haskell/cabal#9060 Related: haskell/cabal#9073 Related: haskell/cabal#9049
Cabal 3.10.2.0 exposes a bug in Haddock shipped with GHC 9.0 and 9.2, so we need to work around it by bumping the version of GHC/Haddock we use for building/uploading docs to Hackage, and to prevent build failures we don't ever try to build haddocks for Hackage with older versions of GHC/Haddock. Related: haskell/haddock#1582 (comment) Related: haskell/cabal#8326 Related: haskell/cabal#9060 Related: haskell/cabal#9073 Related: haskell/cabal#9049
Upon executing
cabal v2-haddock --builddir=dist-docs.TTPG5l --haddock-for-hackage --enable-doc
in ghcup-hs repository with ghc-9.2.6 and cabal 3.8.1.0, I get:The text was updated successfully, but these errors were encountered: