Undo action in eclipse

Having trouble installing Oxygen? Got a bug to report? Post it all here.
runeaen
Posts: 2
Joined: Thu Apr 02, 2009 3:43 pm

Undo action in eclipse

Post by runeaen »

Hi

I am using oxygen as a plugin til Eclipse, but I am pretty frustrated at the undo button "bug".
This has been annoying me for over 6 months now, so finally I have decided to post to the forum.

Running Eclipse 3.4 ganymede and oxygen 10.1 build 2009022615 on OSX.

Problem:
When editing an xml or xsl file, perhaps just to test something, and after the test I normally want to undo what I have done.
However, the undo (cmd-z) command only undo one step, and often it does not undo at all!

I have made sure the "Clear undo buffer on save" is not checked, so I don't know why this is not working.

And please note.
Even before saving the undo action does not work.


Is this a know bug?
This is so irritating so I am know considering using other tools, because of this "undo" nightmare.
(I have been forced to make copies of the changes I make into another textfile to make it "easy" to undo my changes)
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Undo action in eclipse

Post by sorin_ristache »

Hello

It happened for other Oxygen user and the cause was a conflict with other Eclipse plugin. We implemented a workaround in the Oxygen plugin. Anyway it was no a bug in any plugin, it was more of a bug in the plugin isolation mechanism implemented in the Eclipse platform which was not fixed yet in the platform. In your case it could be a conflict between the Oxygen plugin and some other Eclipse plugin but first we must find that plugin.

Does the Error Log view contain any errors? Do they seem related to undo? Do the errors have a stacktrace attached? If yes please post the error message and the stacktrace.

A longer but more precise and sure way of finding the conflicting plugin is to start by installing the Oxygen plugin in a fresh Eclipse installation, that is the Oxygen plugin is the first and only plugin that you install as Eclipse user (it is not a built-in plugin of the platform). Does undo work in the files edited with the Oxygen plugin editors? If yes then with the Oxygen plugin alone the undo problem cannot be reproduced (this was the case with the other user). Continue installing the other plugins that you had in the old Eclipse installation (the one with the undo problem) and check the undo problem after each new installed plugin until you find the conflicting one. Please let us know the name and version of the conflicting plugin so we can reproduce the problem and try to implement some kind of workaround (that is until the root problem is fixed in the Eclipse platform which does not seem to happen for some time now).

I documented this procedure here so that other users that may run into the problem can find and post here some details about the conflicting plugin.


Regards,
Sorin
runeaen
Posts: 2
Joined: Thu Apr 02, 2009 3:43 pm

Re: Undo action in eclipse

Post by runeaen »

Hello

I started out like you suggested by installing a fresh Eclipse installation.
I then installed the Oxygen plugin and started on installing the plugins one by one.
This was such a tedious task, so I tried another approach.
Instead of installing the plugins one by one, I updated my original Eclipse installation, including all Eclipse modules and 3rd party plugins, to their latest versions. This solved the problem.

So I'm sorry that I can not help you in identifying the plugin(s) causing the problem, but at least the problem is fixed.

Thanks for the tip!
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Undo action in eclipse

Post by sorin_ristache »

Thank you for letting us know. If it happens again please post here the name and version of the conflicting plugin.


Thank you,
Sorin
Post Reply