Opened 11 months ago

Last modified 4 months ago

#9133 new task

Improve parser error reporting in `ghc-pkg`

Reported by: hvr Owned by:
Priority: normal Milestone: 7.12.1
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 Revisions:

Description

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 (1)

comment:1 Changed 4 months ago by thoughtpolice

  • Milestone changed from 7.10.1 to 7.12.1

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.

Note: See TracTickets for help on using tickets.