AlanQuatermain / go-tmbundle

A TextMate bundle for the Go programming language.
http://alanquatermain.net/
Other
127 stars 40 forks source link

gofmt -tabwidth not supported in go1.3 #50

Closed willfaught closed 2 years ago

willfaught commented 10 years ago

When formatting a Go file in TextMate with this bundle, I get:

flag provided but not defined: -tabwidth usage: gofmt [flags] [path ...] -cpuprofile="": write cpu profile to this file -d=false: display diffs instead of rewriting files -e=false: report all errors (not just the first 10 on different lines) -l=false: list files whose formatting differs from gofmt's -r="": rewrite rule (e.g., 'a[b:len(a)] -> a[b:]') -s=false: simplify code -w=false: write result to (source) file instead of stdout

This seems to be caused by this line:

https://github.com/AlanQuatermain/go-tmbundle/blob/42b66feefe42a33b1bd419a92ff7134a8a436d0d/Support/gomate.rb#L80

I didn't see this error with go1.2.

$ go version go version go1.3 darwin/amd64