Skip to content

Comments

report nice error message when dotnet is not installed or not valid#5477

Merged
chunyu3 merged 34 commits intomicrosoft:mainfrom
chunyu3:Fix5364
Jan 22, 2025
Merged

report nice error message when dotnet is not installed or not valid#5477
chunyu3 merged 34 commits intomicrosoft:mainfrom
chunyu3:Fix5364

Conversation

@chunyu3
Copy link
Contributor

@chunyu3 chunyu3 commented Jan 3, 2025

Fix #5364

  • add invalid-dotnet-sdk-dependency diagnostic
  • When dotnet generation fail, check dotnet to filter out the failure because of runtime dependency is not valid
    • dotnet sdk is not installed
    • the installed dotnet sdk is not meet with the version requirement.

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label Jan 3, 2025
@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

@typespec/http-client-csharp

@chunyu3 chunyu3 requested a review from ArcturusZhang January 3, 2025 06:50
Copy link
Contributor

@JoshLove-msft JoshLove-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a few questions

@chunyu3 chunyu3 changed the title report nice error message when dotnet is not installed report nice error message when dotnet is not installed or not valid Jan 13, 2025
@chunyu3 chunyu3 requested a review from JoshLove-msft January 14, 2025 01:55
Copy link
Contributor

@JoshLove-msft JoshLove-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a few additional comments, but overall looks like a nice improvement to the UX.

chunyu3 and others added 3 commits January 15, 2025 13:15
Co-authored-by: Jesse Squire <jesse.squire@gmail.com>
Co-authored-by: Jesse Squire <jesse.squire@gmail.com>
Co-authored-by: Jesse Squire <jesse.squire@gmail.com>
chunyu3 and others added 2 commits January 18, 2025 08:47
Co-authored-by: Jesse Squire <jesse.squire@gmail.com>
Copy link
Member

@jsquire jsquire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'll clear my request for changes and let @JoshLove-msft make the final decision on when to move forward.

@jsquire jsquire dismissed their stale review January 21, 2025 20:10

Updates resolved concerns.

@chunyu3 chunyu3 dismissed JoshLove-msft’s stale review January 22, 2025 00:39

the comments are all resolved.

@chunyu3 chunyu3 added this pull request to the merge queue Jan 22, 2025
Merged via the queue into microsoft:main with commit 06bc35c Jan 22, 2025
21 checks passed
@chunyu3 chunyu3 deleted the Fix5364 branch January 22, 2025 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: C# emitter should explain simply that .NET needs to be installed

6 participants