Clearer messages when the conflict is caused by strict priority configurations #390
Open
2 tasks done
Labels
type::feature
request for a new feature or capability
Checklist
What is the idea?
When the solver cannot find a solution with strict priority enabled, we say
PackagesNotFoundError
, because the libsolv message is:At that point,
libmamba
might have thrown several warnings likeWhich 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 usingflexible
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
The text was updated successfully, but these errors were encountered: