Has anyone ever experienced any issues undoing multiple times? Most of the time it works fine, but then sometimes it doesn’t and it just restores garbage code.
This can be corrected by saving frequently, but still not an ideal workaround. Am i the only one experiencing this?
what i see , but that is the correct / only way,
that you need sometimes MORE [ctrl][z] as expected.
also it might be that there are operations, that interfere with that buffer,
in that case we must find out what PDE menu function you used inbetween???
Yes, I noticed the same thing. It happens to me when I’m swapping between tabs and using undo, although I’m not completely sure what triggers it exactly.
What exact version number of Processing are you seeing this with?
Yes, I have also seen this multi-undo-restores-junk error in the past several times. As a result I don’t trust the undo buffer on PDE – this means I Save As often if I’m attempting a soft fork that I want to undo out of. I agree with Tiemen that one of the triggers may be switching tabs, however I believe that I have seen it happen in a single-tab sketch before. The key thing is (or seems to be) to not undo too fast – but it is muscle memory, so I forget. Still, it is hard to replicate – I just did a quick test and was unable to replicate the error on 3.4, even while running a sketch under heavy load – holding Ctr+Z and Ctrl-Shift-Z scrubbed back and forth through a long edit history with no errors.
@paulgoux Would you please report your experience and exact Processing version number to this open issue?
I’m currently using version 3.4, and to my recollection I have had this issue, definitely on version the earlier versions. I shall wait and see if it re-occurs, if it does I shall try to detail the experience.
But now as a general rule of thumb I tend not to undo, unless I really have to, so using github is a big help.