ampscript-core icon indicating copy to clipboard operation
ampscript-core copied to clipboard

Issue with launch.json on Win11-x64

Open camrobert opened this issue 8 months ago • 0 comments

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.

camrobert avatar Oct 05 '23 14:10 camrobert