Community
Participate
Working Groups
Build Identifier: It happens that in case of problems with p2 the error message is a rather general "resolution error". (Unfortunately i don't know exactly when this error message occurs.) See also bug 365752 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=365752#c1): 'We really need to fix the debug output - everything is a "resolution error"...' Reproducible: Always
Please provide example message or, better yet, an example project that results in such a message.
Created attachment 210264 [details] output that provides the error message
I created this as a result of Bug 365752. I ran the example i provided there again (do you want me to attach that project to this bug too?). The output of that build which shows the error message is added as an attachment. The problem is: The error message says the package cannot be resolved ("Missing Constraint: Import-Package: org.hamcrest; version="1.1.0""). As a result you start to check the target platform but that seems fine so you're left wondering why it cannot be resolved. As an afterthought: i am not sure how Tycho could provide an error message that is more descriptive. In this case it turned out to be a p2 bug.
Took me a while to understand this problem again: The p2 resolver provides a plan but without taking mandatory attributes into account (p2 bug 360659). Next, the Equinox resolver fails because it does take the attributes into account. In a log of recent Tycho releases, Tycho prints out what it is doing ("Computing target platform", "Resolving dependencies", "Resolving class path") so that users can at least say that there was a "resolution error" during class path computation (=Equinox resolver). Still, we should improve the error message in this case, point to the http://wiki.eclipse.org/Tycho_Messages_Explained page and provide more details&workarounds there.
As mentioned by Tobias, logs have improved some time ago. Let's mark as resolved then, and please open new bugs with concrete examples if you think some message are still too hard to understand.