{"action":"opened","issue":{"url":"https://api.github.com/repos/nucleic/enaml/issues/265","repository_url":"https://api.github.com/repos/nucleic/enaml","labels_url":"https://api.github.com/repos/nucleic/enaml/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/nucleic/enaml/issues/265/comments","events_url":"https://api.github.com/repos/nucleic/enaml/issues/265/events","html_url":"https://github.com/nucleic/enaml/issues/265","id":327574030,"number":265,"title":"NameError in enaml code leads to cryptic stack overflow error","user":{"login":"Julian-O","id":945973,"avatar_url":"https://avatars2.githubusercontent.com/u/945973?v=4","gravatar_id":"","url":"https://api.github.com/users/Julian-O","html_url":"https://github.com/Julian-O","followers_url":"https://api.github.com/users/Julian-O/followers","following_url":"https://api.github.com/users/Julian-O/following{/other_user}","gists_url":"https://api.github.com/users/Julian-O/gists{/gist_id}","starred_url":"https://api.github.com/users/Julian-O/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Julian-O/subscriptions","organizations_url":"https://api.github.com/users/Julian-O/orgs","repos_url":"https://api.github.com/users/Julian-O/repos","events_url":"https://api.github.com/users/Julian-O/events{/privacy}","received_events_url":"https://api.github.com/users/Julian-O/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-30T04:55:19Z","updated_at":"2018-05-30T04:55:19Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The following code is invalid, because it references an identifier that was never defined.\r\n\r\n```\r\nfrom enaml.widgets.api import Window, PushButton\r\n\r\nenamldef MinimumFaultyProgramWindow(Window):\r\n        PushButton: the_button:\r\n            text = \"Push to crash\"\r\n            clicked ::\r\n                print(identifier_never_seen_before)\r\n```\r\n\r\nWhen I run it (with pyqt5) I get a crash:\r\n\r\n> Process finished with exit code -1073740791 (0xC0000409)\r\n\r\nGoogling around suggests that is a [STATUS_STACK_BUFFER_OVERRUN](https://stackoverflow.com/posts/49781951) error. \r\n\r\nThis is way too cryptic for a beginner like me to debug (especially as I get my head around Enaml scoping).\r\n\r\nA `NameError` or `UnboundLocalError` exception should be raised referring to the identifier in question.\r\n"}}
{"actor":{"display_login":"Julian-O"}}