Skip to content

Useless and harmful advice to reconfigure given when saved package config cannot be read #8409

@andreasabel

Description

@andreasabel

I sometimes see the advice given here:

dispConfigStateFileError ConfigStateFileNoParse =
text "Saved package config file is corrupt."
<+> text "Re-run the 'configure' command."

Running cabal configure as advised has never solved the problem, but instead on top destroyed my cabal.project.local (#8408). (Nothing but removing the build folder has helped me so far.)

I never run cabal configure in production (just cabal build directly), so why should this help? Rather, if cabal encounters some corrupt saved configuration upon cabal build it should execute cabal build as if there were no saved configuration lying around.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions