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)

enhancement

Tracking

(firefox92 fixed)

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

Details

Attachments

(1 file)

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: 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
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: