GH Python component doesn't handle undo properly

The GH Python component in the WIP build of GH will correctly revert previously committed code edits on undo, but in order to get them to take effect you have to open the editor and close it again.
To reproduce, start with a working script, edit the script so it throws an error, close and save the edits, and then “undo python code changed.” Even if you expire the component manually it will continue to list the error. Then, if you double click to edit again, the code changes will be reflected, and you can save and close the python editor and it will execute correctly.

probably should have tagged @piac in this :slight_smile:

Thanks @andheum, this should be fixed in the next public WIP built after incorparating
https://mcneel.myjetbrains.com/youtrack/issue/RH-35409

1 Like

It seems that this works now. Please let me know if you spot anything.

1 Like