{"action":"created","issue":{"url":"https://api.github.com/repos/Hackerpilot/DCD/issues/335","repository_url":"https://api.github.com/repos/Hackerpilot/DCD","labels_url":"https://api.github.com/repos/Hackerpilot/DCD/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/Hackerpilot/DCD/issues/335/comments","events_url":"https://api.github.com/repos/Hackerpilot/DCD/issues/335/events","html_url":"https://github.com/Hackerpilot/DCD/issues/335","id":164734243,"number":335,"title":"variable declared with auto + import alias get no completion","user":{"login":"LaurentTreguier","id":7602755,"avatar_url":"https://avatars.githubusercontent.com/u/7602755?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentTreguier","html_url":"https://github.com/LaurentTreguier","followers_url":"https://api.github.com/users/LaurentTreguier/followers","following_url":"https://api.github.com/users/LaurentTreguier/following{/other_user}","gists_url":"https://api.github.com/users/LaurentTreguier/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentTreguier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentTreguier/subscriptions","organizations_url":"https://api.github.com/users/LaurentTreguier/orgs","repos_url":"https://api.github.com/users/LaurentTreguier/repos","events_url":"https://api.github.com/users/LaurentTreguier/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentTreguier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-10T21:06:27Z","updated_at":"2016-07-20T03:05:16Z","closed_at":null,"body":"When using `auto` and an import alias to instanciate a struct or a class, the variable won't get completions from DCD.\r\n\r\n```d\r\nimport std.stdio;\r\n\r\nalias io = std.stdio;\r\n\r\nvoid main() {\r\n    auto f1 = File();\r\n    io.File f2;\r\n    auto f3 = io.File();\r\n\r\n    f1. // this one will get suggestions\r\n    f2. // this one too\r\n    f3. // but not that one\r\n}\r\n```\r\n\r\nI obtained this behavior on Visual Studio Code and Coedit, with DCD 0.8.0 and 0.9.0-alpha.\r\nIs it because of the combination of `auto` and an alias that would make for some obscure problem ?"},"comment":{"url":"https://api.github.com/repos/Hackerpilot/DCD/issues/comments/233826548","html_url":"https://github.com/Hackerpilot/DCD/issues/335#issuecomment-233826548","issue_url":"https://api.github.com/repos/Hackerpilot/DCD/issues/335","id":233826548,"user":{"login":"ANtlord","id":2972483,"avatar_url":"https://avatars.githubusercontent.com/u/2972483?v=3","gravatar_id":"","url":"https://api.github.com/users/ANtlord","html_url":"https://github.com/ANtlord","followers_url":"https://api.github.com/users/ANtlord/followers","following_url":"https://api.github.com/users/ANtlord/following{/other_user}","gists_url":"https://api.github.com/users/ANtlord/gists{/gist_id}","starred_url":"https://api.github.com/users/ANtlord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ANtlord/subscriptions","organizations_url":"https://api.github.com/users/ANtlord/orgs","repos_url":"https://api.github.com/users/ANtlord/repos","events_url":"https://api.github.com/users/ANtlord/events{/privacy}","received_events_url":"https://api.github.com/users/ANtlord/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T03:05:16Z","updated_at":"2016-07-20T03:05:16Z","body":"Hello!\r\n\r\nIt works for me in half of the cases. It completes `f1` and `f2`, but no `f3` and `io`. I've shared screenshots. Take a look https://www.dropbox.com/sh/vvguecn4oodgnzw/AAAUsEyZlA9F4hewyv514bega?dl=0"}}
{"actor":{"display_login":"ANtlord"}}