{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/23207","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/23207/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/23207/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/23207/events","html_url":"https://github.com/godotengine/godot/issues/23207","id":372359813,"node_id":"MDU6SXNzdWUzNzIzNTk4MTM=","number":23207,"title":"GDScript: warns that a class variable is unused while it actually is","user":{"login":"Zylann","id":1311555,"node_id":"MDQ6VXNlcjEzMTE1NTU=","avatar_url":"https://avatars1.githubusercontent.com/u/1311555?v=4","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":[{"id":73330064,"node_id":"MDU6TGFiZWw3MzMzMDA2NA==","url":"https://api.github.com/repos/godotengine/godot/labels/bug","name":"bug","color":"ff2222","default":true},{"id":279098219,"node_id":"MDU6TGFiZWwyNzkwOTgyMTk=","url":"https://api.github.com/repos/godotengine/godot/labels/topic:editor","name":"topic:editor","color":"ffdd44","default":false},{"id":279098082,"node_id":"MDU6TGFiZWwyNzkwOTgwODI=","url":"https://api.github.com/repos/godotengine/godot/labels/topic:gdscript","name":"topic:gdscript","color":"ffdd44","default":false}],"state":"open","locked":false,"assignee":{"login":"vnen","id":5599796,"node_id":"MDQ6VXNlcjU1OTk3OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/5599796?v=4","gravatar_id":"","url":"https://api.github.com/users/vnen","html_url":"https://github.com/vnen","followers_url":"https://api.github.com/users/vnen/followers","following_url":"https://api.github.com/users/vnen/following{/other_user}","gists_url":"https://api.github.com/users/vnen/gists{/gist_id}","starred_url":"https://api.github.com/users/vnen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vnen/subscriptions","organizations_url":"https://api.github.com/users/vnen/orgs","repos_url":"https://api.github.com/users/vnen/repos","events_url":"https://api.github.com/users/vnen/events{/privacy}","received_events_url":"https://api.github.com/users/vnen/received_events","type":"User","site_admin":false},"assignees":[{"login":"vnen","id":5599796,"node_id":"MDQ6VXNlcjU1OTk3OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/5599796?v=4","gravatar_id":"","url":"https://api.github.com/users/vnen","html_url":"https://github.com/vnen","followers_url":"https://api.github.com/users/vnen/followers","following_url":"https://api.github.com/users/vnen/following{/other_user}","gists_url":"https://api.github.com/users/vnen/gists{/gist_id}","starred_url":"https://api.github.com/users/vnen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vnen/subscriptions","organizations_url":"https://api.github.com/users/vnen/orgs","repos_url":"https://api.github.com/users/vnen/repos","events_url":"https://api.github.com/users/vnen/events{/privacy}","received_events_url":"https://api.github.com/users/vnen/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/godotengine/godot/milestones/7","html_url":"https://github.com/godotengine/godot/milestone/7","labels_url":"https://api.github.com/repos/godotengine/godot/milestones/7/labels","id":2529217,"node_id":"MDk6TWlsZXN0b25lMjUyOTIxNw==","number":7,"title":"3.1","description":"","creator":{"login":"akien-mga","id":4701338,"node_id":"MDQ6VXNlcjQ3MDEzMzg=","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":781,"closed_issues":4925,"state":"open","created_at":"2017-05-18T13:33:56Z","updated_at":"2018-12-15T00:11:25Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2018-10-21T21:38:37Z","updated_at":"2018-12-15T07:03:32Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Godot 3.1 alpha 1\r\n\r\nI made a subclass in my script just to hold a few variables together, however all of them produce an \"unused\" warning. Of course they are not used within that subclass (because it has no functions), but I use them like \"public\" variables elsewhere in the enclosing script, so the warning is just adding false positive noise.\r\n\r\n```gdscript\r\n\r\nclass Item:\r\n    var base = null\r\n    var length = 0\r\n\r\nvar _items = []\r\n\r\nfunc _ready():\r\n    var item = Item.new()\r\n    item.base = get_node(\"X\")\r\n    item.length = 5\r\n    _items.append(item)\r\n    #...\r\n```"},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/447543525","html_url":"https://github.com/godotengine/godot/issues/23207#issuecomment-447543525","issue_url":"https://api.github.com/repos/godotengine/godot/issues/23207","id":447543525,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzU0MzUyNQ==","user":{"login":"aaronfranke","id":1646875,"node_id":"MDQ6VXNlcjE2NDY4NzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1646875?v=4","gravatar_id":"","url":"https://api.github.com/users/aaronfranke","html_url":"https://github.com/aaronfranke","followers_url":"https://api.github.com/users/aaronfranke/followers","following_url":"https://api.github.com/users/aaronfranke/following{/other_user}","gists_url":"https://api.github.com/users/aaronfranke/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronfranke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronfranke/subscriptions","organizations_url":"https://api.github.com/users/aaronfranke/orgs","repos_url":"https://api.github.com/users/aaronfranke/repos","events_url":"https://api.github.com/users/aaronfranke/events{/privacy}","received_events_url":"https://api.github.com/users/aaronfranke/received_events","type":"User","site_admin":false},"created_at":"2018-12-15T07:03:32Z","updated_at":"2018-12-15T07:03:32Z","author_association":"CONTRIBUTOR","body":"`_process(delta)` gives a warning about unused `delta` unless you use it.\r\n\r\n`_process(_delta)` does not."}}
{"actor":{"display_login":"aaronfranke"}}