{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/13477","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/13477/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/13477/comments","events_url":"https://api.github.com/repos/golang/go/issues/13477/events","html_url":"https://github.com/golang/go/issues/13477","id":120348173,"number":13477,"title":"cmd/compile: Suggest typo fixes for resolution errors","user":{"login":"Manishearth","id":1617736,"avatar_url":"https://avatars.githubusercontent.com/u/1617736?v=3","gravatar_id":"","url":"https://api.github.com/users/Manishearth","html_url":"https://github.com/Manishearth","followers_url":"https://api.github.com/users/Manishearth/followers","following_url":"https://api.github.com/users/Manishearth/following{/other_user}","gists_url":"https://api.github.com/users/Manishearth/gists{/gist_id}","starred_url":"https://api.github.com/users/Manishearth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manishearth/subscriptions","organizations_url":"https://api.github.com/users/Manishearth/orgs","repos_url":"https://api.github.com/users/Manishearth/repos","events_url":"https://api.github.com/users/Manishearth/events{/privacy}","received_events_url":"https://api.github.com/users/Manishearth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/6","html_url":"https://github.com/golang/go/milestone/6","labels_url":"https://api.github.com/repos/golang/go/milestones/6/labels","id":1055141,"number":6,"title":"Unplanned","description":"No plan to fix in any specific release.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":1187,"closed_issues":637,"state":"open","created_at":"2015-04-06T20:47:19Z","updated_at":"2017-01-31T03:05:51Z","due_on":"2099-12-31T08:00:00Z","closed_at":null},"comments":8,"created_at":"2015-12-04T07:22:58Z","updated_at":"2017-01-31T09:04:58Z","closed_at":null,"body":"In case of \"cannot find package\" or \"undefined\" errors, perhaps we should suggest typo fix solutions?\n\nThe basic idea is to look for all allowed names in that position with the minimum levenshtein distance (perhaps capping it at 3 or something), and suggest those.\n\n[Rust does this](http://is.gd/BYma9H) and it's pretty useful.\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/276310247","html_url":"https://github.com/golang/go/issues/13477#issuecomment-276310247","issue_url":"https://api.github.com/repos/golang/go/issues/13477","id":276310247,"user":{"login":"odeke-em","id":4898263,"avatar_url":"https://avatars.githubusercontent.com/u/4898263?v=3","gravatar_id":"","url":"https://api.github.com/users/odeke-em","html_url":"https://github.com/odeke-em","followers_url":"https://api.github.com/users/odeke-em/followers","following_url":"https://api.github.com/users/odeke-em/following{/other_user}","gists_url":"https://api.github.com/users/odeke-em/gists{/gist_id}","starred_url":"https://api.github.com/users/odeke-em/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odeke-em/subscriptions","organizations_url":"https://api.github.com/users/odeke-em/orgs","repos_url":"https://api.github.com/users/odeke-em/repos","events_url":"https://api.github.com/users/odeke-em/events{/privacy}","received_events_url":"https://api.github.com/users/odeke-em/received_events","type":"User","site_admin":false},"created_at":"2017-01-31T09:04:58Z","updated_at":"2017-01-31T09:04:58Z","body":"That's a great point @rsc. While experimenting offline, I noticed the same problem, comically bad suggestions also present in the CL test/fixedbugs/*.go file e.g `TOOOOOOOOL` -> `did you mean Id?`.\r\nFor sure, I look forward to hearing from @dr2chase and other folks."}}
{"actor":{"display_login":"odeke-em"}}