Closed
Bug 1720308
Opened 4 years ago
Closed 4 years ago
`./mach ide vscode` doesn't find Visual Studio Code installed (as a snap) via the Ubuntu software manager
Categories
(Firefox Build System :: Mach Core, enhancement)
Firefox Build System
Mach Core
Tracking
(firefox92 fixed)
RESOLVED
FIXED
92 Branch
| Tracking | Status | |
|---|---|---|
| firefox92 | --- | fixed |
People
(Reporter: jfkthame, Assigned: jfkthame)
Details
Attachments
(1 file)
|
Bug 1720308 - Support VSCode installed as a snap package on Linux. r=#firefox-build-system-reviewers
48 bytes,
text/x-phabricator-request
|
Details | Review |
I set up a new machine with Ubuntu 20.04LTS, and installed Visual Studio Code via the Ubuntu Software manager. This installed it as a snap package, with the executable at /snap/bin/code.
/snap/bin is in my $PATH, so I was quite surprised when ./mach ide vscode reported that it couldn't find the vscode binary, and I had to enter the path manually each time.
On looking into this, it turns out that it doesn't use the current $PATH but looks in a few specific locations hardcoded in the python script.
To make things more convenient for people who (like me) install VSCode in the "obvious" way via the Ubuntu UI, I'd suggest we should add /snap/bin/code to the known locations that mach checks.
| Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dc8a3fd81096
Support VSCode installed as a snap package on Linux. r=firefox-build-system-reviewers,nalexander
Comment 3•4 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox92:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•