You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using --quickjump in my haddock_flags and hit haskell/cabal#8104 with GHC 9.2.2 and haskell_doc does not build anymore.
To Reproduce
Use GHC 9.2.2
Add --quickjump in your haddock_flags
bazel build //path/to/some/haskell_doc:rule
Expected behavior
It should build the haddock documentation, but instead it fails with:
haddock: internal error: external/rules_haskell_ghc_nixpkgs_haskell_toolchain/haddock/interfaces/doc-index.json: openBinaryFile: does not exist (No such file or directory)
The workaround is to remove --quickjump from the list of haddock_flags.
Note that the linked issue above suggest to replace --haddock-quickjump by --hadock-options=--quickjump, but that's what is done in cabal, AFAIK by passing --quickjump to haddock_flags, that's exactly the workaround they suggestion, so it appears that the setup I was using is the same as the workaround they suggest, but it does not fix the problem.
Hence I suppose that something else changed in GHC 9.2.2 in the way haddock works.
Environment
OS name + version: nixos
Bazel version: 4.2.2 from nixos
Version of the rules: a dozens of patchs on top of ea0e70a
Additional context
I'm mostly opening this for reference, I'm satisfied with removing quickjump for now, but it may help any other rules haskell user.
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm using
--quickjump
in myhaddock_flags
and hit haskell/cabal#8104 with GHC 9.2.2 andhaskell_doc
does not build anymore.To Reproduce
--quickjump
in yourhaddock_flags
bazel build //path/to/some/haskell_doc:rule
Expected behavior
It should build the haddock documentation, but instead it fails with:
The workaround is to remove
--quickjump
from the list ofhaddock_flags
.Note that the linked issue above suggest to replace
--haddock-quickjump
by--hadock-options=--quickjump
, but that's what is done incabal
, AFAIK by passing--quickjump
tohaddock_flags
, that's exactly the workaround they suggestion, so it appears that the setup I was using is the same as the workaround they suggest, but it does not fix the problem.Hence I suppose that something else changed in GHC 9.2.2 in the way
haddock
works.Environment
Additional context
I'm mostly opening this for reference, I'm satisfied with removing quickjump for now, but it may help any other rules haskell user.
The text was updated successfully, but these errors were encountered: