Skip to content

Use fuzzy matching for some error cases #759

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

Open
SteveL-MSFT opened this issue Apr 22, 2025 · 0 comments
Open

Use fuzzy matching for some error cases #759

SteveL-MSFT opened this issue Apr 22, 2025 · 0 comments
Labels
Issue-Enhancement The issue is a feature or idea Needs Triage

Comments

@SteveL-MSFT
Copy link
Member

Summary of the new feature / enhancement

One use case that was hit recently is someone was switching between using WindowsPowerShell and PowerShell 7 and the module with the DSC resource they were using was only installed for PowerShell 7, but they specified Windows PowerShell. In this specific case, it was not obvious to them why DSC reported that the module was not found.

Proposed technical implementation details (optional)

Although it might not help in this specific case, it might help generally when people are handcrafting configurations and making typos particularly where it's case-sensitive. So there may be places like resource type names, resource properties where we can apply a fuzzy match to tell the user "did you mean X?" instead of just reporting that "Y didn't match the schema" or "Y was unexpected".

@SteveL-MSFT SteveL-MSFT added Issue-Enhancement The issue is a feature or idea Needs Triage labels Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement The issue is a feature or idea Needs Triage
Projects
None yet
Development

No branches or pull requests

1 participant