Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » class files removed
class files removed [message #353999] Tue, 28 July 2009 10:54 Go to next message
Eclipse UserFriend
Originally posted by: 103bmwspam.gmail.com

Hi,

I developed a plugin for Eclipse successfully. The development went just
fine for several months, without any problems.

But some days ago a problem started to occur:
when I start an eclipse instance to test the plugin (using the default Run
command from the PDE), an instance starts, but after some seconds the
class files of my plugin are removed!

So then I can't execute my plugin of course.
I also did a Clean of the project and run the eclipse instance again, but
the same problem.
When I export the plugin, install it on a separate Eclipse instance and
launch it, there is no problem, but I can't develop anymore with this
problem.

What makes the problem even worse, is that the class files are not removed
simply every time, but most of the times. So sometimes an Eclipse instance
is started and the class files are left untouched.

Any idea what causes this problem, or where I can find clues?
Re: class files removed [message #369138 is a reply to message #353999] Tue, 28 July 2009 20:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

PV wrote:
> Hi,
>
> I developed a plugin for Eclipse successfully. The development went just
> fine for several months, without any problems.
>
> But some days ago a problem started to occur: when I start an eclipse
> instance to test the plugin (using the default Run command from the
> PDE), an instance starts, but after some seconds the class files of my
> plugin are removed!
>
> So then I can't execute my plugin of course.
> I also did a Clean of the project and run the eclipse instance again,
> but the same problem.
> When I export the plugin, install it on a separate Eclipse instance and
> launch it, there is no problem, but I can't develop anymore with this
> problem.
>
> What makes the problem even worse, is that the class files are not
> removed simply every time, but most of the times. So sometimes an
> Eclipse instance is started and the class files are left untouched.
>
> Any idea what causes this problem, or where I can find clues?
>

That's very puzzling indeed.
For debugging, you might try making all of the .class files read-only in
your filesystem just before launching. That way, when whatever is
deleting them tries, it will fail and you might get some messages in the
error log about the failure. Such errors could point you to what is
doing the deleting. Make sure to check the error log of the launched
Eclipse, not the one you're developing in.

Hope this helps,
Eric
Re: class files removed [message #371070 is a reply to message #369138] Wed, 29 July 2009 04:18 Go to previous message
Eclipse UserFriend
Originally posted by: 103bmwspam.gmail.com

Thanks Eric, that helped!
The problem was that the launched Eclipse application accidentally
contained the plugin project in its workspace. And after Eclipse was
launched, the Java builder got into action for that project, and deleted
the resources.
Re: class files removed [message #600019 is a reply to message #353999] Tue, 28 July 2009 20:09 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
PV wrote:
> Hi,
>
> I developed a plugin for Eclipse successfully. The development went just
> fine for several months, without any problems.
>
> But some days ago a problem started to occur: when I start an eclipse
> instance to test the plugin (using the default Run command from the
> PDE), an instance starts, but after some seconds the class files of my
> plugin are removed!
>
> So then I can't execute my plugin of course.
> I also did a Clean of the project and run the eclipse instance again,
> but the same problem.
> When I export the plugin, install it on a separate Eclipse instance and
> launch it, there is no problem, but I can't develop anymore with this
> problem.
>
> What makes the problem even worse, is that the class files are not
> removed simply every time, but most of the times. So sometimes an
> Eclipse instance is started and the class files are left untouched.
>
> Any idea what causes this problem, or where I can find clues?
>

That's very puzzling indeed.
For debugging, you might try making all of the .class files read-only in
your filesystem just before launching. That way, when whatever is
deleting them tries, it will fail and you might get some messages in the
error log about the failure. Such errors could point you to what is
doing the deleting. Make sure to check the error log of the launched
Eclipse, not the one you're developing in.

Hope this helps,
Eric
Re: class files removed [message #600046 is a reply to message #369138] Wed, 29 July 2009 04:18 Go to previous message
Bo103 is currently offline Bo103Friend
Messages: 3
Registered: November 2009
Junior Member
Thanks Eric, that helped!
The problem was that the launched Eclipse application accidentally
contained the plugin project in its workspace. And after Eclipse was
launched, the Java builder got into action for that project, and deleted
the resources.
Previous Topic:Adding doubleclick action through plugin.xml
Next Topic:PDE build - update site
Goto Forum:
  


Current Time: Tue Apr 23 10:32:53 GMT 2024

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

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

Back to the top