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
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