{"action":"closed","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/6656","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/6656/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/6656/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/6656/events","html_url":"https://github.com/godotengine/godot/issues/6656","id":180195077,"number":6656,"title":"Connecting a signal to a non-existent/not-creatable function should not be allowed","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:editor","name":"topic:editor","color":"ffdd44"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-30T00:31:00Z","updated_at":"2016-10-09T12:15:21Z","closed_at":"2016-10-09T12:15:21Z","body":"Tested on Godot 2.1, Windows 10 64 bits\r\n\r\nRepro:\r\n1) Create a Button\r\n2) Open the Node panel and double-click on the `pressed` signal to connect it\r\n3) A window opens showing that the signal will be connected to an existing or generated function\r\n4) Press Connect, observe the node now has a connection to a function that doesn't exists (no script was ever added). There are no error or warning in any place. Running the scene produces an error when you click the button.\r\n\r\nThis should not be allowed, or at least trigger a warning.\r\n\r\nEdit: closing the editor after this apparently produces a freeze instead. However I couldn't reproduce it so far.\r\n\r\nEdit 2:\r\nthe repro steps lead to a non-working connection, even if a script is added afterwards with the correct function. In TSCN it looks like this:\r\n`[connection signal=\"body_enter\" from=\"Enemy\" to=\".\" method=\"_on_Enemy_body_enter\"]`\r\nDisconnecting and reconnecting again fixes it, and changes the TSCN to:\r\n`[connection signal=\"body_enter\" from=\"Enemy\" to=\"Enemy\" method=\"_on_Enemy_body_enter\"]`"}}
{"actor":{"display_login":"akien-mga"}}