{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/13841","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/13841/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/13841/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/13841/events","html_url":"https://github.com/godotengine/godot/issues/13841","id":278724531,"number":13841,"title":"Referencing AutoLoad scripts fails at random","user":{"login":"leoddd","id":20242421,"avatar_url":"https://avatars3.githubusercontent.com/u/20242421?v=4","gravatar_id":"","url":"https://api.github.com/users/leoddd","html_url":"https://github.com/leoddd","followers_url":"https://api.github.com/users/leoddd/followers","following_url":"https://api.github.com/users/leoddd/following{/other_user}","gists_url":"https://api.github.com/users/leoddd/gists{/gist_id}","starred_url":"https://api.github.com/users/leoddd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leoddd/subscriptions","organizations_url":"https://api.github.com/users/leoddd/orgs","repos_url":"https://api.github.com/users/leoddd/repos","events_url":"https://api.github.com/users/leoddd/events{/privacy}","received_events_url":"https://api.github.com/users/leoddd/received_events","type":"User","site_admin":false},"labels":[{"id":73330064,"url":"https://api.github.com/repos/godotengine/godot/labels/bug","name":"bug","color":"ff2222","default":true},{"id":279097966,"url":"https://api.github.com/repos/godotengine/godot/labels/topic:core","name":"topic:core","color":"ffdd44","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/godotengine/godot/milestones/4","html_url":"https://github.com/godotengine/godot/milestone/4","labels_url":"https://api.github.com/repos/godotengine/godot/milestones/4/labels","id":1449702,"number":4,"title":"3.0","description":"","creator":{"login":"akien-mga","id":4701338,"avatar_url":"https://avatars0.githubusercontent.com/u/4701338?v=4","gravatar_id":"","url":"https://api.github.com/users/akien-mga","html_url":"https://github.com/akien-mga","followers_url":"https://api.github.com/users/akien-mga/followers","following_url":"https://api.github.com/users/akien-mga/following{/other_user}","gists_url":"https://api.github.com/users/akien-mga/gists{/gist_id}","starred_url":"https://api.github.com/users/akien-mga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akien-mga/subscriptions","organizations_url":"https://api.github.com/users/akien-mga/orgs","repos_url":"https://api.github.com/users/akien-mga/repos","events_url":"https://api.github.com/users/akien-mga/events{/privacy}","received_events_url":"https://api.github.com/users/akien-mga/received_events","type":"User","site_admin":false},"open_issues":340,"closed_issues":3975,"state":"open","created_at":"2015-12-08T11:42:08Z","updated_at":"2017-12-03T15:38:05Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2017-12-02T22:43:36Z","updated_at":"2017-12-03T15:59:24Z","closed_at":null,"author_association":"NONE","body":"**Operating system or device, Godot version, GPU Model and driver (if graphics related):**\r\nWindows 10 x64, Godot 3 Beta 1\r\n\r\n**Issue description:**\r\n<!-- What happened, and what was expected. -->\r\nRarely, maybe 1 out of 20 attempted game launches from the editor, the launch will be interrupted by a popup message claiming that the name of an AutoLoad script is not a valid identifier.\r\nThis stops the game from running.\r\n\r\nHere is the associated error message in the console:\r\n```\r\nERROR: GDScriptLanguage::debug_get_stack_level_instance: Condition ' _debug_parse_err_line >= 0 ' is true. returned: 0\r\n   At: modules\\gdscript\\gdscript_editor.cpp:286\r\n```\r\nSadly I'm not sure how related this error is, it might just be another symptom of the issue (since Godot can't find the identifier) rather than anything close to the source of the issue. This is just the only new thing that appears in the console every time this happens.\r\n\r\nThe issue can be temporarily fixed by literally just closing the popup and re-launching the game without even changing anything in the editor, and Godot will no longer complain about the missing identifier for the next while.\r\nThis has happened with different AutoLoad scripts for me, so I don't think the issue lies in my script (especially since those aren't changed between Godot accepting them as identifiers and not).\r\n\r\n![72ef02f4fafe8d29eccab56871fd6506](https://user-images.githubusercontent.com/20242421/33520387-37f30e00-d7ba-11e7-842f-919b8101fb03.png)\r\n(Note the error message as well as the highlighted message in the script editor.)\r\n\r\n**Steps to reproduce:**\r\nCreate an AutoLoad script and reference it in code somewhere else using its name. Hit play until you encounter the error.\r\nFor example, an AutoLoad `test.gd` with name `boo` set in the Project Settings referenced by using `boo.method()`."},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/348787970","html_url":"https://github.com/godotengine/godot/issues/13841#issuecomment-348787970","issue_url":"https://api.github.com/repos/godotengine/godot/issues/13841","id":348787970,"user":{"login":"Ranoller","id":11712737,"avatar_url":"https://avatars0.githubusercontent.com/u/11712737?v=4","gravatar_id":"","url":"https://api.github.com/users/Ranoller","html_url":"https://github.com/Ranoller","followers_url":"https://api.github.com/users/Ranoller/followers","following_url":"https://api.github.com/users/Ranoller/following{/other_user}","gists_url":"https://api.github.com/users/Ranoller/gists{/gist_id}","starred_url":"https://api.github.com/users/Ranoller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ranoller/subscriptions","organizations_url":"https://api.github.com/users/Ranoller/orgs","repos_url":"https://api.github.com/users/Ranoller/repos","events_url":"https://api.github.com/users/Ranoller/events{/privacy}","received_events_url":"https://api.github.com/users/Ranoller/received_events","type":"User","site_admin":false},"created_at":"2017-12-03T15:59:24Z","updated_at":"2017-12-03T15:59:24Z","author_association":"NONE","body":"You can test project in #13444 with F6, random fail behavior is similar but with custom actions."}}
{"actor":{"display_login":"Ranoller"}}