{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1132","repository_url":"https://api.github.com/repos/Microsoft/vscode-go","labels_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1132/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1132/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1132/events","html_url":"https://github.com/Microsoft/vscode-go/issues/1132","id":248181054,"number":1132,"title":"Browse packages does not list packages","user":{"login":"delicb","id":131180,"avatar_url":"https://avatars3.githubusercontent.com/u/131180?v=4","gravatar_id":"","url":"https://api.github.com/users/delicb","html_url":"https://github.com/delicb","followers_url":"https://api.github.com/users/delicb/followers","following_url":"https://api.github.com/users/delicb/following{/other_user}","gists_url":"https://api.github.com/users/delicb/gists{/gist_id}","starred_url":"https://api.github.com/users/delicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delicb/subscriptions","organizations_url":"https://api.github.com/users/delicb/orgs","repos_url":"https://api.github.com/users/delicb/repos","events_url":"https://api.github.com/users/delicb/events{/privacy}","received_events_url":"https://api.github.com/users/delicb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-05T11:50:48Z","updated_at":"2017-08-06T12:22:37Z","closed_at":null,"body":"\"Browse packages\" feature, which is recently introduced, never manages to list packages.\r\n\r\nAll I get is bar saying \"Finding packages... Try after sometime.\". But it does not work after \"sometime\"\r\n\r\nI am using vscode-go in version 0.6.63 and vscode in version 1.14.2 os macOS Siera (10.12.6).\r\n\r\nManually running `go list all` does take some time on my machine (probably due to number of installed packages in GOPATH). I am not sure what is intended time for running this, but here is timed output:\r\n\r\nFirst run:\r\n```bash\r\n$ time go list all\r\n...\r\ngo list all  9.35s user 9.19s system 11% cpu 2:46.14 total\r\n```\r\n\r\nNext run:\r\n```bach\r\n$ time go list all\r\n...\r\ngo list all  7.31s user 5.28s system 25% cpu 49.378 total\r\n```\r\n\r\nA thing to note is that I do get some errors when executing `go list all` for packages that expect to be imported via vanity path and are in wrong place in my `$GOPATH`. Could this be the cause? Or is it timeout? Is it possible to increase timeout?"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-go/issues/comments/320503638","html_url":"https://github.com/Microsoft/vscode-go/issues/1132#issuecomment-320503638","issue_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1132","id":320503638,"user":{"login":"delicb","id":131180,"avatar_url":"https://avatars3.githubusercontent.com/u/131180?v=4","gravatar_id":"","url":"https://api.github.com/users/delicb","html_url":"https://github.com/delicb","followers_url":"https://api.github.com/users/delicb/followers","following_url":"https://api.github.com/users/delicb/following{/other_user}","gists_url":"https://api.github.com/users/delicb/gists{/gist_id}","starred_url":"https://api.github.com/users/delicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delicb/subscriptions","organizations_url":"https://api.github.com/users/delicb/orgs","repos_url":"https://api.github.com/users/delicb/repos","events_url":"https://api.github.com/users/delicb/events{/privacy}","received_events_url":"https://api.github.com/users/delicb/received_events","type":"User","site_admin":false},"created_at":"2017-08-06T12:22:37Z","updated_at":"2017-08-06T12:22:37Z","body":"Not just `go get gopkg.in/...`. For example, https://github.com/uber-go/zap should be installed by using `go get -u go.uber.org/zap`. If someone would do `go get github.com/uber-go/zap` that would result in error:\r\n```bash\r\npackage github.com/uber-go/zap: code in directory /Users/del-boy/go/src/github.com/uber-go/zap expects import \"go.uber.org/zap\"\r\n```\r\nBut folder `$GOPATH/github.com/uber-go/zap` would be created and because of that when `go list all` is executed, first few lines are:\r\n```\r\n(3.6.1) ~/go/src  ᐅ go list all\r\ncan't load package: package github.com/uber-go/zap: code in directory /Users/del-boy/go/src/github.com/uber-go/zap expects import \"go.uber.org/zap\"\r\ncan't load package: package github.com/uber-go/zap/zapcore: code in directory /Users/del-boy/go/src/github.com/uber-go/zap/zapcore expects import \"go.uber.org/zap/zapcore\"\r\ncan't load package: package github.com/uber-go/zap/zapgrpc: code in directory /Users/del-boy/go/src/github.com/uber-go/zap/zapgrpc expects import \"go.uber.org/zap/zapgrpc\"\r\ncan't load package: package github.com/uber-go/zap/zaptest: code in directory /Users/del-boy/go/src/github.com/uber-go/zap/zaptest expects import \"go.uber.org/zap/zaptest\"\r\ncan't load package: package github.com/uber-go/zap/zaptest/observer: code in directory /Users/del-boy/go/src/github.com/uber-go/zap/zaptest/observer expects import \"go.uber.org/zap/zaptest/observer\"\r\n# rest of the packages\r\n```\r\n\r\nAt least that is what I believe could cause problems, but not I can not reproduce this consistently. I did what I wrote above, but now I do get list of packages in vscode. Earlier I had over 100 packages like this, now I cleaned them all, so number might be relevant (it could take longer for `go list all` to finish if there are a lot of packages like this or something similar). "}}
{"actor":{"display_login":"delicb"}}