jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

Undo corrupts sketch Processing 3.3.6 #216

Closed rofoto closed 6 years ago

rofoto commented 6 years ago

I have been having an issue with undos on sketches with multiple tabs.

After running a sketch, changing tabs and clicking undo from the menu or using the keyboard shortcut, the sketch tab I have open will scramble the text at the point where the undo would happen.

example tab 1 has 10 lines of code tab 2 has 8 lines of code

changing line 3 of tab 2, running the sketch , clicking on tab 1 and undoing will corrupt tab 1 line 3 , instead of switching tabs to the tab 2 and undoing the change of its' line 3.

This doesn't happen every time but after a few hours of working on a sketch its scary to have something like this happen.

jdf commented 6 years ago

Have you verified that this doesn't affect Java mode, i.e., that it's a Python Mode bug specifically? Python Mode uses, I believe, the same editor machinery used by Java mode, though I may be mistaken.

rofoto commented 6 years ago

@jdf Apologies for the delay, I only saw this bug in java mode. Have not yet tried it in python mode.

jdf commented 6 years ago

This bug tracker is for issues related to Python Mode only.