ugorji / go

idiomatic codec and rpc lib for msgpack, cbor, json, etc. msgpack.org[Go]
MIT License
1.87k stars 295 forks source link

msgpack codecgen fails on [][2]string types on missing encArray2string #118

Closed client9 closed 9 years ago

client9 commented 9 years ago

this is using latest codecgen

xx_codecgen.go:1742: h.encArray2string undefined (type codecSelfer9178 has no field or method encArray2string)
ugorji commented 9 years ago

Please send a full reproducer that I can quickly run, along with steps to reproduce

client9 commented 9 years ago

same as #88

client9 commented 9 years ago
$ cat junk.go
package junk

type Junk struct {
    Names [][2]string
}

$ codecgen -o junk_gen.go junk.go
$ go build ./...
./junk_gen.go:243: h.encArray2string undefined (type codecSelfer7812 has no field or method encArray2string)
./junk_gen.go:302: h.decArray2string undefined (type codecSelfer7812 has no field or method decArray2string)
./junk_gen.go:319: h.decArray2string undefined (type codecSelfer7812 has no field or method decArray2string)
./junk_gen.go:344: h.decArray2string undefined (type codecSelfer7812 has no field or method decArray2string)
ugorji commented 9 years ago

Working on it now. Reproduced. Should have a fix later on today.