-
Notifications
You must be signed in to change notification settings - Fork 13
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
Improve error messages #9
Comments
See also: pubgrub-rs/pubgrub#163 Or more generally the work on the simplify method in pubgrub. |
Note that we already implement something akin to PubGrub's error simplification algorithm, based on this blogpost. There are still a few improvements we could make, though:
Edit: I also see now that the simplification step doesn't seem to be implemented for Excluded stuff. That's something to fix as well (sub-edit: done in this PR). |
I think computing ranges shouldn't be that hard, should it? We would just need to:
But maybe I am not seeing some complications. |
Maybe it is easy after all, I'll be prototyping :) |
Version ranges would be nice indeed. We never looked into it in Mamba because when this was done we had no
But definitely worth a try ! Another thing I would have tried was changing the merge criteria more or less aggressively, depending on if packages have the same version major or minor etc. (this would then be controlled by verbosity). |
In PubGrub-rs we had a similar issue with converting |
Currently it is possible to add your own custom error messages. However, it can now quickly explode with the information that is displayed.
E.g with usage in RIP
It would be good to create certain version ranges for instance that could collapse into a single message.
Also see this issue in rip for another example: prefix-dev/rip#26
The difficulty with this is that users can provider their own way to display errors so ideally we provide the tools to make these error messages nice. I think there are some ways to generalize this over packaging ecosystems.
The text was updated successfully, but these errors were encountered: