[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Planner explanation question

From a quick code inspection to SimplePlanner, setting explanation to false will completely disable the explanation support (this is used in the case of the dropins to avoid computing the explanation since there is no one to read it).
Some of the missing requirements are filtered as part of the Slicer (but this is expected and filter out the noise), but after that the explanation is constructed by the solver and it tries to return the minimal explanation between what you have installed and what you are trying to install.

However if you have several missing requirements I think it will stop at the first one. Is that the pb you are seeing?

If you can provide an automated test case, we could see what can be done.

On 2011-05-12, at 1:40 PM, Todorova, Katya wrote:

Hi guys,
 
I came across a strange behavior of p2 planner - it hides information when trying to resolve an IU and resolution fails (due to missing requirements for example).
If there are more than one missing requirements the final explanation (and corresponding MultiStatus) will contain only the first one found. This default behavior
could be avoided if "org.eclipse.equinox.p2.director.explain" property is set to "false" in the provisioning context used by the planner.
 
I thought that the explanation is supposed to contain more details than the "ordinary" status but it turned out it's not the case and it contains even less. Is that expected?
If yes, any idea why?
 
Thanks in advance,
Katya
 
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev