From 55b1cc6058d04c00d8f73bc451f1db68fed6592c Mon Sep 17 00:00:00 2001 From: Ted Campbell Date: Thu, 14 Nov 2019 10:35:12 +0000 Subject: [PATCH] Bug 1594520 - Change directory before running mach in .vscode/tasks.json on Windows. r=jya The build is quite fragile if the path to mach is not precisely formatted. Work around this by cd-ing to the appropriate directory and then calling 'mach' with a relative path. This mimics a normal user workflow in mozilla-build. Differential Revision: https://phabricator.services.mozilla.com/D52968 --HG-- extra : moz-landing-system : lando --- .vscode/tasks.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 527514ac8500..eab45b2a7532 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -8,8 +8,12 @@ "windows": { "command": "/mozilla-build/start-shell.bat", "args": [ + "cd", // Use PowerShell to mangle path for mozilla-build environment - {"value": "$('${workspaceFolder}\\mach' -replace '\\\\','/')", "quoting": "weak"}, + {"value": "$('${workspaceFolder}' -replace '\\\\','/')", "quoting": "weak"}, + "';'", + + "mach", "--log-no-times" ] },