Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/gofmt: refuses to format file with invalid column in line directive #38697

Open
josharian opened this issue Apr 27, 2020 · 0 comments
Open

cmd/gofmt: refuses to format file with invalid column in line directive #38697

josharian opened this issue Apr 27, 2020 · 0 comments

Comments

@josharian
Copy link
Contributor

@josharian josharian commented Apr 27, 2020

package p

//line :7:0
var x int
$ gofmt x.go     
x.go:3:11: invalid column number: 0

I don't see why an invalid line directive should prevent gofmt from formatting the file. It doesn't change its behavior based on its contents.

Low priority.

@josharian josharian added this to the Unplanned milestone Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.