Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Debug Plug-in works while Real one not
Debug Plug-in works while Real one not [message #264641] Fri, 30 July 2004 05:52 Go to next message
Eclipse UserFriend
Originally posted by: leopold.welsch.siemens.com

I'm trying to figure out some problems with a Plugin and I've downloaded
the sources. In the sources I have two speicifc error-scenarios bug
somehow the Errors do not occur in the Test-Environment, i.e. when launch
another Workspace with the Plugins available no problem.

In the one situation it is IPropertyChangeListener.propertyChange used
which raises an Exception, but not in the Debugging-Environment.

In the others situation it is

Process proc = Runtime.getRuntime().exec(cmdParams, null, new
File(workingDir));
Thread.sleep(1);
proc.getErrorStream().close();


and it is noted

/*
* Due to Java Bug #4763384 sleep for a very small amount of time
* immediately after starting the subprocess
*/

Also quite odd, it works on Linux while on WinXP does not.

Has anybody an idea, why it works in extra launched Workspace, while in
the current not.

????

LeO
Re: Debug Plug-in works while Real one not [message #264849 is a reply to message #264641] Sat, 31 July 2004 00:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chris.eclipsefaq.org

LeO wrote:

> I'm trying to figure out some problems with a Plugin and I've downloaded
> the sources. In the sources I have two speicifc error-scenarios bug
> somehow the Errors do not occur in the Test-Environment, i.e. when launch
> another Workspace with the Plugins available no problem.

> Has anybody an idea, why it works in extra launched Workspace, while in
> the current not.

When you launch a runtime workbench, classes and resources are loaded
from your workspace and all are visible.

When you run an eclipse instance with a deployed plugin, the classes
and resource come from its runtime jars. Check if the runtime jar
contains all the classes and resources needed. To add the missing
ones, see the PDE Manifest Editor (the plugin.xml editor) and see
the build.properties tab.

Chris
Re: Debug Plug-in works while Real one not [message #264912 is a reply to message #264849] Sun, 01 August 2004 15:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: leo.somewhere.donot.know

Chris Laffra wrote:

> LeO wrote:

> > I'm trying to figure out some problems with a Plugin and I've downloaded
> > the sources. In the sources I have two speicifc error-scenarios bug
> > somehow the Errors do not occur in the Test-Environment, i.e. when launch
> > another Workspace with the Plugins available no problem.

> > Has anybody an idea, why it works in extra launched Workspace, while in
> > the current not.

> When you launch a runtime workbench, classes and resources are loaded
> from your workspace and all are visible.

> When you run an eclipse instance with a deployed plugin, the classes
> and resource come from its runtime jars. Check if the runtime jar
> contains all the classes and resources needed. To add the missing
> ones, see the PDE Manifest Editor (the plugin.xml editor) and see
> the build.properties tab.

> Chris

It's not that that the runtime workbench does NOT work. It's other way
around. In the runtime workbench it works, while in the original one it
works not.

So, do not understand, why I should add something in the plugin.xml while
in the realtime it does not work. Where is the difference?

LeO
Re: Debug Plug-in works while Real one not [message #264961 is a reply to message #264912] Sun, 01 August 2004 21:41 Go to previous message
Eclipse UserFriend
Originally posted by: chris.eclipsefaq.org

LeO wrote:

> Chris Laffra wrote:

> > LeO wrote:

> > > I'm trying to figure out some problems with a Plugin and I've downloaded
> > > the sources. In the sources I have two speicifc error-scenarios bug
> > > somehow the Errors do not occur in the Test-Environment, i.e. when launch
> > > another Workspace with the Plugins available no problem.

> > > Has anybody an idea, why it works in extra launched Workspace, while in
> > > the current not.

> > When you launch a runtime workbench, classes and resources are loaded
> > from your workspace and all are visible.

> > When you run an eclipse instance with a deployed plugin, the classes
> > and resource come from its runtime jars. Check if the runtime jar
> > contains all the classes and resources needed. To add the missing
> > ones, see the PDE Manifest Editor (the plugin.xml editor) and see
> > the build.properties tab.

> > Chris

> It's not that that the runtime workbench does NOT work. It's other way
> around. In the runtime workbench it works, while in the original one it
> works not.

This is exactly what I am saying. Runtime workbench loads from workspace.
The original one from plugin jars. Check what is in the plugin jar.
There is something missing, is my guess.

Look at the log file for messages concerning your plugin could help also.
Help > About ... > Configuration Details > View the Log

Chris
Previous Topic:Sample to programatically add context menu items into Eclipse IDE
Next Topic:workspace settings and preferences
Goto Forum:
  


Current Time: Sat May 10 11:32:25 EDT 2025

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

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

Back to the top