GithubHelp home page GithubHelp logo

alexa / ask-toolkit-for-vscode Goto Github PK

View Code? Open in Web Editor NEW
106.0 38.0 50.0 56.06 MB

ASK Toolkit is an extension for Visual Studio Code (VSC) that that makes it easier for developers to develop and deploy Alexa Skills.

Home Page: https://developer.amazon.com/en-US/docs/alexa/ask-toolkit/get-started-with-the-ask-toolkit-for-visual-studio-code.html

License: Apache License 2.0

TypeScript 78.40% JavaScript 8.82% HTML 8.62% CSS 4.15%
alexa alexa-skills-kit alexa-toolkit vscode-extension alexa-tools alexa-skill alexa-presentation-language local-development local-debugging

ask-toolkit-for-vscode's Introduction


Alexa Skills Toolkit for Visual Studio Code

Alexa Skills Toolkit for Visual Studio Code is an extension that makes it easier for you to create, test, and deploy Alexa skills. It provides a dedicated workspace for Alexa Skills in VS Code and provides features for managing and previewing APL documents along with the ability to test and debug your skills in VS Code with local debugging.

See the getting started documentation

Requirements

  1. To create and deploy Alexa-hosted skills, download Git and install it. We recommend the latest version of git to have a seamless experience.
  2. Install and configure VSCode Python extension, if you plan to develop skills using python.
  3. ASK Toolkit (v2.5.0 and above) works with Visual Studio Code IDE (version 1.53.0 or higher), please make sure you have the latest version installed.

Note : ASK CLI is no longer a requirement for the extension and the commands are no longer available in the VSCode Command Palette. Please install and use the ASK CLI directly.

Quick Start

Sign in to your Amazon Developer account


Sign-In Preview

Create a skill


Create Skill

Create and preview APL documents


Create APL doc

Setup local debugging


Local debugging

Test skill through local simulator


Local simulator

Deploy and build skill

Deploy an Alexa hosted skill


Deploy Alexa hosted skill

Deploy a self hosted skill


Deploy self hosted skill


Features

  • Set up skill project

    • Quickly set up an Alexa skill project by creating a skill or downloading an existing skill or opening a local skill. Any skill that follows the ASK CLI v2 skill structure is supported. Use the Skill Management tab under the extension, to try these out.
    • Once opened, your skill project will appear under the Skills pane in the extension sidebar.
    • Alexa Skills Toolkit supports creation of both Alexa-hosted and self-hosted skills. To create a self-hosted skill, you can select Provision your own to host your skill's backend resources.
  • Build or Download Interaction Model

    • Edit the Interaction Model JSON under Skill Package folder of your skill project.
    • Alternatively, download the updated Interaction Model JSON from developer console using the Download option under Skills pane -> YourAwesomeSkill -> Interaction model.

Note: Currently, only saved and built interaction models can be downloaded from developer console.

  • Build or Download Skill Manifest

    • Edit the Skill Manifest JSON under Skill Package folder of your skill project.
    • Alternatively, download the updated Skill Manifest JSON from developer console using the Download option under Skills pane -> YourAwesomeSkill -> Skill manifest.
  • Create, Download & Preview APL Documents

    • Create new APL documents using the Create option under Skills pane -> YourAwesomeSkill -> Alexa Presentation Language (APL).
    • Download saved APL documents in the APL Authoring tool, using Download option under Skills pane -> YourAwesomeSkill -> Alexa Presentation Language (APL).
    • Preview APL documents in Skill Package, using Preview option under Skills pane -> YourAwesomeSkill -> Alexa Presentation Language (APL).
    • Optionally, change the viewport of the preview to a different device, using Change viewport profile option under Skills pane -> YourAwesomeSkill -> Alexa Presentation Language (APL).
  • Test & Debug Skills Locally

    • Add default Node/Python debug configurations in your skill's launch.json debug configuration file, install dependencies (ask-sdk-local-debug) and start a local debug session. More information can be found on the getting started documentation
    • Simulate alexa requests through local simulator in the extension.
    • Save and replay the simulate session through the local simulator.

Note: If you are using any existing profiles, we recommend you to recreate them again from the Skill Management tab -> hamburger (...) menu -> Profile Manager view, so that the profile will contain all LWA scopes needed for local debugging.

  • Deploy your skill
    • Deploy all changes in your skill, using the Deploy skill option under the Skills pane -> YourAwesomeSkill.
    • A skill must be synchronized with changes made in the console in order to deploy. The Skill deploy status overview displays skill local changes and the skill remote sync status to guide you how to successfully deploy.
    • Alexa Skills Toolkit supports deployment of Alexa-hosted skills, using Git. Commit any changes you wish to deploy to your skill's master branch. You can use VS Code built-in Git support or any Git client.
    • Alexa Skills Toolkit also supports the deployment of self-hosted skills. However, only the skill package can be deployed. Depending on how you source control your code, you can download and deploy skill code from and to an existing Lambda function, S3, or a git repository.

Note: Alexa Skills Toolkit does not support deployment of the skill code for a self-hosted skill, but you can set up your own skill service endpoint in the skill.json file. The endpoint will receive POST requests when a user interacts with your Alexa Skills. See FAQs for more information.

  • Documentation

    • Quickly jump to Alexa Skills Kit docs using the links under Documentation pane.
  • Profile Manager

    • Create or delete profiles using Profile Manager under the hamburger menu (...) of Skill Management pane.
    • Quickly jump between multiple developer profiles using the ASK Profile status bar item.

and many more ...


FAQs

  • How do I setup and configure Alexa Skills Kit Toolkit extension when doing Visual Studio Code Remote Development using SSH?

    Note: Install Remote - SSH extension on Visual Studio Code, then connect to remote machine over SSH.

    • Install Alexa Skills Kit Toolkit extension on SSH after connecting to remote machine over SSH.
    • Forward port 9090 on Remote-SSH extension, please refer to Forwarding a port / creating SSH tunnel.
    • Click on the Alexa activity tab icon and sign in.
  • What if I failed to sign in Amazon account over SSH remote development?

  • Why do I get a prompt for Git credentials when an Alexa hosted skill is created or downloaded?

    • The git credential is used to access the AWS CodeCommit repository that the hosted skill resides at. This is one of the AWS resources Alexa-hosted skills service provides when creating a skill, explained here.
    • To get the hosted skills' git credentials, you can call SMAPI API manually, or use the ASK CLI command. The git credentials are short-lived, and need to be refreshed periodically, to keep being able to access the locally cloned hosted skill git.
    • The ASK Toolkit extension is able to automatically configure the credential helper for the hosted skills, and fetch the credentials whenever executing git operations. However, we observed that some specific versions(2.26.x and 2.25.x) of git cannot configure the credential helper properly, leading to the Git credentials prompt.
    • Therefore, we suggest checking your git version using git version. If it is versions 2.25.x or 2.26.x, you need to update to Git >= 2.27.x. This should prevent being asked for Git credentials again.
    • Otherwise, we suggest you create an issue report.
  • How do I set up my own skill service endpoint for a self-hosted skill?

    • You can specify your skill's service endpoint by updating the apis filed in the skill.json. The endpoint will receive POST requests when a user interacts with your Alexa Skills. The JSON snippet below shows how to set up your Lambda endpoint. The code below will set up your endpoint in the Default Region.
    "apis": {
      "custom": {
        "endpoint": {
          "uri": "arn:aws:lambda:us-west-2:123456789012:function:my-function"
        }
      }
    }
    
    • Skill endpoints can also be set up in a specific region. For each AWS region, there is an corresponding optimal ASK region code (NA, EU, FE). See the best practices in choosing Lambda regions for the AWS region codes and corresponding optimal ASK region codes. Using the corresponding optimal codes is recommended and can reduce the overall latency of your skill. The JSON snippet below shows how to specify other regions. In this example, the AWS region code is (us-east-1) and the optimal ASK region code is (NA).
    "apis": {
      "custom": {
        "endpoint": {
          "uri": "arn:aws:lambda:us-west-2:123456789012:function:my-function"
        }
        "regions": {
          "NA": {
            "endpoint": {
              "uri":"arn:aws:lambda:us-east-1:123456789012:function:my-function"
            }
          },
        }
      }
    }
    
  • Why cannot I use the toolkit for deploying ACDL files?

    • ASK Toolkit (v2.4.0 and above) provides syntax highlighting support for Alexa Conversations Descriptive Language (ACDL) files. ACDL is a beta feature and is currently under developer preview.
    • Since ACDL files need additional builds before deploying to the service, and since this development is still in beta phase, we do not yet provide support for the same. As ACDL and the development processes evolve, we will prioritize on improving the support in the toolkit.
    • You will need to install the ASK CLI tool, to manage your ACDL skills. Please follow this documentation for more details.
  • How can I test APL user events and audio output in simulator?

    Note: The APL user events and audio output are available only in MacOS and Windows.

    • ASK Toolkit simulator supports testing APL user events now. To enable this feature, follow Register device instructions to register your device in ASK toolkit.
  • How can I deregister my virtual device?

    • To delete the device in ASK toolkit, please follow Delete device instructions.
    • To deregister the device with your Amazon account, please follow Deregister a Device instructions.
  • The latest version seems to be not installable on my vscode. What is the minimum compatible vscode version for the toolkit?

    • ASK Toolkit (v2.5.0 and above) works with Visual Studio Code IDE (version 1.53.0 or higher), please make sure you have the latest version installed.
  • Why am I getting the error '[token] is not recognized as an internal or external command, operable program or batch file' when trying to start the local debugger?

    • For Windows users, this is sometimes caused by an incompatibility between the Debug Terminal and the way VSCode parses the launch.json configurations. A simple workaround for this is to add "console": "integratedTerminal" to the debug configuration in your launch.json file, like the following:
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Debug Alexa Skill (Node.js)",
            "type": "node",
            "request": "launch",
            "program": "${command:ask.debugAdapterPath}",
            "args": [
                "--accessToken",
                "${command:ask.accessToken}",
                "--skillId",
                "${command:ask.skillIdFromWorkspace}",
                "--handlerName",
                "handler",
                "--skillEntryFile",
                "${workspaceFolder}/lambda/index.js",
                "--region",
                "FE"
            ], 
            "console": "integratedTerminal" //Add this
        },
    

Got Feedback?

We would like to hear about your bugs, feature requests, questions or quick feedback.


License

The Alexa Skill Toolkit for VSCode extension is distributed under the Apache License, Version 2.0. Any marks/logos displayed as part of the extension GUI are not licensed under an open source license, but instead subject to Amazon’s Trademark Guidelines, available here.

Data & Telemetry

The Alexa Skill Toolkit for VSCode extension collects usage data and sends it to Amazon to help improve our products and services. This extension respects the Ask: Telemetry Enabled / ask.telemetryEnabled setting under the extension settings.

ask-toolkit-for-vscode's People

Contributors

aaditya-amzn avatar ajsb85 avatar ask-sdk avatar breedloj avatar camdenfoucht avatar chih-ying avatar dadeke avatar dependabot[bot] avatar doiron avatar frivas avatar harimp-amzn avatar hideokamoto avatar hongyanh avatar jz5121 avatar lucioms avatar michail avatar nikhilym avatar rahulbanerjee26 avatar renewu0707 avatar ronwang avatar sattpat avatar shenchen93 avatar shreyas-vgr avatar spkai avatar tkm22 avatar tonyhallett avatar tydonelson avatar vennsun avatar wyajunjun avatar xaaox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ask-toolkit-for-vscode's Issues

"ask-sdk-local-debug package not found" when running debugger. Packages are installed.

Describe the bug

When running local debugger, ASK Toolkit output warns
ask-sdk-local-debug package not found. Please install the ask-sdk-local-debug package from npm.

To Reproduce

cd <skill lambda>
npm install --save ask-sdk-model@^1.29.0
npm install --save-dev ask-sdk-local-debug

Follow this to install launcher:
https://developer.amazon.com/en-US/docs/alexa/ask-toolkit/vs-code-testing-simulator.html#prepare

Open skill in its own workspace. All folders appear present and correct

.ask
.git
.gitignore
.vscode
ask-resources.json
lambda
node_modules
package-lock.json
package.json
skill-package

I have tried being in the lambda folder and the top level folder. I have also tried creating a package.json at the package root (above lambda) and npm install-ing model and debug at that level too. It still thinks ask-sdk-local-debug package is not installed. Debug won't run, so it'll only ever debug using the remote lambda, which defeats the point.

Extension Logs

[info - 2021-02-07 18:12:34.960Z] Activating extension 
[debug - 2021-02-07 18:12:34.962Z] Registering commands in the extension 
[debug - 2021-02-07 18:12:34.966Z] Registering views in the extension 
[debug - 2021-02-07 18:12:34.997Z] Calling method: ask.welcome 
[debug - 2021-02-07 18:12:34.998Z] Calling method: welcomeScreen.getHtmlForView 
[verbose - 2021-02-07 18:12:34.998Z] Calling method: checkGitInstallation 
[verbose - 2021-02-07 18:12:34.998Z] Calling method: isGitInstalled 
[verbose - 2021-02-07 18:12:34.998Z] Executing git command : git --version 
[debug - 2021-02-07 18:12:35.007Z] Calling method: renderView, args:  [{"name":"welcomeScreen","js":false,"args":{"enabled":"checked"}}]
[debug - 2021-02-07 18:12:35.009Z] Calling method: interpolate, args:  [{"enabled":"checked"}]
[debug - 2021-02-07 18:12:35.011Z] Registering event handlers in the extension 
[debug - 2021-02-07 18:12:35.012Z] Registering statusbar in the extension 
[verbose - 2021-02-07 18:12:35.013Z] Updating profile icon in the extension 
[debug - 2021-02-07 18:12:35.013Z] Registering treeviews in the extension 
[verbose - 2021-02-07 18:12:35.019Z] Calling method: findSkillFolders 
[verbose - 2021-02-07 18:12:35.418Z] Calling method: getOrInstantiateGitApi 
[verbose - 2021-02-07 18:12:35.420Z] Calling method: findSkillFolders 
[debug - 2021-02-07 18:12:35.421Z] Checking if extension version is latest 
[debug - 2021-02-07 18:12:39.025Z] Calling method: ask.debugAdapterPath, args: [{"name":"Debug Alexa Skill (Node.js)","type":"node","request":"launch","program":"${command:ask.debugAdapterPath}","args":["--accessToken","${command:ask.accessToken}","--skillId","${command:ask.skillIdFromWorkspace}","--handlerName","handler","--skillEntryFile","/home/ubuntu/scripts/alexa/MyTalkingNewspaperV7/lambda/index.js","--region","EU"],"cwd":"/home/ubuntu/scripts/alexa/MyTalkingNewspaperV7/lambda","__configurationTarget":5,"__debuggablePatterns":["*.js","*.es6","*.jsx","*.mjs"],"__workspaceFolder":"/home/ubuntu/scripts/alexa/MyTalkingNewspaperV7"}]
[error - 2021-02-07 18:12:39.330Z] ask-sdk-local-debug package not found. Please install the ask-sdk-local-debug package from npm. 

[info - 2021-02-07 18:12:39.856Z] skill package schema has been updated. 
[verbose - 2021-02-07 18:12:39.858Z] Calling method: getSkillMetadataSrc 
[verbose - 2021-02-07 18:12:39.858Z] Calling method: getAskResourceConfig 
[info - 2021-02-07 18:12:39.860Z] SkillPackageWatcher is started 
[debug - 2021-02-07 18:12:44.202Z] Failed to upload telemetry data. 
[debug - 2021-02-07 18:12:48.473Z] Failed to upload telemetry data. 

Expected behavior

Your Environment

  • ASK SDK for Node.js used: 2.22.4
  • Operating System and version: Ubuntu 20.04

Node.js and NPM Info

  • Node.js version used for development: 14.15.4
  • NPM version used for development: 7.5.2

launch.json

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Debug Alexa Skill (Node.js)",
            "type": "node",
            "request": "launch",
            "program": "${command:ask.debugAdapterPath}",
            "args": [
                "--accessToken",
                "${command:ask.accessToken}",
                "--skillId",
                "${command:ask.skillIdFromWorkspace}",
                "--handlerName",
                "handler",
                "--skillEntryFile",
                "${workspaceFolder}/lambda/index.js",
                "--region",
                "EU"
            ],
            "cwd": "${workspaceFolder}/lambda"
        },
        {
            "type": "pwa-node",
            "request": "launch",
            "name": "Launch Program",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "program": "${file}"
        }
    ]
}

image

ask init -l option not supported

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,...)

Skill Build Fails whenever Skill.json include an RENDER_TEMPLATE Interface Type

When you add an Interfaces type of RENDER_TEMPLATE to your skill.json, commit the changes to the file, then deploy skill, the build fails. I've tried setting and saving the display option in interfaces for my skill in the Alexa Developer Console, using the Skill manifest to download the revised manifest, but I get the same result.

To Reproduce

  • open VS Code with the Ask toolkit for VS Code
  • Create a skill
  • Edit the skill.json and add RENDER_TEMPLATE as interfaces type
  • Commit your changes and deploy the skill
  • You will see a Skill Build failed in the notification panel

Warning message "The toolkit requires ASK CLI to execute the commands" after installing the plugin

Description:
After installing the VS Code extension, VSCode shows a warning that The toolkit requires ASK CLI to execute the commands, but the ask-cli is installed and the $PATH includes where the CLI resides. The check of the existence of "ask" command line fails and thus blocks the usage of plugin.

Steps to reproduce the issue:

  1. Work on a skill project in VSCode and quit the application directly (cmd+q in MAC OS).
  2. Re-open the plugin application directly, VSCode will open skill project where it's last time quited.
  3. Warning message will display.
  4. Re-open the project, plugin will work as normal.

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Mac
VS Code version:
v1.33.1

Alexa Debugging In VS Code: Process Exited With Code 255 (node js)

hi there, this is re issue earlier raised but was closed as there was no inactivity: #26

I'm getting the same error but for a similar scenario - I'm trying to debug Alexa on VS Code.
I tried changing the default shell to powershell but the issue still persisted.

Can I pls get some help on this one:

Here is my launch.json file:
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Alexa Skill (Node.js)",
"type": "node",
"request": "launch",
"program": "${command:ask.debugAdapterPath}",
"args": [
"--accessToken",
"${command:ask.accessToken}",
"--skillId",
"${command:ask.skillIdFromWorkspace}",
"--handlerName",
"handler",
"--skillEntryFile",
"${workspaceFolder}/lambda/index.js",
"--region",
"NA"
]
},

{
    "type": "node",
    "request": "launch",
    "name": "Launch Program",
    "skipFiles": [
        "<node_internals>/**"
    ],
    "program": "${file}"
}

]
}

this is the error I'm getting.

"C:\Program Files\nodejs\node.exe" .\lambda\node_modules\ask-sdk-local-debug\dist\LocalDebuggerInvoker.js --accessToken Atza|IwEBIFrSQQ069MCMCUHSLNoClWR6tO9M2m8iix3GpNwVlAd2hMxu19-QDPo8QGiKIrLyKfY_0WATc-ytvAtaskFPTaZT1lX3c_Pcnxv-0IHtg8WlKteXZZCZgK7n8s_KeHVrc69SSqb9AdcuZVsRexOhghh3seGmDJ4sxkTTCheytojCZdKDDrLMPYrPjho9ISHuk1NJYXM_0XzyFnGtREoW0RdnEQ_euSGpWLO7rM3BOkvdKjtZdRKkKK0mTSIxsBvhvmH5pRx4sfeRuo-dS5QsHA3V2zr_STuFtNwLaWZMYjePAbknGIqqDHeAfn3K0zqqan3tht0LTYtXalQF01KW3kYpYOMYUFhzd3zU9VRk2MlNJkNZoocbZ9lhGefdmcPoNyQbVCvlJ1zIHbb5UKDBdEZRoWwKkZLEfq2Q9-kRURD5cbS9ksnTJo47_w6SCZb_yL-jYLudqkluGOGdvbH_gAIdcj6bPwjwdC4_YfER76XnKwOpoxb3MqKsHds8gofdDf563IruW6C84kw5PZw6-eFjXS0JMIGpTTM73L26jLuB43YX2_uMcXLyJYauqNSpzGraOgMJ74pfJQjqxKkbf-Iwd1LHvBb55ZZkofa7R66DaaR39kwwyV1V6ePanmGE524 --skillId amzn1.ask.skill.d47fd1a2-3e17-4df2-ab03-ab87e18229c2 --handlerName handler --skillEntryFile "C:\Users\aparn\OneDrive - Aiccelerate Consultancy Pty Ltd as Trustee\Business\Alexa\numbers app\numbersapp/lambda/index.js" --region NA

'IwEBIFrSQQ069MCMCUHSLNoClWR6tO9M2m8iix3GpNwVlAd2hMxu19-QDPo8QGiKIrLyKfY_0WATc-ytvAtaskFPTaZT1lX3c_Pcnxv-0IHtg8WlKteXZZCZgK7n8s_KeHVrc69SSqb9AdcuZVsRexOhghh3seGmDJ4sxkTTCheytojCZdKDDrLMPYrPjho9ISHuk1NJYXM_0XzyFnGtREoW0RdnEQ_euSGpWLO7rM3BOkvdKjtZdRKkKK0mTSIxsBvhvmH5pRx4sfeRuo-dS5QsHA3V2zr_STuFtNwLaWZMYjePAbknGIqqDHeAfn3K0zqqan3tht0LTYtXalQF01KW3kYpYOMYUFhzd3zU9VRk2MlNJkNZoocbZ9lhGefdmcPoNyQbVCvlJ1zIHbb5UKDBdEZRoWwKkZLEfq2Q9-kRURD5cbS9ksnTJo47_w6SCZb_yL-jYLudqkluGOGdvbH_gAIdcj6bPwjwdC4_YfER76XnKwOpoxb3MqKsHds8gofdDf563IruW6C84kw5PZw6-eFjXS0JMIGpTTM73L26jLuB43YX2_uMcXLyJYauqNSpzGraOgMJ74pfJQjqxKkbf-Iwd1LHvBb55ZZkofa7R66DaaR39kwwyV1V6ePanmGE524' is not recognized as an internal or external command,
operable program or batch file.

Process exited with code 255

ASK Toolkit for VSCode - excessive "Failed to upload telemetry data" in logs

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X ] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Current Behavior

"Failed to upload telemetry data" appears in logs excessively. I don't have any outgoing ports blocked.

NOTE This is not an annoyance for me and I only see it if look in that window. However, if you are counting on this data to understand how many people are using it, then it will possibly be under-reporting.

Steps to Reproduce (for bugs)

  • Open ASK Toolkit for VSCode
  • Go to ""Ask Toolkit" in Output window of VS Code.

Your Environment

  • ASK SDK for Node.js used: 2.22.4
  • Operating System and version: Ubuntu 20.04

Node.js and NPM Info

  • Node.js version used for development: 14.15.4
  • NPM version used for development: 7.5.2

Extension not loading

Describe the bug

This worked yesterday, but today, mysteriously, the Ask Toolkit extension isn't working at all in VS Code. The icon shows, and the skills management and documentation panels show but with no contents. I've tried uninstalling and reinstalling the extension, with and without restarting VS Code.

To Reproduce

  1. Load VS Code
  2. Click the ASK icon

Observed: the two panels are empty

VS Code's debug logs show 'cannot find module'. See screenshot

Screenshots

Screenshot 2020-09-03 at 14 27 33

Desktop (please complete the following information):

The 'about Alexa skills toolkit' is present in the command palette, but has no output. The debug shows "Command 'Alexa: About Alexa Skill Toolkit' resulted in an error (command 'ask.aboutToolkit' not found)"

  • OS: Debian 10
  • Visual Studio Code Version: 1.48.2
  • Alexa Skill Toolkit Version: 2.0.1

Unable to download files on local machine

Unable to Download and edit skill on VS Code

When I open the ASK Toolkit and Create Alexa-hosted skill I can see the change in the developer console, but I am unable to get the files downloaded locally on the machine.

The error message I get is

Skill creation failed. Reason: Git folder setup failed for /Users/a/Desktop/AlexaSkills/hello123. Reason: Failed to execute git {
  "exitCode": 1,
  "gitCommand": "checkout",
  "stdout": "",
  "stderr": "error: pathspec 'prod' did not match any file(s) known to git\n"
}

I believe the error is because I am currently not in sync with the Amazon developer console.

Alexa Skill Toolkit 2.0.1 not loading in VSCode

Describe the bug

Alexa Skill Toolkit extension is not working in VSCode

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Alexa Skill Toolkit extension'

Extension Logs

Activating extension 'ask-toolkit.alexa-skills-kit-toolkit' failed: Cannot find module 'c:\Users\username.vscode\extensions\ask-toolkit.alexa-skills-kit-toolkit-2.0.1\out\src\extension'
Require stack:

  • \AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js
  • \AppData\Local\Programs\Microsoft VS Code\resources\app\out\bootstrap-amd.js
  • \AppData\Local\Programs\Microsoft VS Code\resources\app\out\bootstrap-fork.js.

Expected behavior

Skill Management page to be displayed

Screenshots

image

Desktop (please complete the following information):

  • OS:
  • Visual Studio Code Version: 1.48.2
  • Alexa Skill Toolkit Version: 2.0.1

Additional context

Alexa Skill Toolkit was working before and now after multiple re-installations still not loading into VSCode.
I also reinstall the ASK-SDK. Still no change.
.vscode\extensions\ask-toolkit.alexa-skills-kit-toolkit-2.0.1\out folder is indeed missing.

Local debugging suddenly stopped working

Describe the bug

Local debugging suddenly stopped working: Requests from the Alexa simulator or my Echo dot are not proxied anymore.

To Reproduce
I am working on a Python / lambda based skill.
In the morning, I set up local debugging following these steps:
https://developer.amazon.com/en-US/docs/alexa/ask-toolkit/vs-code-ask-skills.html#test

It worked perfectly: All my requests I made through the Alexa simulator were routed to my local machine and I could see debugging output and exceptions on the VSCode debug console.

Now, a few hours later even after stop and restart of the debugger, restart of VSCode and restart of the whole system, it doesn't work anymore. The response I get always come directly from Lambda. The ASK local debug thing is running, the bar at the bottom is orange, the skill is loaded, but the debug output window stays empty and none of the intents is ever called. Any idea how I can debug what is going wrong here?

Extension Logs
[debug - 2020-08-12 13:00:19.800Z] Calling method: ask.debugAdapterPath, args: [{"name":"Debug Alexa Skill (Python)","type":"python","request":"launch","program":"${command:ask.debugAdapterPath}","pythonPath":"/home/joerg/iubh_alexa/IUBH/venv/bin/python","args":["--accessToken","${command:ask.accessToken}","--skillId","${command:ask.skillIdFromWorkspace}","--skillHandler","lambda_handler","--skillFilePath","/home/joerg/iubh_alexa/IUBH/lambda/lambda_function.py"],"console":"internalConsole","cwd":"/home/joerg/iubh_alexa/IUBH","envFile":"/home/joerg/iubh_alexa/IUBH/.env","env":{"ELECTRON_RUN_AS_NODE":"1","GTK_CSD":"1","USER":"joerg","LANGUAGE":"de_DE","LC_TIME":"de_DE.UTF-8","XDG_SEAT":"seat0","XDG_SESSION_TYPE":"x11","SSH_AGENT_PID":"4175","SHLVL":"0","HOME":"/home/joerg","DESKTOP_SESSION":"pantheon","QT_STYLE_OVERRIDE":"adwaita","GTK_MODULES":"gail:atk-bridge","XDG_SEAT_PATH":"/org/freedesktop/DisplayManager/Seat0","LC_MONETARY":"de_DE.UTF-8","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1000/bus","MANDATORY_PATH":"/usr/share/gconf/pantheon.mandatory.path","QT_QPA_PLATFORMTHEME":"gtk3","LOGNAME":"joerg","DEFAULTS_PATH":"/usr/share/gconf/pantheon.default.path","XDG_SESSION_ID":"c2","GDM_LANG":"de_DE","GTK3_MODULES":"pantheon-filechooser-module","PAPERSIZE":"a4","S_COLORS":"auto","LC_ADDRESS":"de_DE.UTF-8","XDG_RUNTIME_DIR":"/run/user/1000","XDG_SESSION_PATH":"/org/freedesktop/DisplayManager/Session0","DISPLAY":":0","LANG":"de_DE.UTF-8","XDG_CURRENT_DESKTOP":"Unity","LC_TELEPHONE":"de_DE.UTF-8","XDG_SESSION_DESKTOP":"pantheon","XAUTHORITY":"/home/joerg/.Xauthority","XDG_GREETER_DATA_DIR":"/var/lib/lightdm-data/joerg","SSH_AUTH_SOCK":"/run/user/1000/keyring/ssh","LC_NAME":"de_DE.UTF-8","SHELL":"/bin/bash","QT_ACCESSIBILITY":"1","GDMSESSION":"pantheon","LC_MEASUREMENT":"de_DE.UTF-8","GPG_AGENT_INFO":"/run/user/1000/gnupg/S.gpg-agent:0:1","LC_IDENTIFICATION":"de_DE.UTF-8","XDG_VTNR":"7","JAVA_HOME":"/usr/lib/jvm/java-8-openjdk-amd64/","PWD":"/home/joerg","ANDROID_HOME":"/home/joerg/Android/Sdk","XDG_DATA_DIRS":"/usr/share/gnome:/usr/share/pantheon:/home/joerg/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop","XDG_CONFIG_DIRS":"/etc/xdg/xdg-pantheon:/etc/xdg","LC_NUMERIC":"de_DE.UTF-8","LC_PAPER":"de_DE.UTF-8","QT_IM_MODULE":"ibus","XMODIFIERS":"@im=ibus","GNOME_DESKTOP_SESSION_ID":"this-is-deprecated","XDG_MENU_PREFIX":"gnome-","SESSION_MANAGER":"local/rog:@/tmp/.ICE-unix/4058,unix/rog:/tmp/.ICE-unix/4058","GIO_LAUNCHED_DESKTOP_FILE":"/usr/share/applications/code.desktop","GIO_LAUNCHED_DESKTOP_FILE_PID":"5038","CHROME_DESKTOP":"code-url-handler.desktop","ORIGINAL_XDG_CURRENT_DESKTOP":"Pantheon","VSCODE_NLS_CONFIG":"{"locale":"de","availableLanguages":{},"_languagePackSupport":true}","VSCODE_NODE_CACHED_DATA_DIR":"/home/joerg/.config/Code/CachedData/91899dcef7b8110878ea59626991a18c8a6a1b3e","VSCODE_LOGS":"/home/joerg/.config/Code/logs/20200812T143336","VSCODE_IPC_HOOK":"/run/user/1000/vscode-f8c03cfe-1.47.3-main.sock","VSCODE_PID":"5038","AMD_ENTRYPOINT":"vs/workbench/services/extensions/node/extensionHostProcess","PIPE_LOGGING":"true","VERBOSE_LOGGING":"true","VSCODE_IPC_HOOK_EXTHOST":"/tmvscode-ipc-4104b89f-80fa-45d5-b78c-0b1a07620a38.sock","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_LOG_STACK":"false","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"true","PATH":"/home/joerg/bin:/home/joerg/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/joerg/Android/Sdk/emulator:/home/joerg/Android/Sdk/tools:/home/joerg/Android/Sdk/tools/bin:/home/joerg/Android/Sdk/platform-tools:/home/joerg/flutter/bin","PYTHONIOENCODING":"UTF-8","PYTHONUNUFFERED":"1"},"stopOnEntry":false,"showReturnValue":true,"debugOptions":["ShowReturnValue","RedirectOutput"],"justMyCode":true,"workspaceFolder":"/home/joerg/iubh_alexa/IUBH","redirectOutput":true}]
[debug - 2020-08-12 13:00:21.703Z] Successfully uploaded telemetry data.
[debug - 2020-08-12 13:00:23.952Z] Successfully uploaded telemetry data.
[debug - 2020-08-12 13:00:25.590Z] Successfully uploaded telemetry data.

Expected behavior

Requests being proxied to my local machine.

Desktop (please complete the following information):

OS: Linux x64 4.15.0-101-generic
Visual Studio Code Version: 1.47.3
Alexa Skills Toolkit Version: 2.0.0
Git Version: git version 2.17.1

Video doesn't pause in VS Code test simulator

Describe the bug

I built an APL document that has the Video component. When I issue a 'pause' directive, the video playback doesn't pause in the VS Code simulator. However, the same code works fine in the developer console simulator and the video pauses.

To Reproduce
APL Document would contain something like this -

{
                "type": "Video",
                "id": "anIdentifier",
                "width": "100%",
                "height": "100%",
                "autoplay": true,
                "source": "any valid mp4 URL"
}

The 'pause' directive looks like this -

{
  "directives": [
    {
      "type": "Alexa.Presentation.APL.ExecuteCommands",
      "token": "VideoPlayerViewToken",
      "commands": [
        {
          "type": "Sequential",
          "commands": [
            {
              "type": "ControlMedia",
              "componentId": "VideoPlayerId",
              "command": "pause"
            }
          ]
        }
      ]
    }
  ]
}

Start the playback of the video and then issue the pause command in VS Code simulator. The video will not pause.
Do the same in developer console simulator. Video will pause.

Expected behavior

Video playback controls should work in VS Code test simulator.

Not everything works

Desktop (please complete the following information):

  • OS: ChromeOS with Crostini / Debian Burst
  • VS Code version: 1.50.1, Nodejs: 10.21.1, Git: 2.29.2
  • Alexa Skill Toolkit extension version: v2.1.0

Question
What works (hosted-skills):

  • installation of the Alexa Skills Kit (ASK) Toolkit extension from VSC
  • deployment of files modified in VSC and visible in Console Developer

What does not work:

  • download in VSC of APL documents from Console Developer,
  • undefined response when opening (open change me) in the simulator under VSC,
  • where are the files commited via git (CodeCommit?)

Does the architecture of the extension with Alexa services match the schema provided (similar to the bespoken extension)?
Screenshot 2020-11-16 at 22 08 56

view of VSC
Screenshot 2020-11-16 at 22 29 07

Where can I find detailed information on the extension and its integration with VSC?

JSON Schema validation/code-assist for interaction model

In the earlier version of the add-on, there was code assist for the interaction model (and I think the skill manifest). This was very helpful, as it helped remind me of what was needed and available when working on my skill's interaction model. I believe it was based on the JSON Schema for those file types. The new version doesn't seem to include this.

I'd like to be able to use code-assist on my interaction models again.

I have attempted to manually add schema validation/code-assist, but have been largely unsuccessful. It would be much easier if it were just part of the add-on as it was before.

refresh_token' of undefined and then Missing Options

Open VS Code
Click ASK button
Click Manage Account Profiles
Add name to Create New Profile
Click Create
Browser opens in developer.amazon.com, showing App Request.
Click Allow
Browser says Sign in successful. You may now close this page and return to VSCode.
Return to VSCode

Profile Manager tab says All done!
The profile has been linked to your Amazon Developer account and made active in the toolkit.
It can be changed at any time through the status bar selector, and additional profiles may be created through the Profile Manager.

Popup notification, bottom right hand corner says
Alexa-Hosted skills retrieval failed. Reason: Cannot read property 'refresh_token' of undefined

Status Bar shows added account, click, and select. The accounts are listed, and after a few attempts to connect the account some have a Vendor ID and others say undefined.

Select the required account with valid Vendor ID
Select Import Skill
It loads the skill

At which point none of the options are available to manage the skill, except Documentation.
Screenshot 2020-07-25 at 21 15 34

According to https://raw.githubusercontent.com/alexa/ask-toolkit-for-vscode/master/media/docs/deploy_skill.gif
There should be a whole bunch of options.
Screenshot 2020-07-25 at 21 22 00

sign in to Amazon Developer Account using ASK Toolkit for VSCode not working

Describe the bug

When I put my user and pass to sign in to my ADC using the vscode extension to have access to the toolkit features, I got "The connection with 127.0.0.1 was refused" status from my browser

To Reproduce

Steps to reproduce the behavior:

  1. Go to ASK tool extension in vscode
  2. Click on sign in
  3. I'm redirected to amazon login page
  4. put my user account and password
  5. got the status from my browser "connection refused"

Screenshots

In devTools on chrome, the request to localhost:9090
image

browser status
image

Desktop:

  • OS: Windows 10 Home Insider Preview

  • Visual Studio Code Version: I'm using VSCode under WSL2
    Version: 1.54.3 (user setup)
    Commit: 2b9aebd5354a3629c3aba0a5f5df49f43d6689f8
    Date: 2021-03-15T10:55:45.459Z
    Electron: 11.3.0
    Chrome: 87.0.4280.141
    Node.js: 12.18.3
    V8: 8.7.220.31-electron.0
    OS: Windows_NT x64 10.0.21332

  • Alexa Skill Toolkit Version: 2.4.0

Additional context

I've checked in my router if there's any port block, my proxy and if any proccess was using the port in question. All clean.

I really don't know what's going on, if something is missing.

Local debugging fails with 401 error

Describe the bug

I tried setting up local debugging following the instructions here
However, when I try to start the debugging session, I get a 401 error within VS Code.

Important If I fetch the accessToken myself using the command ask util generate-lwa-tokens --scopes alexa::ask:skills:debug and then start the local debugging session at the terminal using that access token, local debugging works.
The inbuilt mechanism in VSCode is somehow fetching an invalid access token and failing with a 401.

To Reproduce

Steps to reproduce the behavior:

  1. Follow the instructions here to setup local debugging.
  2. Open the Run menu and then choose Start Debugging.
  3. VS Code errors out with 401 code.

Extension Logs
See attached image.

  • OS: macOS Big Sur 11.0
  • Visual Studio Code Version: 1.51.1
  • Alexa Skill Toolkit Version: v2.2.0

Screen Shot 2020-11-20 at 12 52 52 PM

Add ability to just deploy code.

Is your feature request related to a problem? Please describe.

Today, the ASK extension lets us deploy and build the code. Building code is a time consuming process and slows down the development turn around time when trying to test changes on physical devices.

Moreover, Alexa Conversations skills literally take 30 to 60 minutes to build.

So, there should be a way to just deploy the code to lambda.

Describe alternatives you've considered

Not using Alexa hosted skills and maintaining my own lambda will enable the desired development flow.

Deploying Skill hangs.

Describe the bug

Following steps in VOICE Summit: Alexa Visual Studio Code Plugin. After pressing the Deploy Button, "Deploying Skill: Skill building in Progress" notification does not go away. I check the Developer's console and the change to the Invocation words are still "change me"

To Reproduce
FOLLOW STEPS IN VOICE VIDEO (Link above)

Extension Logs

Expected behavior
Skill completes. Testing works. This is very simple hello world.

Desktop (please complete the following information):

OS: Windows_NT x64 10.0.18363
Visual Studio Code Version: 1.52.1
Alexa Skills Toolkit Version: 2.2.0
Git Version: git version 2.29.2.windows.2

ASK Toolkit for VS Code - Only recently updated skills are appearing in Download list

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X ] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Expected Behavior

"Download or edit skill" should provide a full list of all skills

Current Behavior

Only appears to download skills edited/updated within last couple of months

Steps to Reproduce (for bugs)

  • Open ASK Toolkit for VSCode
  • Go to "skills management > Download and Edit Skill"

It appears that only skills updated in developer console recently are listed.
I went to the developer console and simply did a build (nothing else) on all the skills. After that, the remaining skills appears in the list in vscode.

Your Environment

  • ASK SDK for Node.js used: 2.22.4
  • Operating System and version: Ubuntu 20.04

Node.js and NPM Info

  • Node.js version used for development: 14.15.4
  • NPM version used for development: 7.5.2

How do I login without a browser?

Desktop (please complete the following information):

  • OS running local VScode Windows NT x64 10.0.1.19041
  • OS running Remote Explorer for VSCode: (hence, extension, git etc): Ubuntu 20.04 (Linux x64 5.4.0-1018-aws)
  • VS Code version: 1.47.2
  • Alexa Skill Toolkit extension version: 2.0.0

Question

I see that it has been made difficult to use the debugging part of the the Toolkit for the majority (eg non-US users), and I need to jump through a number of steps https://github.com/alexa/ask-toolkit-for-vscode/wiki/Setting-Up-Local-Debugging-In-Other-Regions

However, even when that it done, how do I activate and enable the login? With ask-cli, there is a --no-browser option.
But I cannot find the equiveland for the toolkit, or any docs for this - it is possible that I will discover a config file somewhere after posting this question, however, I think it should be documented.

Singing out of ASK on VSC

Desktop (please complete the following information):

  • OS: Windows_NT x64 10.0.19041
  • VS Code version: 1.51.1
  • Alexa Skill Toolkit extension version: 2.2.0

Question

How do I sign out of an Alexa dev account on the ASK in VS?

Any known problems with vscode Intellisense and this extension

Desktop (please complete the following information):

  • OS: OS X 10.14.6
  • VS Code version: 1.52.1
  • Alexa Skill Toolkit extension version: 2.2.0

Question
Hi,

Have you received or experienced problems with Intellisense coupled with this extension.

When creating a fresh example skill with no modifications there seems to be some problems with Intellisense. Does not correct typos or find dependencies to suggest or correct. Minor thing but quite annoying? Have been trying to find out why this happens, together with friend, but no luck and we are stunned.

Screenshots showing how IntelliJIDEA has no problems finding dependencies whilst vscode interprets it in no way.

All other javascript/node projects show no issue, therefor thinking it might have something todo with this extension or how it creates the project?

Screenshot 2021-01-04 at 21 56 36

Screenshot 2021-01-04 at 21 55 44

Unbound Breakpoint when using local debugging

Describe the bug
Breakpoints aren't getting bound after starting the debug session. I set up a new Skill, added the local debugging packages and added a launch.json. The debugging session starts and logs are being printed out, but breakpoints aren't hit.

To Reproduce

  1. Create a new Skill using ASK CLI
  2. Add local debugging packages (ask-sdk-local-debug and ask-sdk-model)
  3. Use extension to generate a launch.json
  4. Set Breakpoint and start debugging
  5. Breakpoint doesn't get bound (is grayed out and labeled as "Unbound Breakpoint")

Extension Logs

[info - 2021-03-02 16:05:16.545Z] Activating extension 
[info - 2021-03-02 16:05:17.234Z] The Alexa Skills Kit extension has been updated. 
[info - 2021-03-02 16:05:20.101Z] skill package schema has been updated. 
[info - 2021-03-02 16:05:20.103Z] SkillPackageWatcher is started 
[info - 2021-03-02 16:12:02.334Z] log level changed to verbose 
[debug - 2021-03-02 16:12:23.732Z] Calling method: ask.debugAdapterPath, args: [{"name":"Debug Alexa Skill (Node.js)","type":"node","request":"launch","program":"${command:ask.debugAdapterPath}","args":["--accessToken","${command:ask.accessToken}","--skillId","${command:ask.skillIdFromWorkspace}","--handlerName","handler","--skillEntryFile","/path/to/my/project/folder/lambda/index.js","--region","EU"],"cwd":"/path/to/my/project/folder/lambda","__configurationTarget":5,"noDebug":true,"__debuggablePatterns":["*.js","*.es6","*.jsx","*.mjs"],"__workspaceFolder":"/path/to/my/project/folder"}]
[debug - 2021-03-02 16:12:25.281Z] Successfully uploaded telemetry data. 
[debug - 2021-03-02 16:12:27.337Z] Successfully uploaded telemetry data. 
[verbose - 2021-03-02 16:12:27.344Z] Calling method: checkProfileSkillAccess 
[verbose - 2021-03-02 16:12:27.344Z] Calling method: getSkillProfile 
[verbose - 2021-03-02 16:12:27.344Z] Calling method: getSkillFolderInWs 
[verbose - 2021-03-02 16:12:27.344Z] Calling method: doesWorkSpaceExist 
[verbose - 2021-03-02 16:12:27.344Z] Calling method: getAskResourceConfig 
[verbose - 2021-03-02 16:12:27.347Z] Calling method: getSkillDetailsFromWorkspace 
[verbose - 2021-03-02 16:12:27.347Z] Calling method: getSkillFolderInWs 
[verbose - 2021-03-02 16:12:27.347Z] Calling method: doesWorkSpaceExist 
[verbose - 2021-03-02 16:12:27.347Z] Calling method: getAskResourceConfig 
[verbose - 2021-03-02 16:12:27.347Z] Calling method: getAskState 
[verbose - 2021-03-02 16:12:27.348Z] Calling method: getSkillManifestFromWorkspace 
[verbose - 2021-03-02 16:12:27.348Z] Calling method: getSkillMetadataSrc 
[verbose - 2021-03-02 16:12:27.348Z] Calling method: getAskResourceConfig 
[verbose - 2021-03-02 16:12:27.349Z] Calling method: getSkillNameFromLocales, args: [{"en-US":{"summary":"Sample Short Description","examplePhrases":["Alexa open hello world","hello","help"],"name":"debug-test-julian","description":"Sample Full Description"}},null]
[debug - 2021-03-02 16:12:28.824Z] Successfully uploaded telemetry data. 

Expected behavior

Breakpoint should be bound and getting hit when code is executed.

Screenshots
image

Desktop (please complete the following information):

  • OS: Darwin x64 20.2.0 (M1 Macbook Pro)
  • Visual Studio Code Version: 1.53.2
  • Alexa Skill Toolkit Version: 2.4.0 (also tried with 2.3.0, same problem)

Additional context
N/A

Possibly invalid skill.json warning

Description:

skill.json manifest.apis.custom.endpoint validation might be incorrect. When pointing a skill at a lambda function, the entry is of the form:

"uri": "lambda-function-name",
"sourceDir": "lambda/py"

The linter shows this error String does not match the pattern of "^(arn|https://)".:

  "owner": "_generated_diagnostic_collection_name_#0",
  "severity": 4,
  "message": "String is not a URI: URI with a scheme is expected."

The arn does not seem to be required. The arn address is generated, stored, and managed in the .ask/config after a deployment.

The linter also shows the property sourceDir is not allowed. I am confused because all of the ask-skill samples use that form.

	"owner": "_generated_diagnostic_collection_name_#0",
	"severity": 4,
	"message": "Property sourceDir is not allowed.",

I have noticed that the skill manifest doesn't make mention of these values. Are they ask-cli specific?

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

osx 10.14.3

VS Code version:

Version 1.31.1

Using Github URLs are dependencies causes deployment failures with misleading error messages.

Describe the bug

Github URLs is an officially supported way of declaring dependencies. ASK Toolkit fails to deploy with Github URL dependencies though.

To Reproduce

  • Open package.json.
  • Add a dependency like this: "ask-sdk-test": "s-maheshbabu/ask-sdk-test",
  • Commit the change.
  • Try to deploy.
  • The deployment will fail.

Expected behavior

There are two issues to be fixed.

  • The error messages are utterly useless and misleading. A better error message would 'Sorry, something went wrong'.
  • Direct Github URL dependencies should work.

Screen Shots

On VSCode, the error looks like this -
VSCode Error

On Dev Console, the error looks like this -
DevConsoleError

Improve logs / provide cloud watch logs for hosted skills in local simulator

Is your feature request related to a problem? Please describe.

This feature request is related to the issue that lead to #52 . When there is an issue on the skill invocation / skill deployment side of hosted skills, the local simulator should provide that information to the end users, instead of returning undefined and retrying.

Describe the solution you'd like

Skill deployment statuses should be clear. Skill simulation logs should appear on the toolkit or links to cloudwatch logs should be provided in the toolkit.

Describe alternatives you've considered

Additional context

Custom build directory when using Deploy skill

When using the Alexa Skills Toolkit it seems the following

"code": {
      "default": {
        "src": "./lambda/build"
      }
    }

isn't taken into account and only whats on the default location lambda/index.js is used when initiating deploy.
Is this by design or can we specify a custom directory?

Use case here is usage of TypeScript where the build directory contains the output.

Local Debugger exit with code 255

Describe the bug
The debugger will close on launch and will throw error code 255

To Reproduce

Steps to reproduce the behavior:

  1. Add Configuration
  2. Select NodeJS
  3. Add Configuration
  4. Select Debug Alexa Skill (Node.js)
  5. Run Debug
  6. Exits with code 255

Extension Logs

I deleted a good chunk of my accessToken.

"C:\Program Files\nodejs\node.exe" "c:....\ambdacustom\node_modules\ask-sdk-local-debug\dist\LocalDebuggerInvoker.js" --accessToken Atza|IwEB ... ... ... Pr_hxBac --skillId amzn1.ask.skill.92c2b748-5f4c-44e4-8402-680f055f1541 --handlerName handler --skillEntryFile "C:.../lambda/index.js"
'IwEB ... ... ... Pr_hxBac' is not recognized as an internal or external command,
operable program or batch file.
Process exited with code 255

Expected behavior
I shouldn't exit right away

Desktop (please complete the following information):
Using Windows VSCode with Alexa Skills Toolkit

  • OS: Windows
  • Visual Studio Code Version: 1.47.3
  • Alexa Skill Toolkit Version: 2.0.0

Failed to read skill package schema due to SyntaxError: Unexpected token < in JSON at position 0, the skill package watcher won't start.

Describe the bug

Skill just updated to 2.3.0 and now I'm getting warnings in the alert window of VSCode:

Failed to read skill package schema due to SyntaxError: Unexpected token < in JSON at position 0, the skill package watcher won't start.

Extension Logs

[info - 2021-01-21 15:30:04.381Z] Activating extension 
[debug - 2021-01-21 15:30:04.382Z] Registering commands in the extension 
[debug - 2021-01-21 15:30:04.384Z] Registering views in the extension 
[debug - 2021-01-21 15:30:04.397Z] Calling method: ask.welcome 
[debug - 2021-01-21 15:30:04.398Z] Calling method: welcomeScreen.getHtmlForView 
[verbose - 2021-01-21 15:30:04.398Z] Calling method: checkGitInstallation 
[verbose - 2021-01-21 15:30:04.398Z] Calling method: isGitInstalled 
[verbose - 2021-01-21 15:30:04.398Z] Executing git command : git --version 
[debug - 2021-01-21 15:30:04.406Z] Calling method: renderView, args:  [{"name":"welcomeScreen","js":false,"args":{"enabled":"checked"}}]
[debug - 2021-01-21 15:30:04.406Z] Calling method: interpolate, args:  [{"enabled":"checked"}]
[debug - 2021-01-21 15:30:04.408Z] Registering event handlers in the extension 
[debug - 2021-01-21 15:30:04.409Z] Registering statusbar in the extension 
[verbose - 2021-01-21 15:30:04.409Z] Updating profile icon in the extension 
[debug - 2021-01-21 15:30:04.409Z] Registering treeviews in the extension 
[verbose - 2021-01-21 15:30:04.414Z] Calling method: findSkillFolders 
[debug - 2021-01-21 15:30:04.610Z] Calling method: welcomeScreen.onViewChangeListener 
[verbose - 2021-01-21 15:30:05.113Z] Calling method: getOrInstantiateGitApi 
[verbose - 2021-01-21 15:30:05.116Z] Calling method: findSkillFolders 
[debug - 2021-01-21 15:30:05.117Z] Checking if extension version is latest 
[debug - 2021-01-21 15:30:06.565Z] Successfully uploaded telemetry data. 
[info - 2021-01-21 15:30:09.947Z] skill package schema has been updated. 
[debug - 2021-01-21 15:30:09.948Z] Failed to read skill package schema due to SyntaxError: Unexpected token < in JSON at position 0, the skill package watcher won't start. 
[verbose - 2021-01-21 15:30:09.948Z] Calling method: getSkillMetadataSrc 
[verbose - 2021-01-21 15:30:09.949Z] Calling method: getAskResourceConfig 
[info - 2021-01-21 15:30:09.949Z] SkillPackageWatcher is started 
[info - 2021-01-21 15:30:04.381Z] Activating extension 
[debug - 2021-01-21 15:30:04.382Z] Registering commands in the extension 
[debug - 2021-01-21 15:30:04.384Z] Registering views in the extension 
[debug - 2021-01-21 15:30:04.397Z] Calling method: ask.welcome 
[debug - 2021-01-21 15:30:04.398Z] Calling method: welcomeScreen.getHtmlForView 
[verbose - 2021-01-21 15:30:04.398Z] Calling method: checkGitInstallation 
[verbose - 2021-01-21 15:30:04.398Z] Calling method: isGitInstalled 
[verbose - 2021-01-21 15:30:04.398Z] Executing git command : git --version 
[debug - 2021-01-21 15:30:04.406Z] Calling method: renderView, args:  [{"name":"welcomeScreen","js":false,"args":{"enabled":"checked"}}]
[debug - 2021-01-21 15:30:04.406Z] Calling method: interpolate, args:  [{"enabled":"checked"}]
[debug - 2021-01-21 15:30:04.408Z] Registering event handlers in the extension 
[debug - 2021-01-21 15:30:04.409Z] Registering statusbar in the extension 
[verbose - 2021-01-21 15:30:04.409Z] Updating profile icon in the extension 
[debug - 2021-01-21 15:30:04.409Z] Registering treeviews in the extension 
[verbose - 2021-01-21 15:30:04.414Z] Calling method: findSkillFolders 
[debug - 2021-01-21 15:30:04.610Z] Calling method: welcomeScreen.onViewChangeListener 
[verbose - 2021-01-21 15:30:05.113Z] Calling method: getOrInstantiateGitApi 
[verbose - 2021-01-21 15:30:05.116Z] Calling method: findSkillFolders 
[debug - 2021-01-21 15:30:05.117Z] Checking if extension version is latest 
[debug - 2021-01-21 15:30:06.565Z] Successfully uploaded telemetry data. 
[info - 2021-01-21 15:30:09.947Z] skill package schema has been updated. 
[debug - 2021-01-21 15:30:09.948Z] Failed to read skill package schema due to SyntaxError: Unexpected token < in JSON at position 0, the skill package watcher won't start. 
[verbose - 2021-01-21 15:30:09.948Z] Calling method: getSkillMetadataSrc 
[verbose - 2021-01-21 15:30:09.949Z] Calling method: getAskResourceConfig 
[info - 2021-01-21 15:30:09.949Z] SkillPackageWatcher is started 

Desktop (please complete the following information):

  • OS: Win 10 Pro X64 / Ubuntu 20.04 (remote)
  • Visual Studio Code Version: 1.52.1
  • Alexa Skill Toolkit Version: 2.3.0

Additional context

This happens as soon as I load the remote host - I do not have an Alexa skill open and I am not in an Alexa skill folder. Have tried uninstalling and re-installing extension. v2.2.0 is OK v 2.3.0 pops up the error.

Thanks

Cannot install in VSCodium

Describe the bug

Can't install ASK to vscodium

To Reproduce

  1. Install vscodium
  2. Go to install extensions and search -- it's not found
  3. Alternately, go to the install page for the extension: https://marketplace.visualstudio.com/items?itemName=ask-toolkit.alexa-skills-kit-toolkit
  4. right click install button and choose "copy link address"
  5. change "vscode:" to "vscodium:" and hit enter
  6. It opens vscodium but is a no-op

Extension Logs

Expected behavior

Installer for ASK shows up in IDE

Screenshots

Desktop (please complete the following information):

  • OS: OSX
  • Visual Studio Code Version: VSCodium
  • Alexa Skill Toolkit Version: latest

Additional context

Debug - Silent failure with Python 3.9

Describe the bug

While trying to run a debug profile, configured according to the documentation, debugger starts correctly, on Linux (Fedora 33) if the python runtime selected in the status bar is python2.7 but fails silently if it's python3.9

To Reproduce

Steps to reproduce the behavior:

  1. On Fedora 33 fully updated
  2. Select Python 3.9 as runtime
  3. Start the debug process
  4. This is seen in the Terminal window: cd /data/repo/github/personal/alexa_pumrus ; /usr/bin/env /bin/python /home/pantinor/.vscode/extensions/ms-python.python-2020.12.424452561/pythonFiles/lib/python/debugpy/launcher 34197 -- /data/repo/github/personal/alexa_pumrus/pumrus/lambda/lambda_function.py
  5. Nothing in ASK Toolkit Output window, with log level set to debug

Extension Logs

No logs:

[info - 2021-01-04 13:02:41.487Z] Activating extension 
[info - 2021-01-04 13:11:09.785Z] log level changed to debug 

Expected behavior

Debug process to start correctly, just like with Python 2.7 is selected (or at least some verbose error message)

Screenshots

Desktop (please complete the following information):

  • OS: Linux - Fedora 33
  • Visual Studio Code Version: 1.52.1
  • Alexa Skill Toolkit Version: v2.2.0

Additional context

Not running in a virtual_env. Python 2.7 seems to work, but fails not finding the module installed (since they are installed only for python 3)

Setting up vscode ASK toolkit v2 totally wiped my entire .code-workspace file (Remote Explorer)

Describe the bug

Setting up vscode toolkit v2 totally destroys entire existing .code-workspace file

To Reproduce

Open existing Amazon-hosted existing skill in dev console, select "open in vs code" option.
VSCode opens, popup dialog asks "choose folder". Home directory is default.
As soon as I selected it, the vscode remote workspace window closed and then re-opened with the original contents of my .code-workspace replaced with just the new skill folder. I can rebuild, but not cool!

Expected behavior

Not over-write my existing.code-workspace file (please!)

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Node v 12.18.2
  • Visual Studio Code Version: 1.47.2
  • Alexa Skill Toolkit Version: 2.0.0

Additional context

User Remote Explorer for development, so also can't seem to figure out how to login. Will file as seperate question

teste

Desktop (please complete the following information):

  • OS:
  • VS Code version:
  • Alexa Skill Toolkit extension version:

Question

Import Skill - Credentials for Git-CodeCommit Repository

OS: Linux x64 5.7.11-200.fc32.x86_64
Visual Studio Code Version: 1.47.3
Alexa Skills Toolkit Version: 2.0.2
Git Version: git version 2.26.2

Question

When trying to import an Alexa skill created in the Alexa Developer console, I am prompted for Git credentials, but I do not know what they should be. I have tried the AWS account credentials I used when creating the skill, but these are not accepted.

Steps:

Under Skill management I click "Download and edit skill"

a dropdown appears with the skill listed, which I click.

I am prompted for a folder to download to, so I select an empty folder

I am then prompted for a Username:

Git: https://git-codecommit.us-east-1.amazonaws.com (Press 'Enter' to confirm or Escape to cancel)

I am then prompted the same, but for a password.

I have tried:

  • the email i use to log in to the developer console
  • blank
  • escape

Escape cancels, email and blank just display a toast saying:

Skill clone failed. Reason: Git folder setup failed for

. Reason: Failed to execute git {
"exitCode": 128,
"gitErrorCode": "AuthenticationFailed",
"gitCommand": "fetch",
"stdout": "",
"stderr": "fatal: Authentication failed for 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/9f7748b5-b219-440a-89c9-d0ac959a72ab/'\n"
}

It is not clear what credentials are expected, and i dont believe I have any other credentials I could use.

I have added this as a question as there is a good chance I have missed something.

Thanks for any suggestions :)

everytime i open or try to create a skill in visual studio code v1.47.3 i get error Skill clone failed. Reason: Git folder setup failed Reason: Failed to execute git { "exitCode": 1, "gitCommand": "checkout", "stdout": "", "stderr": "error: pathspec 'prod' did not match any file(s) known to git\n" }

Describe the bug

To Reproduce

Extension Logs

Expected behavior

Screenshots

Desktop (please complete the following information):

  • OS:
  • Visual Studio Code Version:
  • Alexa Skill Toolkit Version:

Additional context

Simulator - Issue with apl templae without a speak directive

Describe the bug
I have a handler that generates a Response that includes both a simple (text only) APL template and a voice message.
The Device Preview view works fine and shows the correct rendering of the APL template.

The error occurs if I modify my handler and remove the .speak() invocation. In this case the Device Preview tab stops rendering the APL template.

When I test this in the test tab of the Alexa Console, I can get a visual output even if I do not include any Speak directive.

My specific use case is that of an APL template that uses the SpeakList command, so I do not need to add a speak directive (at least for the devices with a screen)

To Reproduce

  1. Write a simple handler that renders something visually with an APL template AND returns voice.
  2. Verify that it works as expected in the simulator
  3. Remove only the voice directive from the response
  4. Verify that nothing gets rendered

Extension Logs

[error - 2021-01-09 17:14:35.676Z] The simulator did not respond to your request. Try again.. Reason: Simulation in progress. 

Expected behavior

Render just the visual output

Screenshots

Screenshot from 2021-01-09 18-15-14

Desktop (please complete the following information):

  • OS: Linux Fedora 33
  • Visual Studio Code Version: 1.52.1
  • Alexa Skill Toolkit Version: 2.20.0

Additional context

Typescript deploy to lambda

Desktop (please complete the following information):

  • OS: Mac Catalina 10.15.07
  • VS Code version: .54.3
    • Commit: 2b9aebd5354a3629c3aba0a5f5df49f43d6689f8
    • Date: 2021-03-15T11:57:12.728Z (2 wks ago)
    • Electron: 11.3.0
    • Chrome: 87.0.4280.141
    • Node.js: 12.18.3
    • V8: 8.7.220.31-electron.0
    • OS: Darwin x64 19.6.0
  • Alexa Skill Toolkit extension version: v2.5.0

Question

I migrated my skill to Typescript. I have trouble updating the location of index.handler using the Alexa Skills Toolkit. I am using the Alexa Console built-in repository, lambda function, and cloud watch.

My code looks very similar to this sample skill. But they are not using the Alexa Skills Toolkit, so I am not sure how to integrate Typescript using the Toolkit.

My folder structure looks like follows:

  • .ask

  • .vscode

  • lambda

    • dist

      • src

      • index.js
      • index.js.map
    • node_modules

    • src

      • utils

      • types

      • data

    • index.ts
    • package.json
    • tsconfig.json
  • skill-package

    • assets

    • interactionModels

    • skill.json
  • .gitignore

Package.json currently points to "main": "dist/index.js",. When I upload the project to Alexa Console using the vs code plugin, the code viewer shows me the following code structure:

  • Skill Code

    • lambda

      • dist

      • index.ts
      • package.json
      • tsconfig.json
      • src

I receive the following error on Cloud Watch when I try to call my skill

{
    "errorType": "Runtime.HandlerNotFound",
    "errorMessage": "index.handler is undefined or not exported",
    "stack": [
        "Runtime.HandlerNotFound: index.handler is undefined or not exported",
        "    at Object.module.exports.load (/var/runtime/UserFunction.js:144:11)",
        "    at Object.<anonymous> (/var/runtime/index.js:45:30)",
        "    at Module._compile (internal/modules/cjs/loader.js:778:30)",
        "    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)",
        "    at Module.load (internal/modules/cjs/loader.js:653:32)",
        "    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)",
        "    at Function.Module._load (internal/modules/cjs/loader.js:585:3)",
        "    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)",
        "    at startup (internal/bootstrap/node.js:283:19)",
        "    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)"
    ]
}

Do I need to even add dist/ to the lambda or should I add it to .gitignore?

What's the best way to solve this issue using not aws commands but the plugin or the ask-cli. I am not hosting the lambda on my own and I am also not zipping the code but I deploy it using the Alexa Skills Toolkit. I could migrate to custom lambda and write myself a custom zip command but I would rather stick to the vs code plugin. Unsure how to proceed.

Thanks for your help!

Welcome page is not showing

am using VS Code extension and absolutely nothing happens when I click on the Alexa icon on the sidebar. am on a Mac running Catalina. I tried uninstalling and reloading but no change. I had an earlier version that i was using and it worked without any problems. once I upgraded to 2.1 is when it's giving me problems.
image

Support for ASK CLI v2.0.x

Description:

As of last week, ASK CLI v2.0.0 was released (and v2.0.1 shortly thereafter). Currently, the VSCode extension only works with ASK CLI v1.x, making it difficult to take advantage of for v2.0.x-created projects.

Steps to reproduce the issue:

  1. Update to the latest ASK CLI
  2. Attempt to edit the interaction model, fulfillment code, or skill manifest to take advantage of intellisense and schema validation. It doesn't work because the files are now in new paths.
  3. Attempt to use the VSCode extension to create a new project (and possibly other ask commands). They won't work because the CLI has changed.

Observed result:

Intellisense, snippets, and JSON schema features won't work in the new project structure created from ASK CLI v2. This is because the configuration is geared toward specific paths and those paths have changed.

Some of the ASK commands in the command palette won't work as expected because the ASK CLI has changed.

Expected result:

The extension would provide all of the same benefits for ASK CLI v2 as it did for ASK CLI v1.x. (Or, there would be a separate extension that offers those same benefits for ASK CLI v2.)

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Not that it should matter much, but this was on Mac.

VS Code version:
1.44.0

Missing dotnet-core template

I am trying to create a .NET Core based skill using the toolkit in VS Code, but the only options that show up for me are NodeJS and Python3. I followed the getting started guide to set up the toolkit and I have installed all the prerequisites. I also have VS 2019 Community installed on the side with multiple versions of .NET Core installed (2.0 and above.

Anyone have any ideas why I am not seeing the .NET template?

** Environment Details **

  • OS: Windows
  • VS Code version: 1.41.1
  • ASK Extension Version: 1.02

VS Code version:

Cannot debug Python skill locally due to missing site.getsitepackges() in virtualenvs

Describe the bug

I'm getting this error when I want to test my Python based skill locally by clickung Run -> Start Debugging:

error

To Reproduce

I followed the instructions to test my Python based skill locally:
https://developer.amazon.com/de-DE/docs/alexa/ask-toolkit/vs-code-ask-skills.html#test

The error pops up when I click Run -> Start Debugging.

My virtualenv lives in ./venv and is Python version 3.6.9 on Ubuntu Linux 18.04. The ask-sdk-local-debug package is installed in this venv. It seems that the extensions uses site.getsitepackages() to get the list of installed packages. But that is not available in a virtualenv. This seems to be related:

pypa/virtualenv#737

** launch.json **
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug Alexa Skill (Python)",
"type": "python",
"request": "launch",
"program": "${command:ask.debugAdapterPath}",
"pythonPath": "${command:python.interpreterPath}",
"args": [
"--accessToken",
"${command:ask.accessToken}",
"--skillId",
"${command:ask.skillIdFromWorkspace}",
"--skillHandler",
"lambda_handler",
"--skillFilePath",
"${workspaceFolder}/lambda/lambda_function.py"
],
"console": "internalConsole"
}
]
}

