{"action":"created","issue":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1990","labels_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1990/labels{/name}","comments_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1990/comments","events_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1990/events","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/1990","id":116325808,"number":1990,"title":"Gotype should  check an entire package instead of one file.","user":{"login":"DmitriyMV","id":6999905,"avatar_url":"https://avatars.githubusercontent.com/u/6999905?v=3","gravatar_id":"","url":"https://api.github.com/users/DmitriyMV","html_url":"https://github.com/DmitriyMV","followers_url":"https://api.github.com/users/DmitriyMV/followers","following_url":"https://api.github.com/users/DmitriyMV/following{/other_user}","gists_url":"https://api.github.com/users/DmitriyMV/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitriyMV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitriyMV/subscriptions","organizations_url":"https://api.github.com/users/DmitriyMV/orgs","repos_url":"https://api.github.com/users/DmitriyMV/repos","events_url":"https://api.github.com/users/DmitriyMV/events{/privacy}","received_events_url":"https://api.github.com/users/DmitriyMV/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/labels/bug","name":"bug","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-11T12:33:38Z","updated_at":"2015-11-11T20:09:55Z","closed_at":null,"body":"Continuation of #1967\r\n\r\nRight now, if your project has more than one file and type, plugin will produce errors. That's because currently gotype is only checking selected file without getting types from others, so it doesn't know anything about them. Solution is quite simple - just check the folder and not the file.\r\n\r\nIn case of `/src/github.com/username/goproject/main.go` should become `/src/github.com/username/goproject`"},"comment":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/comments/155897117","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/1990#issuecomment-155897117","issue_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1990","id":155897117,"user":{"login":"dlsniper","id":607868,"avatar_url":"https://avatars.githubusercontent.com/u/607868?v=3","gravatar_id":"","url":"https://api.github.com/users/dlsniper","html_url":"https://github.com/dlsniper","followers_url":"https://api.github.com/users/dlsniper/followers","following_url":"https://api.github.com/users/dlsniper/following{/other_user}","gists_url":"https://api.github.com/users/dlsniper/gists{/gist_id}","starred_url":"https://api.github.com/users/dlsniper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlsniper/subscriptions","organizations_url":"https://api.github.com/users/dlsniper/orgs","repos_url":"https://api.github.com/users/dlsniper/repos","events_url":"https://api.github.com/users/dlsniper/events{/privacy}","received_events_url":"https://api.github.com/users/dlsniper/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T20:09:55Z","updated_at":"2015-11-11T20:09:55Z","body":"Ok so I've found the root of the issue.\r\nAccording to https://github.com/golang/go/issues/10969 which points to https://github.com/golang/go/issues/10249#issuecomment-86671707 this happens because `go install` isn't used on the package at least once before applying `gotype`. I'll try to submit a fix for this soonish."}}