{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/5972","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/5972/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/5972/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/5972/events","html_url":"https://github.com/godotengine/godot/issues/5972","id":168463001,"number":5972,"title":"GDscript keywords are automatically replaced by something irrelevant","user":{"login":"JulienGio","id":20727749,"avatar_url":"https://avatars.githubusercontent.com/u/20727749?v=3","gravatar_id":"","url":"https://api.github.com/users/JulienGio","html_url":"https://github.com/JulienGio","followers_url":"https://api.github.com/users/JulienGio/followers","following_url":"https://api.github.com/users/JulienGio/following{/other_user}","gists_url":"https://api.github.com/users/JulienGio/gists{/gist_id}","starred_url":"https://api.github.com/users/JulienGio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JulienGio/subscriptions","organizations_url":"https://api.github.com/users/JulienGio/orgs","repos_url":"https://api.github.com/users/JulienGio/repos","events_url":"https://api.github.com/users/JulienGio/events{/privacy}","received_events_url":"https://api.github.com/users/JulienGio/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"},{"url":"https://api.github.com/repos/godotengine/godot/labels/topic:gdscript","name":"topic:gdscript","color":"ffdd44"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-30T11:28:30Z","updated_at":"2016-07-30T20:21:10Z","closed_at":null,"body":"_This is a generalised version of the #5964_ \r\nAfter posting issue #5964 and seeing @rgrams 's comment, I decided to look a little bit more into the problem. \r\n\r\n**Operating system or device - Godot version:**\r\nWindows(does not matter), Godot 2.1RC1\r\n\r\n**Issue description** (what happened, and what was expected):\r\nWhenever you type a keyword(`pass`, `true`, ...) the editor suggests another unrelated function or constant. This problem is especially irritating if the keyword is followed by a newline because it automatically replaces the keyword in question.\r\nI went through most GDscript key word and noted what happened\r\nThe results: https://docs.google.com/spreadsheets/d/1nfh7Pw-5Qts0CBBN3okk6Y8CDsofJLlC07oTZfL6Wxo/edit?usp=sharing\r\nTurns out, the engine never suggests any keyword and sometimes replaces them with surprising results...\r\n\r\n**Link to minimal example project** (optional but very welcome):\r\nexample with `return` :\r\n![ss](https://cloud.githubusercontent.com/assets/20727749/17269792/a989e240-5652-11e6-8fdb-0e4b06816a30.jpg)\r\n\r\nPS: this should be a quick fix, I hope it makes into RC2 or 2.1 stable :)"},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/236387948","html_url":"https://github.com/godotengine/godot/issues/5972#issuecomment-236387948","issue_url":"https://api.github.com/repos/godotengine/godot/issues/5972","id":236387948,"user":{"login":"slapin","id":6099,"avatar_url":"https://avatars.githubusercontent.com/u/6099?v=3","gravatar_id":"","url":"https://api.github.com/users/slapin","html_url":"https://github.com/slapin","followers_url":"https://api.github.com/users/slapin/followers","following_url":"https://api.github.com/users/slapin/following{/other_user}","gists_url":"https://api.github.com/users/slapin/gists{/gist_id}","starred_url":"https://api.github.com/users/slapin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slapin/subscriptions","organizations_url":"https://api.github.com/users/slapin/orgs","repos_url":"https://api.github.com/users/slapin/repos","events_url":"https://api.github.com/users/slapin/events{/privacy}","received_events_url":"https://api.github.com/users/slapin/received_events","type":"User","site_admin":false},"created_at":"2016-07-30T20:21:10Z","updated_at":"2016-07-30T20:21:10Z","body":"Yeah, it is annoying.\r\nThis is why I generally disable autocomplete.\r\nThe problem is that it is not possible to resolve this in\r\nany sane way (except binding autocomplete to key\r\nand never running it automatically).\r\nFor less intimidating behaviour, adding all keywords to autocomplete\r\ndictionary might make it easier for users, also making autocomplete more intelligent\r\n(like detecting complete identifier and not trying to autocomplete it)\r\nwould also help, too."}}
{"actor":{"display_login":"slapin"}}