Closed Bug 983633 Opened 6 years ago Closed 6 years ago

Running mach clang-format results in an error

Categories

(Firefox Build System :: Mach Core, enhancement)

x86
macOS
enhancement
Not set

Tracking

(Not tracked)

RESOLVED FIXED
mozilla31

People

(Reporter: kats, Assigned: ajones)

Details

Attachments

(1 file)

What is this 'filterdiff' you speak of? Perhaps this dependency needs to be documented (or auto-installed)?

kats@kgupta-air mozilla-git$ mach clang-format
Download clang-format executables from https://people.mozilla.org/~ajones/clang-format/ (yN)? y
Downloading https://people.mozilla.org/~ajones/clang-format/darwin/clang-format-3.5 to /Users/kats/.mozbuild/clang-format-3.5
Downloading https://people.mozilla.org/~ajones/clang-format/clang-format-diff-3.5 to /Users/kats/.mozbuild/clang-format-diff-3.5
Error running mach:

    ['clang-format']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.

You should consider filing a bug for this issue.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

OSError: [Errno 2] No such file or directory

  File "/Users/kats/zspace/mozilla-git/tools/mach_commands.py", line 366, in clang_format
    stdin=git_process.stdout, stdout=PIPE)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
    errread, errwrite)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
    raise child_exception
Assignee: nobody → ajones
Status: NEW → ASSIGNED
Attachment #8393292 - Flags: review?(gps) → review+
https://hg.mozilla.org/mozilla-central/rev/3ddf88afb0a2
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.