View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0029390||2.x IDE Bugs||Code Editor||Public||2018-05-01 14:27||2019-01-04 17:15|
|Reporter||Sam Cumming||Assigned To||Alan Savage|
|Priority||Very High||Severity||B - Major||Reproducibility||100%|
|Platform||OS||Windows 10||OS Version|
|Target Version||2.1.5||Fixed in Version||2.1.5|
|Summary||0029390: Code Editor: Events 'lose' code when object name is changed but not committed|
|Description||If you create an object with some code in it, close the event Code Editor then rename the object using the Object Editor (not the Resource Tree), the first event you open will 'lose' its code if you do not commit the object's name change (Press Enter or click anywhere other than an event).|
When this behaviour occurs, it looks like the view cannot find the underlying code, and so displays nothing. Closing and reopening the event's Code Editor window will commit the name change and the code will be displayed again.
If you make changes to the now blank Code Editor window and save, the IDE will be overwrite the original code, which can result in code being lost.
|Steps To Reproduce||1. Create an object.|
2. Create an event, fill it with some code.
3. Close the Code Editor window.
4. Rename the object in the Object Editor, don't press Enter or click anywhere else.
5. Open the event by clicking it.
6. Observe that the code is gone.
7. Close the Code Editor and reopen the event, observe that your code is recovered.
8. Repeat 4 - 6, add some new code to the now blank window and save.
9. Observe that the old code is lost.
|Additional Information||This may be a duplicate of 0027806, since it's fairly similar in nature. The whole duplication part of 0027806 may be an unnecessary step that kept throwing us off.|
|2.x IDE Found In||184.108.40.2068|
|2.x Runtime Found In||220.127.116.11|
|2.x IDE Verified In|
|2.x Runtime Verified In|