{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/6017","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/6017/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/6017/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/6017/events","html_url":"https://github.com/godotengine/godot/issues/6017","id":169003512,"number":6017,"title":"emit_signal() doesn't checks if the signal exists","user":{"login":"Zylann","id":1311555,"avatar_url":"https://avatars.githubusercontent.com/u/1311555?v=3","gravatar_id":"","url":"https://api.github.com/users/Zylann","html_url":"https://github.com/Zylann","followers_url":"https://api.github.com/users/Zylann/followers","following_url":"https://api.github.com/users/Zylann/following{/other_user}","gists_url":"https://api.github.com/users/Zylann/gists{/gist_id}","starred_url":"https://api.github.com/users/Zylann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zylann/subscriptions","organizations_url":"https://api.github.com/users/Zylann/orgs","repos_url":"https://api.github.com/users/Zylann/repos","events_url":"https://api.github.com/users/Zylann/events{/privacy}","received_events_url":"https://api.github.com/users/Zylann/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/godotengine/godot/labels/bug","name":"bug","color":"ff2222"},{"url":"https://api.github.com/repos/godotengine/godot/labels/topic:core","name":"topic:core","color":"ffdd44"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/godotengine/godot/milestones/6","html_url":"https://github.com/godotengine/godot/milestones/2.2","labels_url":"https://api.github.com/repos/godotengine/godot/milestones/6/labels","id":1807486,"number":6,"title":"2.2","description":"","creator":{"login":"akien-mga","id":4701338,"avatar_url":"https://avatars.githubusercontent.com/u/4701338?v=3","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":278,"closed_issues":177,"state":"open","created_at":"2016-06-03T16:13:32Z","updated_at":"2016-09-23T05:42:44Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-08-02T22:24:26Z","updated_at":"2016-09-25T15:52:40Z","closed_at":null,"body":"Tested on Godot 2.0.4 and 2.1 rc1, Windows 10 64 bits\r\n\r\nWhen emit_signal() is called in GDScript, you can actually send one that was never declared with the `signal` keyword.\r\nThis is error-prone because you can end up emitting a signal successfully while it's actually a wrong one that was never declared. It took me some time to debug this in my project, to realize I made a typo in `emit_signal`.\r\n\r\nI expected an error to occur when sending a non-existent signal, because that's the point of declaring them with `signal`.\r\n\r\nRepro:\r\n[EmitSignalNoCheck.zip](https://github.com/godotengine/godot/files/398326/EmitSignalNoCheck.zip)\r\nPlay main scene, click on the button."},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/249429244","html_url":"https://github.com/godotengine/godot/issues/6017#issuecomment-249429244","issue_url":"https://api.github.com/repos/godotengine/godot/issues/6017","id":249429244,"user":{"login":"Hinsbart","id":8281916,"avatar_url":"https://avatars.githubusercontent.com/u/8281916?v=3","gravatar_id":"","url":"https://api.github.com/users/Hinsbart","html_url":"https://github.com/Hinsbart","followers_url":"https://api.github.com/users/Hinsbart/followers","following_url":"https://api.github.com/users/Hinsbart/following{/other_user}","gists_url":"https://api.github.com/users/Hinsbart/gists{/gist_id}","starred_url":"https://api.github.com/users/Hinsbart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hinsbart/subscriptions","organizations_url":"https://api.github.com/users/Hinsbart/orgs","repos_url":"https://api.github.com/users/Hinsbart/repos","events_url":"https://api.github.com/users/Hinsbart/events{/privacy}","received_events_url":"https://api.github.com/users/Hinsbart/received_events","type":"User","site_admin":false},"created_at":"2016-09-25T15:52:40Z","updated_at":"2016-09-25T15:52:40Z","body":"I just tried this.\r\nIt seems like it's a common thing for the internal classes to try to emit non existing signals...\r\nRunning any project with this error check in place generates ~5k of these errors per second. :/"}}
{"actor":{"display_login":"Hinsbart"}}