Opened 3 years ago

Last modified 20 months ago

#9133 new task

Improve parser error reporting in `ghc-pkg`

Reported by: hvr Owned by:
Priority: normal Milestone:
Component: ghc-pkg Version: 7.8.2
Keywords: Cc: duncan
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


Here's what I was confronted recently due to a broken sandbox environment:

$ cabal info parsec
cabal: ghc-pkg: Data.Binary.Get.runGet at position 9583: demandInput: not enough bytes

The main problem is that this message is not very helpful (other than telling that ghc-pkg wasn't able to do something). Duncan told me, that the recent binary API now provides better facilities for error reporting. That could be used to improve the UI of ghc-pkg when reporting errors.

Change History (3)

comment:1 Changed 3 years ago by thoughtpolice


Moving to 7.12.1 milestone; if you feel this is an error and should be addressed sooner, please move it back to the 7.10.1 milestone.

comment:2 Changed 2 years ago by thoughtpolice


Milestone renamed

comment:3 Changed 20 months ago by thomie

Milestone: 8.0.1
Note: See TracTickets for help on using tickets.