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

[python] Don't throw error directly when emitter crash #6104

Merged
merged 9 commits into from
Feb 28, 2025
Merged

Conversation

msyyc
Copy link
Contributor

@msyyc msyyc commented Feb 21, 2025

fix #6081

We shall not throw error when emitter crash. Instead, we should catch the errors then report them with reportDiagnostic provided by compiler:
image

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Feb 21, 2025
@azure-sdk
Copy link
Collaborator

azure-sdk commented Feb 21, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@msyyc msyyc marked this pull request as ready for review February 24, 2025 03:32
@microsoft microsoft deleted a comment from azure-sdk Feb 24, 2025
@azure-sdk
Copy link
Collaborator

azure-sdk commented Feb 24, 2025

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - fix ✏️

[python] Don't throw error directly when emitter crash

@msyyc msyyc requested a review from iscai-msft February 26, 2025 02:37
Co-authored-by: Chenjie Shi <tadelesh.shi@live.cn>
@iscai-msft iscai-msft added this pull request to the merge queue Feb 27, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 27, 2025
@msyyc msyyc added this pull request to the merge queue Feb 28, 2025
Merged via the queue into main with commit 9b29c52 Feb 28, 2025
35 checks passed
@msyyc msyyc deleted the trace-optimize branch February 28, 2025 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:python Issue for the Python client emitter: @typespec/http-client-python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[python] Emitters should not crash on purpose
4 participants