Closed pwalker closed 2 years ago
Thanks for reporting this @pwalker. This must have presented as a very odd bug 😅. TwirpScript is working around map field detection in google protobuf: https://github.com/protocolbuffers/protobuf/issues/9369. Sorry for the bug, I'll have a fix up shortly.
@pwalker This is fixed in v0.0.63: https://github.com/tatethurston/TwirpScript/releases/tag/v0.0.63
Awesome, this works! Thanks for the bugfix, I appreciate it.
I'm encountering a problem when I have a message named "Entry", the compilation fails. Here's an example repo https://github.com/pwalker/twirpscript_repro and I'll paste the proto file in here:
However, if I change
Entry
toBar
it works:Also, here's something that could be a related stacktrace? This includes some other fields and things from the actual message I'm trying to use (line 161, 162, 164, 165), but I think the repro case above demonstrates the error.
I'm using twirpscript version 0.0.62. Let me know if I can provide any more info, but I suspect this just a naming collision somewhere.