Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#9921 closed bug (fixed)

Building Haddocks with Hoogle output results in an error

Reported by: snoyberg Owned by:
Priority: normal Milestone: 8.0.1
Component: Compiler Version: 7.9
Keywords: Cc: ndmitchell@…
Operating System: Unknown/Multiple Architecture: x86_64 (amd64)
Type of failure: Runtime crash Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

With the GHC 7.10 release candidate 1 and cabal-install 1.22 (via Herbert's PPA), I unpacked BoundedChan, configured, and then ran the following, with the given output:

$ cabal haddock --hoogle
Running Haddock for BoundedChan-1.0.3.0...
Preprocessing library BoundedChan-1.0.3.0...
Haddock coverage:
 100% ( 10 / 10) in 'Control.Concurrent.BoundedChan'
haddock: internal error: expectJust getPackageDetails

I can reopen against the Haddock repo instead, but I thought this should be on the 7.10 milestone.

Change History (6)

comment:1 Changed 3 years ago by NeilMitchell

Cc: ndmitchell@… added

comment:2 Changed 3 years ago by luite

Yep this had me scratching my head for a few days. It's a known problem in Haddock and will probably need some changes in both Haddock and Cabal to fix, see https://github.com/haskell/haddock/issues/353

comment:3 Changed 3 years ago by thoughtpolice

Milestone: 7.10.17.12.1

Moving to 7.12.1 milestone.

comment:4 Changed 3 years ago by snoyberg

Why was this moved to the 7.12 milestone? I would certainly consider breaking Hoogle generation a blocker for the release: it's a major regression in a commonly used feature. I'm trying to confirm the fix for this now, but I'd be more comfortable if this was moved back to the 7.10 milestone.

comment:5 Changed 3 years ago by snoyberg

Resolution: fixed
Status: newclosed

Regardless of milestone, I've confirmed that the latest Cabal library fixes this:

https://github.com/haskell/cabal/pull/2439#issuecomment-82985223

Closing the ticket, though Neil may still have problems with the Hoogle generated output.

comment:6 Changed 2 years ago by thoughtpolice

Milestone: 7.12.18.0.1

Milestone renamed

Note: See TracTickets for help on using tickets.