Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Feature patch a singleton?
Feature patch a singleton? [message #68342] Fri, 17 July 2009 15:39 Go to next message
Ben Vitale is currently offline Ben VitaleFriend
Messages: 247
Registered: July 2009
Senior Member
Is it possible to create a feature patch for a singleton plug-in?

When I run PDE build, I run into problems:

-----
Bundle org.eclipse.debug.ui_3.5.0.v20090603 failed to resolve.:
Another singleton version selected: org.eclipse.debug.ui_3.5.0.v20090717
-----

I have a patch feature which is included in my product feature. That
patch feature includes my patched plug-in (0717 version). The patch
feature indicates the exact version of org.eclipse.platform to patch.

Note that if I modify the Manifest to remove the singleton clause, I can
run PDE build and install the product. But the behavior of the plug-in
is different at runtime and it doesn't work properly.

Thanks
Ben
Re: Feature patch a singleton? [message #68376 is a reply to message #68342] Fri, 17 July 2009 21:41 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
> Is it possible to create a feature patch for a singleton plug-in?

yes, that's possible.

> When I run PDE build, I run into problems:
>
> -----
> Bundle org.eclipse.debug.ui_3.5.0.v20090603 failed to resolve.:
> Another singleton version selected: org.eclipse.debug.ui_3.5.0.v20090717
> -----

let me double check: you're seeing this during building?

> I have a patch feature which is included in my product feature. That
> patch feature includes my patched plug-in (0717 version). The patch
> feature indicates the exact version of org.eclipse.platform to patch.

Do you have more context of when the above message is printed?
What you describe looks OK to me. PDE build shouldn't try to
resolve the old version.

Also: are you building headless or from the wizard? In the latter
case it might make a difference which plugins are taken from your
workspace and which ones from the host or target platform.

When building headless you might find some clues in the generated
ant build files.

> Note that if I modify the Manifest to remove the singleton clause, I can
> run PDE build and install the product. But the behavior of the plug-in
> is different at runtime and it doesn't work properly.

it might not even be using your patched version, it just doesn't
complain about two versions of the same plugin.

Stephan
Re: Feature patch a singleton? [message #68413 is a reply to message #68342] Mon, 20 July 2009 14:59 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The problem is generally that PDE/Build does not have any special
knowledge of feature patches. It just thinks they are regular features.
So it sees both the original and the patch asking for different
versions of a singleton.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=84351#c21,
work around is setting "resolution.devMode=true"

-Andrew
Ben Vitale wrote:
> Is it possible to create a feature patch for a singleton plug-in?
>
> When I run PDE build, I run into problems:
>
> -----
> Bundle org.eclipse.debug.ui_3.5.0.v20090603 failed to resolve.:
> Another singleton version selected: org.eclipse.debug.ui_3.5.0.v20090717
> -----
>
> I have a patch feature which is included in my product feature. That
> patch feature includes my patched plug-in (0717 version). The patch
> feature indicates the exact version of org.eclipse.platform to patch.
>
> Note that if I modify the Manifest to remove the singleton clause, I can
> run PDE build and install the product. But the behavior of the plug-in
> is different at runtime and it doesn't work properly.
>
> Thanks
> Ben
Re: Feature patch a singleton? [message #68450 is a reply to message #68413] Mon, 20 July 2009 17:06 Go to previous message
Ben Vitale is currently offline Ben VitaleFriend
Messages: 247
Registered: July 2009
Senior Member
Thanks. That did the trick.

Regards
Ben

Andrew Niefer wrote:
> The problem is generally that PDE/Build does not have any special
> knowledge of feature patches. It just thinks they are regular features.
> So it sees both the original and the patch asking for different
> versions of a singleton.
>
> See https://bugs.eclipse.org/bugs/show_bug.cgi?id=84351#c21,
> work around is setting "resolution.devMode=true"
>
> -Andrew
Re: Feature patch a singleton? [message #599541 is a reply to message #68342] Fri, 17 July 2009 21:41 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
> Is it possible to create a feature patch for a singleton plug-in?

yes, that's possible.

> When I run PDE build, I run into problems:
>
> -----
> Bundle org.eclipse.debug.ui_3.5.0.v20090603 failed to resolve.:
> Another singleton version selected: org.eclipse.debug.ui_3.5.0.v20090717
> -----

let me double check: you're seeing this during building?

> I have a patch feature which is included in my product feature. That
> patch feature includes my patched plug-in (0717 version). The patch
> feature indicates the exact version of org.eclipse.platform to patch.

Do you have more context of when the above message is printed?
What you describe looks OK to me. PDE build shouldn't try to
resolve the old version.

Also: are you building headless or from the wizard? In the latter
case it might make a difference which plugins are taken from your
workspace and which ones from the host or target platform.

When building headless you might find some clues in the generated
ant build files.

> Note that if I modify the Manifest to remove the singleton clause, I can
> run PDE build and install the product. But the behavior of the plug-in
> is different at runtime and it doesn't work properly.

it might not even be using your patched version, it just doesn't
complain about two versions of the same plugin.

Stephan
Re: Feature patch a singleton? [message #599576 is a reply to message #68342] Mon, 20 July 2009 14:59 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The problem is generally that PDE/Build does not have any special
knowledge of feature patches. It just thinks they are regular features.
So it sees both the original and the patch asking for different
versions of a singleton.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=84351#c21,
work around is setting "resolution.devMode=true"

-Andrew
Ben Vitale wrote:
> Is it possible to create a feature patch for a singleton plug-in?
>
> When I run PDE build, I run into problems:
>
> -----
> Bundle org.eclipse.debug.ui_3.5.0.v20090603 failed to resolve.:
> Another singleton version selected: org.eclipse.debug.ui_3.5.0.v20090717
> -----
>
> I have a patch feature which is included in my product feature. That
> patch feature includes my patched plug-in (0717 version). The patch
> feature indicates the exact version of org.eclipse.platform to patch.
>
> Note that if I modify the Manifest to remove the singleton clause, I can
> run PDE build and install the product. But the behavior of the plug-in
> is different at runtime and it doesn't work properly.
>
> Thanks
> Ben
Re: Feature patch a singleton? [message #599600 is a reply to message #68413] Mon, 20 July 2009 17:06 Go to previous message
Ben Vitale is currently offline Ben VitaleFriend
Messages: 247
Registered: July 2009
Senior Member
Thanks. That did the trick.

Regards
Ben

Andrew Niefer wrote:
> The problem is generally that PDE/Build does not have any special
> knowledge of feature patches. It just thinks they are regular features.
> So it sees both the original and the patch asking for different
> versions of a singleton.
>
> See https://bugs.eclipse.org/bugs/show_bug.cgi?id=84351#c21,
> work around is setting "resolution.devMode=true"
>
> -Andrew
Previous Topic:Debugging org.eclipse.compare
Next Topic:Exporting an Equinox app
Goto Forum:
  


Current Time: Fri Apr 19 02:12:25 GMT 2024

Powered by FUDForum. Page generated in 0.02230 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top