Skip to content

Issue with launch.json on Win11-x64 #12

@camrobert

Description

@camrobert

Followed installation steps and verified all dependencies (.NET 7, etc)
When attempting to "Run and Debug" for the first time - there is NO .vscode folder or launch.json file.
VS Code attempts to make one, but it is empty.

The error mentioned a missing "targetArchitecture" value.

The following code was manually entered/altered to make it work:
{ "version": "0.2.0", "configurations": [ { "name": "Launch (web)", "type": "coreclr", "request": "launch", "args": "ampscript --source ${file}", "program": "C:\\Users\\(username)\\.vscode\\extensions\\salesforce.ampscript-0.0.5\\.Sage\\Sage.Webhost.dll", "cwd": "${workspaceFolder}", "targetArchitecture": "x86_64", "stopAtEntry": false, "serverReadyAction": { "action": "openExternally", "pattern": "\\bNow listening on:\\s+(https?://\\S+)" }, "env": { "ASPNETCORE_ENVIRONMENT": "Development" }, "sourceFileMap": { "/Views": "${workspaceFolder}" } } ] }

Suggest auto-generating the launch.json file to make it easier for users - or provide a quick-start guide for Win11 users to self triage the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions