I'm not an expert in p2's underlying implementation.  p2's resolution is based 
on a SAT solver called SAT4j.  SAT is an NP-Complete problem, and IIRC SAT4j, 
like other solvers, introduces some randomness in exploring the state space, 
and tries to find the best solution within a certain timeframe or number of 
iterations.  Hence you might see different results on different runs.

Brian.


> On 15-May-2017, at 5:18 AM, Andreas Sewe <[email protected]> wrote:
> 
> Hi p2 developers,
> 
> a colleague and I have observed some very weird behavior when installing
> Ctrlflow Insights [1] into a fresh Eclipse Neon.3 for Java developers
> (installed by unzipping the ZIP from [2], *not* provisioned by Oomph).
> 
> We both get the following error message during installation (after a
> short "computing alternate solutions" wait), but in my case I get a
> working solution proposed (upgrade three Code Recommenders features to
> 2.4.7) whereas my colleague is simply told that Ctrlflow Insights cannot
> be installed. Period.
> 
>> Cannot complete the install because of a conflicting dependency.
>>  Software being installed: Ctrlflow Insights Single‐User Edition 
>> 1.22.1.v20170505-0947-b917 
>> (com.codetrails.ctrlflow.editions.pro.feature.feature.group 
>> 1.22.1.v20170505-0947-b917)
>>  Software currently installed: Code Recommenders for Java Developers 
>> 2.4.6.v20170307-1041 (org.eclipse.recommenders.rcp.feature.feature.group 
>> 2.4.6.v20170307-1041)
>>  Only one of the following can be installed at once: 
>>    Code Recommenders Injection Runtime 2.4.0.v20160607-1609 
>> (org.eclipse.recommenders.injection 2.4.0.v20160607-1609)
>>    Code Recommenders Injection Runtime 2.4.3.v20160913-0645 
>> (org.eclipse.recommenders.injection 2.4.3.v20160913-0645)
>>    Code Recommenders Injection Runtime 2.4.5.v20161130-1427 
>> (org.eclipse.recommenders.injection 2.4.5.v20161130-1427)
>>    Code Recommenders Injection Runtime 2.4.6.v20170307-1041 
>> (org.eclipse.recommenders.injection 2.4.6.v20170307-1041)
>>    Code Recommenders Injection Runtime 2.4.7.v20170404-0943 
>> (org.eclipse.recommenders.injection 2.4.7.v20170404-0943)
>>  Cannot satisfy dependency:
>>    From: Ctrlflow Insights Single‐User Edition 1.22.1.v20170505-0947-b917 
>> (com.codetrails.ctrlflow.editions.pro.feature.feature.group 
>> 1.22.1.v20170505-0947-b917)
>>    To: com.codetrails.ctrlflow.editions.starter.feature.feature.group 
>> [2.5.1,2.6.0)
>>  Cannot satisfy dependency:
>>    From: Ctrlflow Code Search Professional 2.5.1.v20170505-0947-b917 
>> (com.codetrails.ctrlflow.editions.starter.feature.feature.group 
>> 2.5.1.v20170505-0947-b917)
>>    To: org.eclipse.recommenders.injection [2.4.7,3.0.0)
>>  Cannot satisfy dependency:
>>    From: Code Recommenders for Java Developers 2.4.6.v20170307-1041 
>> (org.eclipse.recommenders.rcp.feature.feature.group 2.4.6.v20170307-1041)
>>    To: org.eclipse.recommenders.injection [2.4.6.v20170307-1041]
> 
> We are both running a fresh Eclipse install with a fresh workspace. We
> even deleted our ~/.eclipse and ~/.p2 folders to ensure that nothing
> therein was causing this difference in behavior.
> 
> Any advice on how to debug this?
> 
> Best wishes,
> 
> Andreas
> 
> [1] <https://marketplace.eclipse.org/content/ctrlflow-insights-java>
> [2]
> <https://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/neon3>
> 
> -- 
> Codetrails GmbH
> The knowledge transfer company
> 
> Robert-Bosch-Str. 7, 64293 Darmstadt
> Phone: +49-6151-276-7092
> Mobile: +49-170-811-3791
> http://www.codetrails.com/
> 
> Managing Director: Dr. Marcel Bruch
> Handelsregister: Darmstadt HRB 91940
> 
> _______________________________________________
> p2-dev mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe from 
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/p2-dev

_______________________________________________
p2-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/p2-dev

Reply via email to