Include known providers in error message when provider is not found#9733
Merged
Conversation
Copilot
AI
changed the title
[WIP] Update error messages to include known providers
Include known providers in error message when provider is not found
Oct 27, 2025
Member
|
@copilot the build failed |
Contributor
Author
Fixed using statement ordering to comply with .editorconfig (System.* namespaces first, then alphabetically sorted). See commit cd40fc7. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
cd40fc7 to
bb73026
Compare
Contributor
Author
Fixed the build errors in
See commit 221f423. |
221f423 to
f287cd2
Compare
ReubenBond
approved these changes
Feb 15, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances error messages when providers are not found to include a list of known/registered providers of the same kind, making it easier for developers to diagnose configuration issues.
Changes:
- Enhanced error messages in both
DefaultClientServices.csandDefaultSiloServices.csto include sorted lists of known providers when a provider is not found - Fixed a pre-existing typo where "or" was missing in the
DefaultClientServices.cserror message - Fixed using statement ordering in
DefaultClientServices.csto comply with .editorconfig rules - Added comprehensive tests in
ProviderErrorMessageTests.csto verify the enhanced error messages
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Orleans.Core/Core/DefaultClientServices.cs | Enhanced error messages to include known providers list, fixed typo ("or" was missing), and corrected using statement ordering |
| src/Orleans.Runtime/Hosting/DefaultSiloServices.cs | Enhanced error messages to include known providers list (consistent with client implementation) |
| test/NonSilo.Tests/ProviderErrorMessageTests.cs | Added comprehensive tests for client and silo provider error messages, covering different provider types |
Co-authored-by: ReubenBond <203839+ReubenBond@users.noreply.github.com>
Co-authored-by: ReubenBond <203839+ReubenBond@users.noreply.github.com>
Co-authored-by: ReubenBond <203839+ReubenBond@users.noreply.github.com>
Co-authored-by: ReubenBond <203839+ReubenBond@users.noreply.github.com>
…tterns Co-authored-by: ReubenBond <203839+ReubenBond@users.noreply.github.com>
f287cd2 to
814a9fb
Compare
rkargMsft
pushed a commit
to rkargMsft/orleans
that referenced
this pull request
Feb 27, 2026
…otnet#9733) * Include known providers in error message when provider is not found Co-authored-by: ReubenBond <203839+ReubenBond@users.noreply.github.com> * Add tests for provider error message enhancement Co-authored-by: ReubenBond <203839+ReubenBond@users.noreply.github.com> * Fix missing 'or' in error message and update tests Co-authored-by: ReubenBond <203839+ReubenBond@users.noreply.github.com> * Fix using statement ordering per .editorconfig Co-authored-by: ReubenBond <203839+ReubenBond@users.noreply.github.com> * Fix test file build errors - use correct configuration and hosting patterns Co-authored-by: ReubenBond <203839+ReubenBond@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ReubenBond <203839+ReubenBond@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR successfully implements the requested feature to include known/registered providers in error messages when a provider is not found.
Key Changes:
DefaultClientServices.csandDefaultSiloServices.csProviderErrorMessageTests.csExample Output:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Microsoft Reviewers: Open in CodeFlow