alexa / ask-toolkit-for-vscode

ASK Toolkit is an extension for Visual Studio Code (VSC) that that makes it easier for developers to develop and deploy Alexa Skills.
https://developer.amazon.com/en-US/docs/alexa/ask-toolkit/get-started-with-the-ask-toolkit-for-visual-studio-code.html
Apache License 2.0
108 stars 52 forks source link

chore: add accurate error message when current active profile does not match a profile configured in the skill #255

Closed tydonelson closed 1 year ago

tydonelson commented 1 year ago

This fix improves the wording of a message that appears when the currently active profile does not match a profile configured in the ask-resources.json file in the currently opened skill. It also directs the user on what needs to be changed to resolve it.

Prior: "Failed to read skill package path due to AskError: Failed to get skill package path in ask-resources.json, please specify 'src' field in 'skillMetadata' under your profile name., the skill package watcher won't start."

Now: "Failed to read skill package path due to AskError: Currently active profile, 'default', was not found in 'ask-resources.json'. Profiles configured for this skill: 'acdl'. Please ensure that the name of your active profile, 'default', matches a profile configured in 'ask-resources.json' and '.ask/ask-states.json'., the skill package watcher won't start."

Motivation and Context

The previous error message was misleading and did not point out the true cause of the issue.

Testing

Manually tested

image

Types of changes

Checklist

License