Why won't env work in task.json? #7635
Unanswered
차영곤 (garmede)
asked this question in
Q&A
Replies: 1 comment
|
That seems like it could be a VS Code bug with the CustomExecution class, which handles all the variable resolving for the task. Can you file a VS Code bug? You could refer them to our usage at https://github.com/microsoft/vscode-cpptools/blob/main/Extension/src/LanguageServer/cppBuildTaskProvider.ts#L199 . |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I tried excute task like below:
{ "version": "2.0.0", "options": { "env": { "VCPKG_ROOT": "F:\\GitHub\\vcpkg\\installed" } }, "tasks": [ { "label": "command test", "type": "cppbuild", "command": "echo", "args": [ "${env:VCPKG_ROOT}" ], "group": { "kind": "build", "isDefault": true }, "problemMatcher": [] } ] }Then print Error
echo ECHO�� �����Ǿ� �ֽ��ϴ�.Why don't use
envoption in"type": "cppbuild"?But works good in
"type": "shell".All reactions