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)

defect

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
Priority: -- → P3
Whiteboard: [dev-prod-2020]
Assignee: nobody → gbrown
Status: NEW → ASSIGNED
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
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: