Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] Kepler SR2: Advice on feature-rename migration paths needed

Hi again,

>> Do you need to do any "real" migration from 1.x to 2.x, for example
>> workspace data format upgrades and the like, or it is purely feature
>> rename? I vaguely remember there was way to tell p2 that one installable
>> unit replaces another, which directly supports your feature rename
>> scenario.
> 
> thanks for the pointer. I suppose you mean this [1]? The documentation
> is a bit terse (and I am unsure whether Tycho fully supports p2.inf).
> But I'll give it a try.

Tycho supports this and Eclipse picks successfully picks up a p2.inf of

  update.id = o.e.r.feature.rcp.feature.group
  update.range = 0.0.0

However, the original "o.e.r.feature.rcp" feature had included features
(like "o.e.r.feature.completion.rcp.intellig") while the renamed one
("o.e.r.rcp.feature", with the above p2.inf) has not. Apparently, this
causes the installation of "o.e.r.rcp.feature" to fail.

Oddly enough, the installer is still aware that, despite the name
change, it is really performing an update of "o.e.r.rcp.feature" but
with the included features things go wrong:

> Your original request has been modified.
>   "Code Recommenders Developer Tools" is already installed, so an update will be performed instead.
> Cannot complete the install because of a conflicting dependency.
>   Software being installed: Code Recommenders Developer Tools 2.0.5.v20140110-1444 (org.eclipse.recommenders.rcp.feature.feature.group 2.0.5.v20140110-1444)
>   Software currently installed: Eclipse DSL Tools 2.0.1.20130919-0803 (epp.package.dsl 2.0.1.20130919-0803)
>   Only one of the following can be installed at once: 
>     Code Recommenders: Intelligent Code Completion Runtime 2.0.5.v20140107-1248 (org.eclipse.recommenders.completion.rcp 2.0.5.v20140107-1248)
>     Code Recommenders: Intelligent Completion Runtime 1.0.5.v20130822-0858-b90 (org.eclipse.recommenders.completion.rcp 1.0.5.v20130822-0858-b90)
>   Cannot satisfy dependency:
>     From: Eclipse DSL Tools 2.0.1.20130919-0803 (epp.package.dsl 2.0.1.20130919-0803)
>     To: org.eclipse.epp.package.dsl.feature.feature.group [2.0.1.20130919-0803]
>   Cannot satisfy dependency:
>     From: EPP DSL Feature 2.0.1.20130919-0803 (org.eclipse.epp.package.dsl.feature.feature.group 2.0.1.20130919-0803)
>     To: org.eclipse.recommenders.feature.rcp.feature.group 0.0.0
>   Cannot satisfy dependency:
>     From: Code Recommenders: Intelligent Completion 1.0.5.v20130822-0858-b90 (org.eclipse.recommenders.feature.completion.rcp.intellig.feature.group 1.0.5.v20130822-0858-b90)
>     To: org.eclipse.recommenders.completion.rcp [1.0.5.v20130822-0858-b90]
>   Cannot satisfy dependency:
>     From: Code Recommenders Developer Tools 1.0.5.v20130822-0858-b90 (org.eclipse.recommenders.feature.rcp.feature.group 1.0.5.v20130822-0858-b90)
>     To: org.eclipse.recommenders.feature.completion.rcp.intellig.feature.group [1.0.5.v20130822-0858-b90]
>   Cannot satisfy dependency:
>     From: Code Recommenders Developer Tools 2.0.5.v20140110-1444 (org.eclipse.recommenders.rcp.feature.feature.group 2.0.5.v20140110-1444)
>     To: org.eclipse.recommenders.completion.rcp [2.0.5.v20140107-1248]

So, I guess I'll have to use the "migration feature" approach rather
than the otherwise nicer p2.inf solution. :-(

Best wishes,

Andreas

-- 
Codetrails UG (haftungsbeschränkt)
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940


Back to the top