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
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@josharian
Copy link
Contributor

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
@josharian josharian added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

1 participant