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

Error while trying to register a device for skill testing in VS Code #227

Closed appcloid closed 1 year ago

appcloid commented 1 year ago

I was setting up development and testing of Alexa Hosted skill in Visual Studio Code and was following this document - https://developer.amazon.com/de-DE/docs/alexa/ask-toolkit/vs-code-testing-simulator.html

When I tried to register a device for testing I got following error -

Error running command askContainer.skillsConsole.deviceRegistry: Cannot read properties of undefined (reading 'CommandType'). This is likely caused by the extension that contributes askContainer.skillsConsole.deviceRegistry.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Skills Management'
  2. Click on ellipsis (…)
  3. Click on 'Register Device'
  4. See error
  5. Tried the same after closing and opening the Visual Code
  6. Open ASK Toolkit Output window, and provide the logs - No logs printed
  7. When tried other options under Skills Management like Profile Manager then a new error was shown -

Error running command ask.init: Cannot read properties of undefined (reading 'CommandType'). This is likely caused by the extension that contributes ask.init.

Context

Additional context

doiron commented 1 year ago

Can you try to reach the page using keyboard shortcuts? for mac I used "Command+Shift+P" I believe something in the new VSCode version has caused this.

doiron commented 1 year ago

for windows I believe it's ctrl + shift + p

once you are in the Command palette, run >Register device

tydonelson commented 1 year ago

Closing for now, @appcloid if the above workaround doesn't work for some reason, please let us know and we can reopen.