Closed swarner1033 closed 9 months ago
2023-11-17 18:13:01 [ERROR]: Error resuming SAM Application creation. Check the logs by running the "View AWS Toolkit Logs" command from the Command Palette. 2023-11-17 18:13:01 [ERROR]: Error resuming new SAM Application: 'TypeError: $ is not iterable'
Thanks for the report. Can you try the prerelease build: https://github.com/aws/aws-toolkit-vscode/releases/tag/prerelease
Hey, sorry for the delayed response. Got a similar error
2023-12-06 14:43:05 [ERROR]: Error resuming SAM Application creation. Check the logs by running the "View AWS Toolkit Logs" command from the Command Palette.
2023-12-06 14:43:05 [ERROR]: Error resuming new SAM Application: 'TypeError: V is not iterable'
That comes from: https://github.com/aws/aws-toolkit-vscode/blob/af655f604ffc8fa99a49a901636dd270175b5c2e/src/lambda/commands/createNewSamApp.ts#L106
This indicates that something in provideDebugConfigurations
is failing.
We need to improve the "shape checks" and logging in addInitialLaunchConfiguration
and provideDebugConfigurations
.
Looks like I can get a repro (might not be exactly the same) if I'm creating a new SAM app from a VS Code window not tied to a workspace/workspace folder (error happens when we open a workspace folder and attempt to resume).
@swarner1033 If you're consistently reproing, can you try downloading the VSIX in https://d1ihu6zq92vp9p.cloudfront.net/02dc9fba-112a-4f37-9ec5-c681a5126678/report.html (get the primary artifact and unzip it)? This comes from https://github.com/aws/aws-toolkit-vscode/pull/4151
AWS Toolkit 2.3.0 includes a fix for this.
Problem
Files were generated as expected but error produced. Additionally, the vscode testing module failed with
ModuleNotFoundError: No module named 'hello_world'
. Unsure if this is related though.Error output
``` 2023-11-17 18:12:54 [INFO]: log level: debug 2023-11-17 18:12:54 [DEBUG]: Logging started: file:///Users/sophiewarner/Library/Application%20Support/Code/logs/20231116T113204/window6/exthost/amazonwebservices.aws-toolkit-vscode/aws_toolkit_20231117T181254.log 2023-11-17 18:12:54 [INFO]: endpoints: retrieving AWS endpoints data 2023-11-17 18:12:54 [VERBOSE]: loading file resource: "/Users/sophiewarner/.vscode/extensions/amazonwebservices.aws-toolkit-vscode-1.98.0/resources/endpoints.json" 2023-11-17 18:12:54 [INFO]: OS: Darwin x64 22.6.0 2023-11-17 18:12:54 [INFO]: Visual Studio Code extension host: 1.84.2 2023-11-17 18:12:54 [INFO]: AWS Toolkit: 1.98.0 2023-11-17 18:12:54 [INFO]: node: 18.15.0 2023-11-17 18:12:54 [INFO]: electron: 25.9.2 2023-11-17 18:12:54 [DEBUG]: firstStartup: This is not the users first use of the extension. Skipped showing Add Connections page. 2023-11-17 18:12:54 [VERBOSE]: Telemetry is now enabled 2023-11-17 18:12:54 [VERBOSE]: downloading: https://idetoolkits.amazonwebservices.com/endpoints.json 2023-11-17 18:12:54 [WARN]: AwsContext: no default region in credentials profile, falling back to us-east-1: 2023-11-17 18:12:54 [VERBOSE]: telemetry: emitted metric "session_start" 2023-11-17 18:12:54 [VERBOSE]: downloading: https://api.github.com/repos/devfile/api/releases/latest 2023-11-17 18:12:54 [VERBOSE]: codecatalyst: not a devenv, getThisDevEnv() returned empty 2023-11-17 18:12:54 [VERBOSE]: credentials: found sections:Steps to reproduce the issue
Expected behavior
No errors shown
System details (run the
AWS: About Toolkit
command)OS: Darwin x64 22.6.0 Visual Studio Code extension host: 1.84.2 AWS Toolkit: 1.98.0 node: 18.15.0 electron: 25.9.2