microsoft/vscode

${env.APPDATA} in launch.json broke in 1.13?

liquid8d opened this issue · 4 comments

  • VSCode Version: 1.13.1
  • OS Version: Win 10

I use launch.json for launching an Electron app, and had it pointed to the electron executable:
"runtimeExecutable": "${env.APPDATA}/nvm/v7.8.0/node_modules/electron/dist/electron.exe",

This seems to have stopped working in 1.13. Did using environment variables in the launch config change, is something else recommended?

Steps to Reproduce:

  1. Use ${env.APPDATA} in runtimeExecutable of launch.json
  2. The system cannot find the specified file

See #28365 (comment)

Can you try ${env:APPDATA} instead?

cc @dbaeumer and @weinand

We've deprecated the '.' variable syntax in the February release: see https://code.visualstudio.com/updates/v1_10#_new-variable-syntax
In the May release the old syntax has been finally removed.

Thanks, that all makes sense. I didn't see that change in Feb and didn't notice any mention of its removal in May.

@isidorn we should mention the removal of a deprecation, not only when we start to deprecate.