question

Aditya Prakash avatar image
1 Like"
Aditya Prakash asked Jason Lightfoot answered

Code editor randomly undoing changes

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 ?

FlexSim 16.1.0
flexscriptcode editorcommand helpsgo to definition
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Adrian Haws avatar image Adrian Haws commented ·

@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 0 ·

1 Answer

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered

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.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.