Undo (CTRL-Z) does not restore file state to not changed
Originally submitted to Google Code by jerry57 on 5 May 2010
Mac OS X 10.6.3 python 2.6.1 jython 2.5.1 ride 0.22.1 robotframework 2.1.3
When I edit a test case that already exists and undo the edit, the file shows as requiring a save (has asterisk next to suite name). If I undo all the way back to original state, then the file shouldn't need to be saved.
Originally submitted to Google Code by @yanne on 28 Jun 2010
Mac OSX is not currently supported platform at NSN, who is the sponsor of RF core development team. In addition to that, we have only limited access to Mac OSX machines to even test possible fix(es).
Contribution to fix and test this issue is more than welcome.
Originally submitted to Google Code by @yanne on 9 Aug 2010
Not an OSX-only issue.
I consider this only a minor annoyance though.
Originally submitted to Google Code by @jussimalinen on 13 Aug 2010
This is not trivial to fix with the current "dirty" handling. CTRL-Z only works while editing grid, but there also other fields (like doc) in the file that can cause it become flagged dirty.. So simply unflagging file as undirty when undo history is empty will not do.
Bigger changes are needed.
Originally submitted to Google Code by laurent.carbonnaux on 9 Jun 2011
I reproduce this problem too and I find it a bit annoying in fact. My exact problem comes from the fact that :
- I can not launch the tests if some files are unsaved
- I can not save a file unless it is checked-out from Perforce (where all my TC are)
=> so in the case I modify by mistake a non-checked-out test case, even if I do UNDO, I am stuck in a "non saved" status, and my only way out is to close completely RIDE and re-open it. Not great (but I can live with that of course)
Laurent
Originally submitted to Google Code by @mkorpela on 9 Jun 2011
@Laurent: I'm not familiar with Perforce so could you explain a bit why you can not save files that are not in version control?
Originally submitted to Google Code by laurent.carbonnaux on 9 Jun 2011
@mikko: In my case the file is in Perforce, but I did not checked-out it. So it is set as read-only on my computer (that's the way perforce work). So I have a "not saved status in RIDE" and a "can not save status in Windows/perforce". If UNDO of RIDE would remove this "not saved status" I would be OK and could go on (ie. launch my tests)
Originally submitted to Google Code by @mkorpela on 9 Jun 2011
@Laurent: I see why the current behavior is a real problem to you. As Jussi has pointed out the undo mechanism is nontrivial so I was thinking if there could be also other ways to improve your situation.
Would it solve your problem if RIDE did not allow editing of read-only files?
Originally submitted to Google Code by laurent.carbonnaux on 9 Jun 2011
Indeed. That would be perfect !
Originally submitted to Google Code by @mkorpela on 9 Jun 2011
I'll update Issue 157 based on this discussion.
Originally submitted to Google Code by @mkorpela on 22 Aug 2013
Issue 1272 has been merged into this issue.
Duplicate of #987
Still valid 4 years later :(
This is improved with the fix for #2229 but not complete :)
On new version 2.0b2, Ctrl-Z (Undo) resetting to saved state is working on Text Editor, but not on Grid Editor.
I am closing this, because it is dated from 2010. If needed we open a new issue.