-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Unhelpful error messages in case of package version conflicts #3536
Comments
Hello David, I encounter the following error message:
Maybe it's just me, but this message does not really help me solving the conflict. It may be related to the fact that I'm trying to rely on a release candidate version of meteor: Package.onUse(function(api) {
api.versionsFrom('1.0.4-rc.3');
api.use('blaze');
api.use('templating');
api.use('underscore');
api.addFiles('autofocus.js', 'client');
api.export('AutofocusableTags', 'client', { testOnly: true });
});
|
Hum, so here is the message that I got using the new constraint solver:
The error was different but it gave me an intuition to solve the problem. It seems that the version of the CLI that you are using to publish a package enforce “top level” constraints on the package dependencies. Thus I successfully “solved” my problem by using That seems weird to me ; is that expected? |
Hi @mquandalle, I'm glad the new error message is a little more helpful! Yes, that sounds expected. When you run |
I'm not sure this is the correct thread to discuss this issue, but I'm still not convinced this is a reasonable behavior. More specifically I find unintuitive that:
|
A major invariant of Version Solver which makes it much simpler is that it is not invoked to decide what Meteor release to run (except for when you run So yes, if you want to publish a package that explicitly declares itself incompatible with all current non-pre-release versions of Meteor, you will also have to tell Meteor that you want to run a prerelease. |
When running jasmine tests for a standalone package, using
In my Package.onUse(function(api) {
api.versionsFrom('1.2.1');
api.use('ecmascript'); I want to upgrade to version I can resolve the conflict by changing |
Same error/same context as @thomasvanlankveld except that I also have issues with:
My CI is crying 🎱 |
Related: #4610 |
This issue originally started before the new Version Solver was launched with Meteor 1.1. So the original issue (unhelpful error messages when package conflicts occur) has been addressed by the Version Solver. That being said, there is definitely room for improvement. Given that #4610 is an open feature request for better resolution messaging however, I'll close this issue off. Thanks! |
Its so confusiing... hard to believe, this issue is reported in 2015 (about meteor packaging issues.) |
When the version solver can't resolve the dependencies of the project while satisfying all the constraints, it prints a message that doesn't necessarily indicate where the problem is.
A particular case of this is #3351.
Post your repros here.
The text was updated successfully, but these errors were encountered: