Open
Description
I have an api project uses ffjson to generate code handling json, use the ffjson -force-regenerate $GOFILE
to always regenerate,
//go:generate ffjson -force-regenerate $GOFILE
Met two problems:
- sometimes the force regenerate would create an almost empty file with comments header and one line
import ()
only, just re-run the same force-regenerate would fix and got a good generated file; - the 2nd problem is below, since I removed a field
Extra
from a data structure and re-generate, wonder why theforce-regenerate
need to look at the previously generated./admin_rest_ffjson.go
? Doesn't theforce-regenerate
mean to forget whatever existing code just force regenerate? The workaround is simple: just remove the./admin_rest_ffjson.go
beforego generate
$ go generate -v -x ./api
api/admin_rest.go
ffjson -force-regenerate admin_rest.go
Error: Go Run Failed for: ffjson-inception297320246/ffjson-inception651681391.go
STDOUT:
STDERR:
# github.com/team/proj/api
./admin_rest_ffjson.go:1270:37: j.Extra undefined (type *DataType has no field or method Extra)
./admin_rest_ffjson.go:1705:5: j.Extra undefined (type *DataType has no field or method Extra)
:
api/admin_rest.go:1: running "ffjson": exit status 1
Is this project Abandoned?
am checking many other open issues on this board seeing many ones have months no response at all; wonder is this project abandoned ? nobody is fixing any bugs ?
Metadata
Metadata
Assignees
Labels
No labels