Closed
Bug 1858932
Opened 2 years ago
Closed 2 years ago
The VSCode build task fails to run
Categories
(Developer Infrastructure :: Developer Environment Integration, defect)
Developer Infrastructure
Developer Environment Integration
Tracking
(firefox120 fixed)
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| firefox120 | --- | fixed |
People
(Reporter: saschanaz, Assigned: saschanaz)
References
Details
Attachments
(1 file)
Running the default build task by Control+Shift+B says:
* Executing task: /mozilla-build/start-shell.bat cd "$('C:\Users\sasch\Documents\GitHub\gecko-dev' -replace '\\','/')" ';' mach --log-no-times build binaries
MozillaBuild Install Directory: C:\mozilla-build\
/usr/bin/bash: cd: No such file or directory
* The terminal process "C:\Users\sasch\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe -Command /mozilla-build/start-shell.bat cd "$('C:\Users\sasch\Documents\GitHub\gecko-dev' -replace '\\','/')" ';' mach --log-no-times build binaries" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
Modifying the task definition this way works if the user has installed Python:
"windows": {
"command": "./mach.ps1",
"args": [
"--log-no-times"
]
},
But not if they have no Python in PATH. We could fallback to MozillaBuild python if there's no python, but simply checking whether there's python doesn't work as Microsoft by default exposes dummy python executable for no good reason.
But it's already broken, maybe breaking it in another way by requiring python shouldn't harm.
| Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Assignee: nobody → krosylight
Status: NEW → ASSIGNED
Pushed by krosylight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/08072f3d2801
Skip bash and run mach directly on powershell for tasks.json r=tcampbell DONTBUILD
Comment 4•2 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox120:
--- → fixed
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•