Extension Logs

[info - 2020-08-11 18:53:16.282Z] log level changed to debug
[debug - 2020-08-11 18:53:23.390Z] Calling method: ask.debugAdapterPath, args: [{"name":"Debug Alexa Skill (Python)","type":"python","request":"launch","program":"${command:ask.debugAdapterPath}","pythonPath":"/home/joerg/iubh_alexa/IUBH/venv/bin/python","args":["--accessToken","${command:ask.accessToken}","--skillId","${command:ask.skillIdFromWorkspace}","--skillHandler","lambda_handler","--skillFilePath","/home/joerg/iubh_alexa/IUBH/lambda/lambda_function.py"],"console":"internalConsole","cwd":"/home/joerg/iubh_alexa/IUBH","envFile":"/home/joerg/iubh_alexa/IUBH/.env","env":{"ELECTRON_RUN_AS_NODE":"1","GTK_CSD":"1","USER":"joerg","LANGUAGE":"de_DE","LC_TIME":"de_DE.UTF-8","XDG_SEAT":"seat0","XDG_SESSION_TYPE":"x11","SSH_AGENT_PID":"4310","SHLVL":"1","HOME":"/home/joerg","DESKTOP_SESSION":"pantheon","QT_STYLE_OVERRIDE":"adwaita","GTK_MODULES":"gail:atk-bridge","XDG_SEAT_PATH":"/org/freedesktop/DisplayManager/Seat0","LC_MONETARY":"de_DE.UTF-8","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1000/bus","MANDATORY_PATH":"/usr/share/gconf/pantheon.mandatory.path","QT_QPA_PLATFORMTHEME":"gtk3","LOGNAME":"joerg","DEFAULTS_PATH":"/usr/share/gconf/pantheon.default.path","XDG_SESSION_ID":"c2","GDM_LANG":"de_DE","GTK3_MODULES":"pantheon-filechooser-module:pantheon-filechooser-module","PAPERSIZE":"a4","S_COLORS":"auto","LC_ADDRESS":"de_DE.UTF-8","XDG_RUNTIME_DIR":"/run/user/1000","XDG_SESSION_PATH":"/org/freedesktop/DisplayManager/Session0","DISPLAY":":0","LANG":"de_DE.UTF-8","XDG_CURRENT_DESKTOP":"Unity","LC_TELEPHONE":"de_DE.UTF-8","XDG_SESSION_DESKTOP":"pantheon","XAUTHORITY":"/home/joerg/.Xauthority","XDG_GREETER_DATA_DIR":"/var/lib/lightdm-data/joerg","SSH_AUTH_SOCK":"/run/user/1000/keyring/ssh","LC_NAME":"de_DE.UTF-8","SHELL":"/bin/bash","QT_ACCESSIBILITY":"1","GDMSESSION":"pantheon","LC_MEASUREMENT":"de_DE.UTF-8","GPG_AGENT_INFO":"/run/user/1000/gnupg/S.gpg-agent:0:1","LC_IDENTIFICATION":"de_DE.UTF-8","XDG_VTNR":"7","JAVA_HOME":"/usr/lib/jvm/java-8-openjdk-amd64/","PWD":"/home/joerg","ANDROID_HOME":"/home/joerg/Android/Sdk","XDG_DATA_DIRS":"/usr/share/gnome:/usr/share/pantheon:/home/joerg/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop","XDG_CONFIG_DIRS":"/etc/xdg/xdg-pantheon:/etc/xdg","LC_NUMERIC":"de_DE.UTF-8","LC_PAPER":"de_DE.UTF-8","QT_IM_MODULE":"ibus","XMODIFIERS":"@im=ibus","GNOME_DESKTOP_SESSION_ID":"this-is-deprecated","XDG_MENU_PREFIX":"gnome-","SESSION_MANAGER":"local/rog:@/tmp/.ICE-unix/4194,unix/rog:/tmp/.ICE-unix/4194","GIO_LAUNCHED_DESKTOP_FILE":"/usr/share/applications/code.desktop","GIO_LAUNCHED_DESKTOP_FILE_PID":"18035","CHROME_DESKTOP":"code-url-handler.desktop","ORIGINAL_XDG_CURRENT_DESKTOP":"Pantheon","VSCODE_NLS_CONFIG":"{"locale":"de","availableLanguages":{},"languagePackSupport":true}","VSCODE_NODE_CACHED_DATA_DIR":"/home/joerg/.config/Code/CachedData/91899dcef7b8110878ea59626991a18c8a6a1b3e","VSCODE_LOGS":"/home/joerg/.config/Code/logs/20200811T203240","VSCODE_IPC_HOOK":"/run/user/1000/vscode-f8c03cfe-1.47.3-main.sock","VSCODE_PID":"18035","LESSCLOSE":"/usr/bin/lesspipe %s %s","LESSOPEN":"| /usr/bin/lesspipe %s","LS_COLORS":"","NVM_BIN":"/home/joerg/.nvm/versions/node/v14.5.0/bin","NVM_CD_FLAGS":"","NVM_DIR":"/home/joerg/.nvm","NVM_INC":"/home/joerg/.nvm/versions/node/v14.5.0/include/node","":"/usr/share/code/code","AMD_ENTRYPOINT":"vs/workbench/services/extensions/node/extensionHostProcess","PIPE_LOGGING":"true","VERBOSE_LOGGING":"true","VSCODE_IPC_HOOK_EXTHOST":"/tmp/vscode-ipc-2f14383e-97a0-478e-a0ab-c5f67fc4c6ec.sock","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_LOG_STACK":"false","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"true","PATH":"/home/joerg/bin:/home/joerg/.local/bin:/home/joerg/.nvm/versions/node/v14.5.0/bin:/home/joerg/bin:/home/joerg/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/joerg/Android/Sdk/emulator:/home/joerg/Android/Sdk/tools:/home/joerg/Android/Sdk/tools/bin:/home/joerg/Android/Sdk/platform-tools:/home/joerg/flutter/bin:/home/joerg/Android/Sdk/emulator:/home/joerg/Android/Sdk/tools:/home/joerg/Android/Sdk/tools/bin:/home/joerg/Android/Sdk/platform-tools:/home/joerg/flutter/bin","PYTHONIOENCODING":"UTF-8","PYTHONUNBUFFERED":"1"},"stopOnEntry":false,"showReturnValue":true,"debugOptions":["ShowReturnValue","RedirectOutput"],"justMyCode":true,"workspaceFolder":"/home/joerg/iubh_alexa/IUBH","redirectOutput":true}]
[debug - 2020-08-11 18:53:26.326Z] Successfully uploaded telemetry data.

Expected behavior

Being able to test the skill locally.

Desktop (please complete the following information):

OS: Linux x64 4.15.0-101-generic
Visual Studio Code Version: 1.47.3
Alexa Skills Toolkit Version: 2.0.0
Git Version: git version 2.17.1

Vscode not importing amazon alexa projects

Desktop (please complete the following information):

  • OS: ubuntu 20
  • VS Code version: 1.49.3
  • Alexa Skill Toolkit extension version:2.1

Question
Projects in Amazon developer are not importable

the alexa projects I have in development on Amazon are not appearing when I try to import them into my VS code editor

Local debugging not working

Desktop (please complete the following information):

OS: Linux x64 5.4.40-04224-g891a6cce2d44
Visual Studio Code Version:  1.47.3
Alexa Skills Toolkit Version: 2.0.0
Git Version: git version 2.27.0

Question

Summary: Lambda skill runs locally in VS Code but I can't get the console to invoke it

I have the following set up:

  1. A UK dev account. I then followed the instructions to create a US dev account and linked them
  2. Signed into the ASK Toolkit using the US dev account with the profile named 'default'
  3. The skill was originally created in the UK dev account console. I've downloaded/cloned it using the Toolkit using the 'default' profile (this was slightly complex, as I had to create a UK profile to get the skill to be listed as available to download, then switch to the 'default' profile to download it)
  4. I've followed the instructions for local debugging, and see the "Starting Skill Debug Session in NA region" message with the ws: URL

So that's all good.

Back in the console, I have logged in using the US account. I try and run the skill, but it always uses the hosted version and not the local one.

This worked at one point earlier today and yesterday, as I was successfully invoking the skill locally. I've changed something - not sure what - and now can't get it to invoke locally. So I've tried reinstalling the Toolkit, deleting the ~/.ask directory and recreating the 'default' profile, and downloading a fresh copy of the skill.

Is there anything else I can try and do to get this working?

supportedViewports missing for APL in the skill.json validation

Description:

Steps to reproduce the issue:

  1. Edit the skill.json
  2. Add the interface
{
            "type": "ALEXA_PRESENTATION_APL",
            "supportedViewports": [
              {
                "mode": "HUB",
                "shape": "ROUND",
                "minWidth": 480,
                "maxWidth": 480,
                "minHeight": 480,
                "maxHeight": 480
              },
              {
                "mode": "HUB",
                "shape": "RECTANGLE",
                "minWidth": 1024,
                "maxWidth": 1024,
                "minHeight": 600,
                "maxHeight": 600
              },
              {
                "mode": "HUB",
                "shape": "RECTANGLE",
                "minWidth": 1280,
                "maxWidth": 1280,
                "minHeight": 800,
                "maxHeight": 800
              },
              {
                "mode": "TV",
                "shape": "RECTANGLE",
                "minWidth": 960,
                "maxWidth": 960,
                "minHeight": 540,
                "maxHeight": 540
              },
              {
                "mode": "HUB",
                "shape": "RECTANGLE",
                "minWidth": 960,
                "maxWidth": 960,
                "minHeight": 480,
                "maxHeight": 480
              }
            ]
          }

Observed result:
Warning: Property supportedViewports is not allowed.

Expected result:
No Warning because supportedViewports is required to add APL support to all Alexa devices since it is possible to add APL for single devices

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Mac
VS Code version:
1.38.1

Skill Package Remote Sync Status is always Out of sync because SMAPI doesn't return ETag

Describe the bug

i'm not sure is it the extension or Amazon SMAPI bug but my skill package is always Out of Sync. Even if I run Export skill package it's still Out of Sync.

I tried to debug the extension code and found that SMAPI GET /v1/skills/exports/{exportId} call returns a response with no eTag field. According to the doc: https://developer.amazon.com/en-US/docs/alexa/smapi/skill-package-api-reference.html#get-export-status the response should be:

Example response body

{
  "skill": {
    "expiresAt": "1550521786056",
    "location": "URL to download the exported skill",
    "eTag": "string"
  },
  "status": "SUCCEEDED"
}

but I get only expiresAt and location. No eTag.

Screen Shot 2021-03-19 at 12 18 16

As result of this getSkillPackageSyncStage method always return outOfSync status:

Screen Shot 2021-03-19 at 12 18 48

OS: Darwin x64 20.3.0
Visual Studio Code Version: 1.54.3
Alexa Skills Toolkit Version: 2.4.0
Git Version: git version 2.21.0

Please advise

Skill Simulation always returns undefined

Desktop (please complete the following information):

OS: Windows_NT x64 10.0.18362
Visual Studio Code Version: 1.51.0
Alexa Skills Toolkit Version: 2.1.0
Git Version: git version 2.17.1.windows.2

Question

While trining to invoke the skill in the simulator I get the following error:
[error - 2020-11-07 22:34:15.671Z] Simulation in progress.

The simulator returns "undefined"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.