{"action":"opened","issue":{"url":"https://api.github.com/repos/golang/go/issues/24344","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/24344/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/24344/comments","events_url":"https://api.github.com/repos/golang/go/issues/24344/events","html_url":"https://github.com/golang/go/issues/24344","id":304102943,"number":24344,"title":"cmd/compile: relative position filenames in errors are inconsistent with go/parser","user":{"login":"mvdan","id":3576549,"avatar_url":"https://avatars0.githubusercontent.com/u/3576549?v=4","gravatar_id":"","url":"https://api.github.com/users/mvdan","html_url":"https://github.com/mvdan","followers_url":"https://api.github.com/users/mvdan/followers","following_url":"https://api.github.com/users/mvdan/following{/other_user}","gists_url":"https://api.github.com/users/mvdan/gists{/gist_id}","starred_url":"https://api.github.com/users/mvdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvdan/subscriptions","organizations_url":"https://api.github.com/users/mvdan/orgs","repos_url":"https://api.github.com/users/mvdan/repos","events_url":"https://api.github.com/users/mvdan/events{/privacy}","received_events_url":"https://api.github.com/users/mvdan/received_events","type":"User","site_admin":false},"labels":[{"id":373401956,"url":"https://api.github.com/repos/golang/go/labels/NeedsDecision","name":"NeedsDecision","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-10T20:39:05Z","updated_at":"2018-03-10T20:39:05Z","closed_at":null,"author_association":"MEMBER","body":"Given a single file with a trivial syntax error in the current directory:\r\n\r\n```\r\n$ cat f.go\r\npackage p\r\n\r\nfunc\r\n$ go build f.go\r\n# command-line-arguments\r\n./f.go:4:1: syntax error: unexpected EOF, expecting name or (\r\n$ gofmt f.go\r\nf.go:3:6: expected 'IDENT', found 'EOF'\r\n```\r\n\r\nThe compiler likes to use the `./` prefix, while the older packages like `go/parser` don't. Is there a good reason for this inconnsistency? If not, I imagine that they should be consistent.\r\n\r\nLabelling as NeedsDecision as it's not immediately clear to me if there should be a fix, and what that fix would look like.\r\n\r\n/cc @griesemer @mdempsky "}}
{"actor":{"display_login":"mvdan"}}