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
We need to empower our customers both internal and external to easily trouble shooting and fix spec issues that would block the CodeGen.
Today, TCGC could already do the check on the patterns and results from TypeSpec compiler and reports warning and errors for the unsupported case and invalid usage.
However, by checking with all language owners, our CodeGen didn't address those errors and warnings from TCGC in CodeGen implementation and in most cases would continue the codegen which would result in unexpected generated code & error. When that happens, the outcome would be difficult to trouble shooting.
This could be part of #5508 to improve self-service trouble shooting.
Expected behavior:
.NET CodeGen could display those warnings and errors from TCGC in the output instead of ignoring them.
.NET CodeGen should properly address the errors and warnings to provide a better user experience.
workstream this request is associated with
This is related to the TypeSpec E2E scenario to provide a better experience to trouble shooting codegen problems.
It would also improve the experience in SDK automation.
@lirenhe, if these are errors, then shouldn't the generation fail as a result of TCGC throwing errors? Can you provide an example of how this is happening?
@lirenhe, if these are errors, then shouldn't the generation fail as a result of TCGC throwing errors? Can you provide an example of how this is happening?
Yes, this is the expected behavior but today we continue the generation and ignore TCGC errors.
We face one case when Shanghai team discuss the un-branded support. @tadelesh / @ArcturusZhang , could you provide the detail of that case? thanks
Shouldn't TCGC exit with an error code if they are logging error diagnostics? If something is an error, what is the reason for continuing? All emitters would need to handle this as well.
Clear and concise description of the problem
We need to empower our customers both internal and external to easily trouble shooting and fix spec issues that would block the CodeGen.
Today, TCGC could already do the check on the patterns and results from TypeSpec compiler and reports warning and errors for the unsupported case and invalid usage.
However, by checking with all language owners, our CodeGen didn't address those errors and warnings from TCGC in CodeGen implementation and in most cases would continue the codegen which would result in unexpected generated code & error. When that happens, the outcome would be difficult to trouble shooting.
This could be part of #5508 to improve self-service trouble shooting.
Expected behavior:
workstream this request is associated with
This is related to the TypeSpec E2E scenario to provide a better experience to trouble shooting codegen problems.
It would also improve the experience in SDK automation.
stakeholders
@lmazuel / @lirenhe
priority and timeline.
I suggest we should provide a better way to address TCGC warning/errors as part of the TypeSpec GA.
Checklist
The text was updated successfully, but these errors were encountered: