Closed
Bug 1603510
Opened 4 years ago
Closed 4 years ago
mach try --edit-preset assumes the $EDITOR is a single command
Categories
(Developer Infrastructure :: Try, defect, P3)
Developer Infrastructure
Try
Tracking
(firefox78 fixed)
RESOLVED
FIXED
mozilla78
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: mossop, Assigned: gbrown)
Details
(Whiteboard: [dev-prod-2020])
Attachments
(1 file)
My $EDITOR is code -w
which every other tool handles fine. mach try syntax --edit-presets
throws an error:
OSError: [Errno 2] No such file or directory
File "/Users/dave/mozilla/source/trunk/tools/tryselect/mach_commands.py", line 410, in try_syntax
return self.run(**kwargs)
File "/Users/dave/mozilla/source/trunk/tools/tryselect/mach_commands.py", line 176, in run
kwargs = self.handle_presets(**kwargs)
File "/Users/dave/mozilla/source/trunk/tools/tryselect/mach_commands.py", line 117, in handle_presets
user_presets.edit()
File "/Users/dave/mozilla/source/trunk/tools/tryselect/preset.py", line 55, in edit
subprocess.call([os.environ['EDITOR'], self.path])
File "/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
Updated•4 years ago
|
Priority: -- → P3
Whiteboard: [dev-prod-2020]
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Assignee: nobody → gbrown
Status: NEW → ASSIGNED
Updated•4 years ago
|
Attachment #9146809 -
Attachment description: Bug 1603510 - Allow multi-word /usr/bin/vi in 'mach try syntax --edit-presets'; r= → Bug 1603510 - Allow multi-word $EDITOR in 'mach try syntax --edit-presets'; r=
Pushed by gbrown@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/33e5d8b9542a Allow multi-word $EDITOR in 'mach try syntax --edit-presets'; r=bc
Comment 3•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox78:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•