Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Older version preferred over newest version

Tobias,

Thank you very much for your reply. Looking at the tickets, I don't think I can add anything, and there are already two "minimal" projects. But at least now I know I have to work around it, and it's not something that I did wrong.

cheers,
iulian


On Tue, Apr 16, 2013 at 10:25 AM, Oberlies, Tobias <tobias.oberlies@xxxxxxx> wrote:

This is a known problem (https://bugs.eclipse.org/bugs/show_bug.cgi?id=365962) which comes from a limitation in p2: https://bugs.eclipse.org/bugs/show_bug.cgi?id=352560

 

The bug already has an example project attached, but it may be useful to also attach yours.

 

Regards

Tobias

 

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of iulian dragos
Sent: Montag, 15. April 2013 14:14
To: Tycho user list
Subject: [tycho-user] Older version preferred over newest version

 

Hi all,

 

I have an update site with several versions of a bundle, and a plugin that depends on that bundle. I cannot understand why it resolves to the older one (I am using an unversioned dependency). I always assumed the newer version is preferred.

 

In my example, I have a "stable" update site (release versions), and a "dev" update site (milestones). In the "stable" update site I have versions:

 

- 2.0.2

- 3.0.0

 

My tycho build prefers 2.0.2

 

Interestingly, in the "dev" update site, where I have many more versions, the newest one is picked:

 

- 2.1.0.m1

- 2.1.0.m2

..

- 3.0.0.rc1

- 3.0.0.rc2

- 3.0.0.rc3  <-- this one is picked.

 

I attached a minimal project (one dependency in the MANIFEST, one source file). You can run it as

 

mvn -Pscala-ide-stable  -Dtycho.localArtifacts=ignore clean install

 

and it fails with an unresolved import (it picks 2.0.2)

 

mvn -Pscala-ide-dev  -Dtycho.localArtifacts=ignore clean install

 

succeeds.

 

Running with `-X -Dtycho.debug.resolver=..` I don't get any useful information, except the exact version that was picked. Unfortunately, I don't know *why* the older version is considered a better fit.

 

There might be something wrong with my update site, but I can't figure it out. And, unfortunately, I can't add a version to the dependency at the moment.

 

Any ideas on how to debug this thing?

 

thank you,

iulian

 

 

 

--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

Back to the top