[TS/JS] Fix TS code gen after #6420#6445
Conversation
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
bc3ffcf to
cf782ed
Compare
|
@googlebot I fixed it. |
|
@krojew Would you mind helping me make my two PRs pass the CIs ? I think the problems come from the generated files. |
|
@ptitjes did you run tests/generate_code.sh after making changes? |
|
This is already fixed on master with #6495? |
This PR fixes a code gen problem introduced in #6420. The generated code for "endXXStruct()" doesn't compile. I assume that there was a regexp used to replace
.requiredby.IsRequired. It was also applied incorrectly tobuilder.requiredField.To test it I did:
It seem the
makerun did modifications to some generated.hfiles that are totally unrelated to my fix. I suspect that these were not correctly regenerated by a previous PR. I included those changes as a separate commit. Tell me if you want to drop this commit.Also when I do
cd test, sh generate_code.shthe changes on the.hare reverted and a whole lot of new.js|.ts|.d.tsfiles are created at the root of thetestsdirectory and not in thetests/tsdirectory (which already contains the same files). Is that supposed to happen ? Please tell me what to do.