Code editor randomly undoing changes

Code editor randomly undoing changes

aditya_prakash1
Not applicable
14 Views
2 Replies
Message 1 of 3

Code editor randomly undoing changes

aditya_prakash1
Not applicable

[ FlexSim 16.1.0 ]

Hi, Sometimes while writing in code editor and then using "goto definition" to edit a existing function, when I come back to the primary function, my unsaved changes automatically get undone, and the primary function gets back to it's last saved state. This happens randomly sometimes and is hard to recreate. Did any else face such issues ?

Accepted solutions (1)
15 Views
2 Replies
Replies (2)
Message 2 of 3

adrian_haws
Not applicable

@Aditya Prakash I'm not sure why that's happening, but you can also try opening "Command Help" by right-clicking in the code editor or going through the Help tab. That way you can look up definitions on the side bar while still accessing the Code Editor.

0 Likes
Message 3 of 3

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

If you have the User Commands GUI open then you need to apply that to make the changes. If it's not open, then the code changes will be applied directly from the code editor window - so the behaviour can be different, and might seem random if you haven't noticed what GUIs are open. This is similar to editing triggers with the objects parameters GUI open where you need to press Apply from the GUI, but if the GUI is not open, the code editor applies the code directly.