Skip to content

Haddock --quickjump is broken with GHC 9.2.2 #1746

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

Open
guibou opened this issue May 18, 2022 · 1 comment
Open

Haddock --quickjump is broken with GHC 9.2.2 #1746

guibou opened this issue May 18, 2022 · 1 comment

Comments

@guibou
Copy link
Contributor

guibou commented May 18, 2022

Describe the bug

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.

@avdv
Copy link
Member

avdv commented Nov 29, 2023

I can reproduce this with GHC 9.2.8 and according to this comment here it will not work for GHC 9.2 since the relevant fix has never been backported.

Using GHC 9.4.6 works again. I'll leave this open for now, but it's not a bug on our end.

@avdv avdv removed the type: bug label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants