You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I'm doing something wrong, but I'm getting generated Go code that has imports in the file after some code (which is illegal). I get this with my own thrift code, but also just with the tutorial.
$ ./thrift-0.9.0/compiler/cpp/thrift -r --gen go thrift-0.9.0/tutorial/tutorial.thrift
./gen-go//tutorial/Calculator.go:23:1: expected declaration, found 'import'
WARNING - Running 'gofmt -w ./gen-go//tutorial/Calculator.go' failed.
./gen-go//tutorial/ttypes.go:23:1: expected declaration, found 'import'
WARNING - Running 'gofmt -w ./gen-go//tutorial/ttypes.go' failed.
And when we look at gen-go/tutorial/Calculator.go:
Maybe I'm doing something wrong, but I'm getting generated Go code that has imports in the file after some code (which is illegal). I get this with my own thrift code, but also just with the tutorial.
And when we look at
gen-go/tutorial/Calculator.go
:The text was updated successfully, but these errors were encountered: