Debugging plugin loading issues [message #332178] |
Wed, 08 October 2008 15:24  |
Eclipse User |
|
|
|
Hi,
I've written a simple plugin that extends the pop-up menus in the
navigator. When self-hosting the navigator pop-up menus that I defined
work great. I now want to export this plugin so that other developers can
use it. I used the PDE export wizard to export my plugin. I then put
this exported plugin into the dropins directory of my base Eclipse
installation. However, when I start this Eclipse installation the pop-up
menus don't come up. I checked "plugin details" to see if my plugin was
loaded. It wasn't there so Eclipse didn't load my plugin for some reason.
I checked the .log file and didn't see any error message. Is there an
Eclipse flag that I can set to find out why Eclipse didn't load my plugin?
Or more generally, what debugging steps can I take to find why Eclipse
wont load my plugin.
Thanks!
|
|
|
Re: Debugging plugin loading issues [message #332180 is a reply to message #332178] |
Wed, 08 October 2008 17:20   |
Eclipse User |
|
|
|
Peter,
Use -clean -debug whenever I have issues like this. The former seems to
make it process all the plugins again, sometimes it's a bit reluctant to
do that, and the latter makes it spit out useful diagnostics about why
plugins are not being activated...
Peter Moogk wrote:
> Hi,
> I've written a simple plugin that extends the pop-up menus in the
> navigator. When self-hosting the navigator pop-up menus that I
> defined work great. I now want to export this plugin so that other
> developers can use it. I used the PDE export wizard to export my
> plugin. I then put this exported plugin into the dropins directory of
> my base Eclipse installation. However, when I start this Eclipse
> installation the pop-up menus don't come up. I checked "plugin
> details" to see if my plugin was loaded. It wasn't there so Eclipse
> didn't load my plugin for some reason. I checked the .log file and
> didn't see any error message. Is there an Eclipse flag that I can set
> to find out why Eclipse didn't load my plugin? Or more generally, what
> debugging steps can I take to find why Eclipse wont load my plugin.
> Thanks!
>
|
|
|
Re: Debugging plugin loading issues [message #332181 is a reply to message #332180] |
Wed, 08 October 2008 18:53  |
Eclipse User |
|
|
|
Hi Ed,
Thanks a million! That helped a lot. With -debug specified the .log
file contained all the plugins that were not loaded. In my case the
plugin specified JRE 1.5, but unbeknown to me eclipse was using a 1.4 JDK
to start Eclipse. I just needed to force the JDK I wanted in the
eclipse.ini file and everything worked great. Thanks again.
Peter.
|
|
|
Powered by
FUDForum. Page generated in 0.04458 seconds