vazexqi / CodingSpectator

Watches and analyzes code edits in the Eclipse IDE non-invasively
http://codingspectator.cs.illinois.edu
Other
20 stars 14 forks source link

Undo doesn't work in instances with CodingSpectator #171

Closed vazexqi closed 13 years ago

vazexqi commented 13 years ago

With the latest version of CodingSpectator (from Master), it seems that I cannot invoke undo on anything (can't undo a refactoring, can't undo a text change).

Balaji confirms that this problem:

  1. does not happen with an older version of CodingSpectator
  2. does happen with the latest version of CodingSpectator from master on his Linux machine
rajkuma1 commented 13 years ago

Undo operation is available on version 1.0.0.201102192319

Wanderer777 commented 13 years ago

If you are starting CodingSpectator from its source code (rather than installing the feature), please make sure that you close project edu.illinois.codingspectator.codingtracker.replaying. This project does not make part of the feature and would not be installed on a user machine.

You need to make sure that this project is closed, because if it is not, then the editor's behavior would be slightly altered, including the inability to perform an undo. This altering was necessary for the replaying phase, because otherwise if a refactoring that affects several files is undone/redone, it will pop up a confirmation dialog box, which would disrupt the replaying process.

reprogrammer commented 13 years ago

I could not reproduce this problem on my Ubuntu laptop. I successfully invoked the undo operations on my textual edits and refactorings. I use Eclipse Helios SR1 with HEAD pointing to c87e36e9de3afe0681a65ef0d9c574d04322c994. Note that I ran CodingSpectator in DEBUG_MODE and TESTING_MODE and saw CondingTracker capturing the undo operation.

vazexqi commented 13 years ago

I see. I will close edu.illinois.codingspectator.codingtracker.replaying from my workspace then.