| Summary: | Two versions of the same bundle are listed in bundles.info | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Mauro Molinari <mauromol> |
| Component: | p2 | Assignee: | P2 Inbox <equinox.p2-inbox> |
| Status: | CLOSED NOT_ECLIPSE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | andrew.eisenberg, irbull, krzysztof.daniel, tjwatson |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Mauro Molinari
I've seen cases where bundles fail to be removed from bundles.info when an update occurs. This usually happens if someone is creating their own provisioning plan (programatically) and not careful about the additions/removals. However, if you are using p2 applications (the UI or the director) then I haven't heard of this problem. Do you know if this is still an issue? Well, thanks to the help of Andrew Eisenberg of GRECLIPSE, I solved in this way: - uninstalled the GRECLIPSE plugin - closed Eclipse - removed all the JARs in the plugin folder - removed all the duplicate entries in bundles.info - re-run Eclipse - reinstalled the latest version of GRECLIPSE plugin Talking with Andrew, he changed its framework adapter so that it's a singleton now: this should avoid the problem to occur again in the future (I hope to have written it right, I do nothing about p2 and Eclipse bundles from a technical point of view). However, the purpose of this bug was to say: this situation can occur and this leads to bug 365722. Maybe p2 should avoid that in some way... (In reply to comment #0) > Please consider that: > - version 2.5.2 of the Groovy Eclipse plugin was installed [...] > - version 2.6.1 of the Groovy Eclipse plugin was installed [...] (In reply to comment #2) > > Talking with Andrew, he changed its framework adapter so that it's a > singleton now This is a source of some (not all) evilness. If Groovy bundles were not singletons, it was perfectly OK to have more than one version installed. Comment 0 says it was the case. > However, the purpose of this bug was to say: this situation can occur and > this leads to bug 365722. Maybe p2 should avoid that in some way... Bug 365722 has been fixed, so it will not cause problems anymore. P2 can't know intents of developers, and since having one non-singleton bundle installed in two versions is ok, I'm closing this bug as not_eclipse (because it was groovy plugin fault). |