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
./MessageHeaderComp1.go:53:7: m.LmnInActingVersion undefined (type *MessageHeaderComp1 has no field or method LmnInActingVersion)
./MessageHeaderComp1.go:54:12: m.LmnNullValue undefined (type *MessageHeaderComp1 has no field or method LmnNullValue)
./MessageHeaderComp1.go:74:6: m.LmnInActingVersion undefined (type *MessageHeaderComp1 has no field or method LmnInActingVersion)
./MessageHeaderComp1.go:75:15: m.LmnMinValue undefined (type *MessageHeaderComp1 has no field or method LmnMinValue)
./MessageHeaderComp1.go:75:42: m.LmnMaxValue undefined (type *MessageHeaderComp1 has no field or method LmnMaxValue)
./MessageHeaderComp1.go:76:69: m.LmnMinValue undefined (type *MessageHeaderComp1 has no field or method LmnMinValue)
./MessageHeaderComp1.go:76:93: m.LmnMaxValue undefined (type *MessageHeaderComp1 has no field or method LmnMaxValue)
// old -- recursing with all the the rest of the tokens
generateComposite(tokens.subList(i, tokens.size()), typeName);
i += token.componentTokenCount() - 2;
// new -- recursing with only the composite's tokens
generateComposite(tokens.subList(i, i + token.componentTokenCount()), typeName);
i += token.componentTokenCount() - 1; // get past the components, then -1 offset the for's +1
I went back to #844 and verified that this was the underlying reason behind that failure (my failing schema worked with just this change). PR coming....
The text was updated successfully, but these errors were encountered:
neomantra
added a commit
to neomantra/simple-binary-encoding
that referenced
this issue
May 13, 2021
* [Go] Fix tokens passed to generateComposite (#849)
Too many tokens were passed to `generateComposite` causing weird
errors like(#844 and #849).
* [Go] Fix Group decoder style warning
The `Decode` generator for groups would produce the following code:
```
for i, _ := range o.GroupName {
```
The `gofmt` tools suggest [simplify range expression](https://github.com/golang/tools/blob/master/internal/lsp/analysis/simplifyrange/simplifyrange.go#L23):
```
A range of the form:
for x, _ = range v {...}
will be simplified to:
for x = range v {...}
```
This patch fixes that.
Given the following schema:
The generated nested types have too many fields (
Lmn
):And compilation brings up these errors:
After exploring this, I got it down to this line:
I went back to #844 and verified that this was the underlying reason behind that failure (my failing schema worked with just this change). PR coming....
The text was updated successfully, but these errors were encountered: