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
109 stars 53 forks source link

ask init -l option not supported #14

Closed VLH-max closed 4 years ago

VLH-max commented 4 years ago

It seems the extension used to work with an old version of ASK CLI. I have ASK CLI 2.0 and when I try to use the VSCode extention I always get an error message saying "ask init -l option is not supported"

Indeed that option doesn't exist. Everything works fine when I use ASK CLI directly (I can deploy,...)

VLH-max commented 4 years ago

In fact if I refer to this: https://developer.amazon.com/fr-FR/docs/alexa/ask-toolkit/get-started-with-the-ask-toolkit-for-visual-studio-code.html

I assume most commands in the ASK Toolkit for VSCode won't work anymore, since they're mapped to obsolete ASK CLI commands.

Should I install an older version of ASK CLI?

nikhilym commented 4 years ago

Hi @VLH-max , sorry for the inconvenience. Your guess is right. The v2 version of ASK CLI has many commands moved, and they no longer interop well with the plugin. Please downgrade the CLI version to v1, if you are using it through the plugin.

Thanks for pointing out the doc. We are working with the doc team to get it updated.

VLH-max commented 4 years ago

Indeed, downgraded to 1.7.23 and working like a charm. Thanks for the quick reply!