{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/10522","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/10522/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/10522/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/10522/events","html_url":"https://github.com/godotengine/godot/issues/10522","id":251784956,"number":10522,"title":"Can't open script if it's not using the default script template","user":{"login":"ezefran","id":13037858,"avatar_url":"https://avatars3.githubusercontent.com/u/13037858?v=4","gravatar_id":"","url":"https://api.github.com/users/ezefran","html_url":"https://github.com/ezefran","followers_url":"https://api.github.com/users/ezefran/followers","following_url":"https://api.github.com/users/ezefran/following{/other_user}","gists_url":"https://api.github.com/users/ezefran/gists{/gist_id}","starred_url":"https://api.github.com/users/ezefran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezefran/subscriptions","organizations_url":"https://api.github.com/users/ezefran/orgs","repos_url":"https://api.github.com/users/ezefran/repos","events_url":"https://api.github.com/users/ezefran/events{/privacy}","received_events_url":"https://api.github.com/users/ezefran/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":410064485,"url":"https://api.github.com/repos/godotengine/godot/labels/needs%20testing","name":"needs testing","color":"ff9900","default":false},{"id":279098219,"url":"https://api.github.com/repos/godotengine/godot/labels/topic:editor","name":"topic:editor","color":"ffdd44","default":false},{"id":279098082,"url":"https://api.github.com/repos/godotengine/godot/labels/topic:gdscript","name":"topic:gdscript","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":241,"closed_issues":2078,"state":"open","created_at":"2015-12-08T11:42:08Z","updated_at":"2017-08-28T19:14:57Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-08-21T22:11:40Z","updated_at":"2017-08-28T19:33:18Z","closed_at":null,"body":"**Operating system or device - Godot version:**\r\nElementary OS 0.4.1 - Latest version (compiled from github's files)\r\n\r\n**Issue description:**\r\nIf you attach a new script with any template other than the default to a node, then that script cannot be opened and the console throws the following error:\r\n _editor/plugins/script_editor_plugin.cpp:1699 - Condition ' !se ' is true. returned: false_\r\n\r\n**Steps to reproduce:**\r\nAttach a new script to a node with any template different than the default and try to open it.\r\n\r\n**Link to minimal example project:**\r\nIt can be reproduced with a new project."},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/325455403","html_url":"https://github.com/godotengine/godot/issues/10522#issuecomment-325455403","issue_url":"https://api.github.com/repos/godotengine/godot/issues/10522","id":325455403,"user":{"login":"ezefran","id":13037858,"avatar_url":"https://avatars3.githubusercontent.com/u/13037858?v=4","gravatar_id":"","url":"https://api.github.com/users/ezefran","html_url":"https://github.com/ezefran","followers_url":"https://api.github.com/users/ezefran/followers","following_url":"https://api.github.com/users/ezefran/following{/other_user}","gists_url":"https://api.github.com/users/ezefran/gists{/gist_id}","starred_url":"https://api.github.com/users/ezefran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezefran/subscriptions","organizations_url":"https://api.github.com/users/ezefran/orgs","repos_url":"https://api.github.com/users/ezefran/repos","events_url":"https://api.github.com/users/ezefran/events{/privacy}","received_events_url":"https://api.github.com/users/ezefran/received_events","type":"User","site_admin":false},"created_at":"2017-08-28T19:33:18Z","updated_at":"2017-08-28T19:33:18Z","body":"I fixed it by deleting the _\"script_templates\"_ folder in _\"~/.godot\"_ and running Godot afterwards.\r\n\r\nThe template files were empty. They weren't written when they were created the first time for some reason."}}
{"actor":{"display_login":"ezefran"}}