Skip to content

Print final conflict set when dependency solver fails after an exhaustive search #3570

Closed

Description

@sebright

@kosmikus suggested showing this message at default verbosity because it is often more relevant than the summarized log.

EDIT:
The new message could go here:

(if exh then "Dependency tree exhaustively searched.\n"
This is where the solver prints a message after an exhaustive search. It already has access to the final conflict set, cs.

I would add a unit test to Solver.hs. Here is an example of a test that checks for a specific error message:

, runTest $ mkTest db22 "unknownPackage2" ["A"] (SolverFailure (isInfixOf "unknown package: C"))

Activity

  1. ezyang commented on Jul 17, 2016

    @ezyang
    Contributor

    @GrayJay, if PR is welcome, could you edit your message to say where the code is that you would update to make this change, and how you would test it? Thanks!

  2. sebright commented on Jul 17, 2016

    @sebright
    CollaboratorAuthor

    I realized that the hardest part of this issue is coming up with helpful wording. The task isn't as well-defined as I thought, so I removed the label.

  3. sebright commented on Dec 4, 2016

    @sebright
    CollaboratorAuthor

    Added in #3960.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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