{"action":"opened","issue":{"url":"https://api.github.com/repos/nengo/nengo_gui/issues/322","labels_url":"https://api.github.com/repos/nengo/nengo_gui/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/nengo/nengo_gui/issues/322/comments","events_url":"https://api.github.com/repos/nengo/nengo_gui/issues/322/events","html_url":"https://github.com/nengo/nengo_gui/issues/322","id":85356852,"number":322,"title":"Undo/Redo creation/deletion of plots breaks when code in the editor is changed","user":{"login":"bjkomer","id":1361151,"avatar_url":"https://avatars.githubusercontent.com/u/1361151?v=3","gravatar_id":"","url":"https://api.github.com/users/bjkomer","html_url":"https://github.com/bjkomer","followers_url":"https://api.github.com/users/bjkomer/followers","following_url":"https://api.github.com/users/bjkomer/following{/other_user}","gists_url":"https://api.github.com/users/bjkomer/gists{/gist_id}","starred_url":"https://api.github.com/users/bjkomer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjkomer/subscriptions","organizations_url":"https://api.github.com/users/bjkomer/orgs","repos_url":"https://api.github.com/users/bjkomer/repos","events_url":"https://api.github.com/users/bjkomer/events{/privacy}","received_events_url":"https://api.github.com/users/bjkomer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-05T01:04:36Z","updated_at":"2015-06-05T01:04:36Z","closed_at":null,"body":"If you create a component (value plot, slider, etc) and then modify the model in the code editor (i.e. remove a connection or ensemble, doesn't even have to be directly related to where the component came from), and then undo and redo the component creation, things get messed up. The component will get created again, but with a uid something like <Ensemble (unlabeled) at 0x7f7235a98e50> and throw a key error."}}