Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java CodeGen should provide clear message for self-service trouble shooting #5511

Open
3 tasks done
lirenhe opened this issue Jan 7, 2025 · 0 comments
Open
3 tasks done
Assignees
Labels
emitter:client:java Issue for the Java client emitter: @typespec/http-client-java

Comments

@lirenhe
Copy link
Member

lirenhe commented Jan 7, 2025

Clear and concise description of the problem

We need to empower our customers both internal and external to easily trouble shooting and update/fix spec issues that would block the CodeGen.
If certain TypeSpec features or patterns are not supported by CodeGen, we should clearly point it out and suggest them to update the spec with the features we supported for CodeGen.

Today, Java CodeGen could already do more then just let emitter crash.
Create this issue for any further improvement needed for self-service trouble shooting.

Some proposals:

  1. Leverage TypeSpec diagnostics APIs to report the errors and provide more context so that users could easily identify the TypeSpec source that cause the error..
  2. Provide a clear message for the unsupported scenarios and ideally provide some suggestions on how to fix.

Checklist

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
@lirenhe lirenhe added the emitter:client:java Issue for the Java client emitter: @typespec/http-client-java label Jan 7, 2025
@weidongxu-microsoft weidongxu-microsoft self-assigned this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:java Issue for the Java client emitter: @typespec/http-client-java
Projects
None yet
Development

No branches or pull requests

2 participants