Undo fails sometimes

Hi there,

I'm using 1126 and it's like the undo history gets deleted at some point,
pressing Ctrl+Z has no effect beyond one or two undone actions. Not sure
what causes it, or how to reproduce it, there are no exceptions in the
console. I'm not doing anything fancy, like refactoring or things that
involve multiple files, just editing some java sources (the last obvious
thing was that I deleted several lines after selecting them and then I was
unable to bring them back using undo).

Anybody else seeing this?

Thx,
Andrei


12 comments
Comment actions Permalink

Andrei Oprea wrote:

Anybody else seeing this?


Ive had the same effect for the past few builds. I cant give steps on
how to reproduce it either, it just seems to happen now and again. The
only thing Ive done consistently each time Ive seen it happen is work on
multiple applications, therefore Im flipping back and forth in/out of idea.

0
Comment actions Permalink

Andrei Oprea wrote:

I'm using 1126 and it's like the undo history gets deleted at some point,
pressing Ctrl+Z has no effect beyond one or two undone actions. Not sure
what causes it, or how to reproduce it, there are no exceptions in the
console. I'm not doing anything fancy, like refactoring or things that
involve multiple files, just editing some java sources (the last obvious
thing was that I deleted several lines after selecting them and then I was
unable to bring them back using undo).

Anybody else seeing this?


I've seen this as well, most recently just yesterday with build 1126.
It's quite annoying. The Undo toolbar button doesn't get disable either
which indicates that there is something to undo, it just is not able to
do so for some reason.

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

0
Comment actions Permalink

I think I've seen this aswell. What I've noticed is that nothing
happens after pressing CTRL-Z but if I keep rapidly pressing it,
eventually the undo operations kick in and stuff starts undoing. This
is pretty weird behaviour.

Nick.

Andrei Oprea wrote:

Hi there,

I'm using 1126 and it's like the undo history gets deleted at some point,
pressing Ctrl+Z has no effect beyond one or two undone actions. Not sure
what causes it, or how to reproduce it, there are no exceptions in the
console. I'm not doing anything fancy, like refactoring or things that
involve multiple files, just editing some java sources (the last obvious
thing was that I deleted several lines after selecting them and then I was
unable to bring them back using undo).

Anybody else seeing this?

Thx,
Andrei

0
Comment actions Permalink

Any steps to reproduce would be very helpful. Unfortunately we didn't manage
to reproduce it.

--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

"Andrei Oprea" <andrei_oprea@hotmail.com> wrote in message
news:bv9hjb$lfk$1@is.intellij.net...

Hi there,

>

I'm using 1126 and it's like the undo history gets deleted at some point,
pressing Ctrl+Z has no effect beyond one or two undone actions. Not sure
what causes it, or how to reproduce it, there are no exceptions in the
console. I'm not doing anything fancy, like refactoring or things that
involve multiple files, just editing some java sources (the last obvious
thing was that I deleted several lines after selecting them and then I was
unable to bring them back using undo).

>

Anybody else seeing this?

>

Thx,
Andrei

>
>


0
Comment actions Permalink

I've the same problem, too.
It's not easy to reproduce it. Maybe the following steps will succeed ;)

It sometimes happens, when I copy (Ctrl-C), delete and paste a few (about 10) lines to a different place in the same file.
After doing some other work in that file (e.g. editing a few lines) I suddently feel that the changes were really bad ;).

Ctrl-Z works until the next step should bring back the deleted lines... I can bring them back with Ctrl-V - so it isn't such a big problem....

0
Comment actions Permalink

I just had this happen to me. I removed a return statement then I copied from one editor window into this file. I made a couple changes to what I just pasted. I then wanted to undo the last couple of changes to get back to the original state before I pasted and before I deleted the return statement. I was able to undo what I pasted, but after that I couldn't undo to get the return statement back. I'm wondering if it's because the page was flagging me of an error (since missing the return statement) that maybe it was confused and wouldn't undo any more? I doubt that would be the case or else others would have run into this. (Using IDEA 4.0).

0
Comment actions Permalink

Just seen this 1182.

The undo button is not disabled, so I can keep on pressing it, but it refuses to undo any steps.

0
Comment actions Permalink

I've seen this quite often as well. Usually this coincides with the undo command undoing the wrong thing and movement of the cursor starts going haywire. I've lost important code because of this where I undo and it starts deleting (or performing other bizarre actions) random parts of the file. Local VCS doesn't help because I use the undo command to step back my immediate changes to the file that haven't yet received a LVCS tag.

0
Comment actions Permalink

yup careful that you're not undoing something in another tab and you don't see it. I too have lost valuable code because of this.

R

0
Comment actions Permalink

I am using build 1185. This occurs while you have "Local history" tracking, where there are hot-spots in the left margin to indicate that there have been changes made to the file. This happens only when editing Java files. Text files appear to be fine.

The steps to reproduce this behaviour are:

1. Open a Java file for editing.
2. Using your mouse, clicking at the end of a line of text. Hold down the left-mouse button as you drag up (or down) until you have selected a large chunk of code (at least 25 lines). Release the mouse button.
3. Press CTRL-X to "Cut" out the piece of highlighted code (in fact, pressing the Delete key will suffice as well).

Note the triangle now appears in the left margin to indicate something was removed.

Press CTRL-Z to undo. Nothing happens. After holding down CTRL-Z eventually it will undo. Clicking on the undo button also takes multiple clicks in succession before any visible feeback/response is given.

I don't intend to upgrade to Pallada anytime soon, so if there is a fix or workaround for this, can someone please share it.

Thanks,

Tan.

0
Comment actions Permalink

For me it often breaks in exactly the same way (i.e. hitting Ctrl-Z twice very fast works) when "Optimize imports on the fly is enabled (but that's a Pallada option only I think):
http://intellij.net/tracker/idea/viewSCR?publicId=35156

0
Comment actions Permalink

Same here with latest EAP build (see issue #36266).

Tom

0

Please sign in to leave a comment.