Skip to content

Unable to open an existing skill: Workspace is not a valid skill project #301

Open
@techandsoftware

Description

Describe the bug

I'm editing an existing skill which I haven't touched for about 2 years. It doesn't open in VS Code. The error is "workspace is not a valid project".

Using ASK to create a new skilll, download and openining that results in the same error.

To Reproduce

  1. In ASK, click 'open local skill'
  2. Open the workspace

Expected: the skill should be visible in the SKILLS panel, but it's empty

  1. Run -> start debugging

Observed: Error popups up "workspace is not a valid skill project"

Extension Logs

[info - 2025-02-16 18:26:58.860Z] skill package schema has been updated.
[info - 2025-02-16 18:26:58.861Z] SkillPackageWatcher is disposed
[verbose - 2025-02-16 18:26:58.861Z] Calling method: getSkillMetadataSrc
[verbose - 2025-02-16 18:26:58.861Z] Calling method: getAskResourceConfig
[info - 2025-02-16 18:26:58.862Z] SkillPackageWatcher is started
[debug - 2025-02-16 18:27:07.926Z] Calling method: g.getChildren
[verbose - 2025-02-16 18:27:07.926Z] Calling method: getSkillFolderInWs
[verbose - 2025-02-16 18:27:07.926Z] Calling method: doesWorkSpaceExist
[verbose - 2025-02-16 18:27:07.926Z] Calling method: getSkillDetailsFromWorkspace
[verbose - 2025-02-16 18:27:07.926Z] Calling method: getSkillFolderInWs
[verbose - 2025-02-16 18:27:07.926Z] Calling method: doesWorkSpaceExist
[verbose - 2025-02-16 18:27:07.926Z] Calling method: getAskResourceConfig
[error - 2025-02-16 18:27:07.926Z] Workspace is not a valid skill project.

[debug - 2025-02-16 18:27:07.929Z] Calling method: d.getChildren
[debug - 2025-02-16 18:27:07.955Z] Calling method: d.getChildren
[verbose - 2025-02-16 18:27:07.955Z] Calling method: d.addRootResources
[debug - 2025-02-16 18:27:07.955Z] Calling method: d.getTreeItem
[debug - 2025-02-16 18:27:07.955Z] Calling method: d.getTreeItem
[verbose - 2025-02-16 18:27:08.371Z] Calling method: d.addRootResources
[debug - 2025-02-16 18:27:08.380Z] Calling method: d.getTreeItem
[debug - 2025-02-16 18:27:08.383Z] Calling method: d.getTreeItem
[debug - 2025-02-16 18:27:08.383Z] Calling method: d.getTreeItem
[debug - 2025-02-16 18:29:39.142Z] Calling method: ask.debugAdapterPath, args: [{"type":"pwa-node","name":"Debug Alexa Skill (Node.js)","request":"launch","trace":{"stdio":false,"logFile":null},"outputCapture":"console","timeout":10000,"timeouts":{},"showAsyncStacks":true,"skipFiles":["<node_internals>/"],"smartStep":true,"sourceMaps":true,"sourceMapRenames":true,"pauseForSourceMap":false,"resolveSourceMapLocations":["/home/rob/repo/londontraintimes/LondonTrainTimes//.(m|c|)js","!/node_modules/"],"rootPath":"/home/rob/repo/londontraintimes/LondonTrainTimes","outFiles":["/home/rob/repo/londontraintimes/LondonTrainTimes/**/.(m|c|)js","!/node_modules/"],"sourceMapPathOverrides":{"webpack:///./~/":"/home/rob/repo/londontraintimes/LondonTrainTimes/node_modules/","webpack:////":"/","webpack://@?:/?:/":"/home/rob/repo/londontraintimes/LondonTrainTimes/","webpack://?:/":"/home/rob/repo/londontraintimes/LondonTrainTimes/","webpack:///([a-z]):/(.+)":"$1:/$2","meteor://💻app/":"/home/rob/repo/londontraintimes/LondonTrainTimes/","turbopack://[project]/":"/home/rob/repo/londontraintimes/LondonTrainTimes/*"},"enableContentValidation":true,"cascadeTerminateToConfigurations":[],"enableDWARF":true,"__workspaceFolder":"/home/rob/repo/londontraintimes/LondonTrainTimes","__breakOnConditionalError":false,"cwd":"/home/rob/repo/londontraintimes/LondonTrainTimes","env":{},"envFile":null,"localRoot":null,"remoteRoot":null,"autoAttachChildProcesses":true,"runtimeSourcemapPausePatterns":[],"program":"${command:ask.debugAdapterPath}","stopOnEntry":false,"console":"internalConsole","restart":false,"args":["--accessToken","${command:ask.accessToken}","--skillId","${command:ask.skillIdFromWorkspace}","--handlerName","handler","--skillEntryFile","/home/rob/repo/londontraintimes/LondonTrainTimes/lambda/index.js","--region","EU"],"runtimeExecutable":"node","runtimeVersion":"default","runtimeArgs":[],"profileStartup":false,"attachSimplePort":null,"experimentalNetworking":"auto","killBehavior":"forceful","__configurationTarget":6,"__workspaceCachePath":"/home/rob/.config/Code/User/workspaceStorage/b15c4c333c5115a49030b17249caad58/ms-vscode.js-debug"}]
[verbose - 2025-02-16 18:29:39.612Z] Calling method: checkProfileSkillAccess
[verbose - 2025-02-16 18:29:39.612Z] Calling method: getSkillProfile
[verbose - 2025-02-16 18:29:39.612Z] Calling method: getSkillFolderInWs
[verbose - 2025-02-16 18:29:39.612Z] Calling method: doesWorkSpaceExist
[verbose - 2025-02-16 18:29:39.612Z] Calling method: getAskResourceConfig
[error - 2025-02-16 18:29:39.612Z] Workspace is not a valid skill project.

Expected behavior

The skill should open

Screenshots

Desktop (please complete the following information):

OS: Linux x64 6.6.56-05934-gf790fe104dba
Visual Studio Code Version: 1.97.2
Alexa Skills Toolkit Version: 2.16.0
Git Version: git version 2.39.5

Additional context

The skill is nodejs. I'm opening the workspace with the folder containing ask-resources.json

I've also tried creating a new nodejs skill with ASK, then opening that, and that fails with the same error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions