Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearer messages when the conflict is caused by strict priority configurations #390

Open
2 tasks done
jaimergp opened this issue Nov 20, 2023 · 0 comments
Open
2 tasks done
Labels
type::feature request for a new feature or capability

Comments

@jaimergp
Copy link
Contributor

Checklist

  • I added a descriptive title
  • I searched open requests and couldn't find a duplicate

What is the idea?

When the solver cannot find a solution with strict priority enabled, we say PackagesNotFoundError, because the libsolv message is:

Encountered problems while solving:
  - nothing provides requested <package-name>

At that point, libmamba might have thrown several warnings like

warning  libmamba Problem type not implemented SOLVER_RULE_STRICT_REPO_PRIORIT

Which is a hint for some experienced users, but it's not super obvious, and not close to the final message (which is often the only one checked).

Why is this needed?

Better UX when the solver fails to find a solution.

What should happen?

We could decorate the PackagesNotFoundError message with a little hint like "It looks like you have channel_priority set to strict, which can sometimes cause this exception. Consider using flexible for this command using ...".

Additional Context

Comes from https://matrix.to/#/!SOyumkgPRWoXfQYIFH:matrix.org/$170049404134SekiW:gitter.im?via=matrix.org&via=gitter.im&via=staffchat.ethz.ch

@jaimergp jaimergp added the type::feature request for a new feature or capability label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature request for a new feature or capability
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant