{"action":"created","issue":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1858","labels_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1858/labels{/name}","comments_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1858/comments","events_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1858/events","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/1858","id":106135105,"number":1858,"title":"Unexpected \"Redeclared import error\"","user":{"login":"vburenin","id":4350891,"avatar_url":"https://avatars.githubusercontent.com/u/4350891?v=3","gravatar_id":"","url":"https://api.github.com/users/vburenin","html_url":"https://github.com/vburenin","followers_url":"https://api.github.com/users/vburenin/followers","following_url":"https://api.github.com/users/vburenin/following{/other_user}","gists_url":"https://api.github.com/users/vburenin/gists{/gist_id}","starred_url":"https://api.github.com/users/vburenin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vburenin/subscriptions","organizations_url":"https://api.github.com/users/vburenin/orgs","repos_url":"https://api.github.com/users/vburenin/repos","events_url":"https://api.github.com/users/vburenin/events{/privacy}","received_events_url":"https://api.github.com/users/vburenin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"zolotov","id":140920,"avatar_url":"https://avatars.githubusercontent.com/u/140920?v=3","gravatar_id":"","url":"https://api.github.com/users/zolotov","html_url":"https://github.com/zolotov","followers_url":"https://api.github.com/users/zolotov/followers","following_url":"https://api.github.com/users/zolotov/following{/other_user}","gists_url":"https://api.github.com/users/zolotov/gists{/gist_id}","starred_url":"https://api.github.com/users/zolotov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolotov/subscriptions","organizations_url":"https://api.github.com/users/zolotov/orgs","repos_url":"https://api.github.com/users/zolotov/repos","events_url":"https://api.github.com/users/zolotov/events{/privacy}","received_events_url":"https://api.github.com/users/zolotov/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-09-12T06:07:51Z","updated_at":"2015-09-13T01:05:53Z","closed_at":null,"body":"Import appears as redeclared.\r\nstrconv imported once and used in two places.\r\nBug didn't show up in 491 build.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/4350891/9830194/9eaaaea8-58d9-11e5-9e8d-6bdce78d75d3.png)\r\n![image](https://cloud.githubusercontent.com/assets/4350891/9830240/c69dd62c-58db-11e5-84b3-084731bbc9bd.png)\r\n\r\n\r\n![image](https://cloud.githubusercontent.com/assets/4350891/9830186/57521bcc-58d9-11e5-97f0-5d610b5435f2.png)\r\n![image](https://cloud.githubusercontent.com/assets/4350891/9830191/6cc10536-58d9-11e5-9f9a-0c9b6f504588.png)\r\n"},"comment":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/comments/139833106","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/1858#issuecomment-139833106","issue_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1858","id":139833106,"user":{"login":"sjamesr","id":4641539,"avatar_url":"https://avatars.githubusercontent.com/u/4641539?v=3","gravatar_id":"","url":"https://api.github.com/users/sjamesr","html_url":"https://github.com/sjamesr","followers_url":"https://api.github.com/users/sjamesr/followers","following_url":"https://api.github.com/users/sjamesr/following{/other_user}","gists_url":"https://api.github.com/users/sjamesr/gists{/gist_id}","starred_url":"https://api.github.com/users/sjamesr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjamesr/subscriptions","organizations_url":"https://api.github.com/users/sjamesr/orgs","repos_url":"https://api.github.com/users/sjamesr/repos","events_url":"https://api.github.com/users/sjamesr/events{/privacy}","received_events_url":"https://api.github.com/users/sjamesr/received_events","type":"User","site_admin":false},"created_at":"2015-09-13T01:05:53Z","updated_at":"2015-09-13T01:05:53Z","body":"It seems like we might want to add `allowed` as a predicate to the condition in `getAllPackagesInDirectory`:\r\n\r\n```java\r\nif (file instanceof GoFile && allowed(file) && !directoryToIgnore(file.getName())) {\r\n```\r\nRight now, in order to determine whether a \"C\" import is made, `allowed` eventually calls `getImportMap` which again calls `getAllPackagesInDirectory`."}}