[cfe-dev] clang-format issue

Thiago Farina tfransosi at gmail.com
Sat May 4 06:39:49 PDT 2013

On Sat, May 4, 2013 at 10:32 AM, Thiago Farina <tfransosi at gmail.com> wrote:
> Hi,
> When running clang-format-diff.py from command line or clang-format.py
> from vim, either way, I'm getting the following error:
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "/home/tfarina/src/llvm/tools/clang/tools/clang-format/clang-format.py",
> line 44, in <module>
>     stdin=subprocess.PIPE)
>   File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
>     errread, errwrite)
>   File "/usr/lib/python2.7/subprocess.py", line 1213, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory
> Anyone knows what I might be doing wrong?
I got it, sorry for the noise.

Since clang-format is not in my path, I had to edit |binary| and
change it to point to ~/src/llvm/build/bin/clang-format. Doing that
fixed it.

More information about the cfe-dev mailing list