<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54728>54728</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy][run-clang-tidy.py] Uninformative error message after changes to binary discovery
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
neqochan
</td>
</tr>
</table>
<pre>
Commit 5da83eeb91bab848a096db7521c6d8be29231665 broke our clang-tidy invocation ([here](https://github.com/qogecoin/rules_ll/blob/a9dabb7d2c0d7dba93a100cbce3ee4717c5a1d85/ll/compilation_database.bzl#L87)).
I suspect that after the changes the automatic binary discovery somehow does not work with the `-clang-tidy-binary` option.
My issue is that the error message `Unable to run clang-tidy.` (from [here](https://github.com/llvm/llvm-project/blob/3b1314f4de63db771f1d93e1da06f14e7f3babab/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py#L317)) is not very helpful for debugging (missing binary? threading issue? something else?) 😅. May be a bug as well. Currently looking into it and will post an update as soon as we find a fix on our side.
Tagging @SAtacker as you are the one who wrote this commit.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVVE2P3DYM_TWeizCGbdlj--DDJosFAiSnNueAkuiPriw6kryT6a8v5Z12N82lBQyLokSafO_Risxt-EjrukTRGOgkoupLBaqrOyj6i1FtU5X6YjqFVV_J8nJphPL0jIJ2L7QFN53jYm5icS-kIS7kRFZ1WfNhRo9Z88ibOcYtZPIhq574mZY47yrXtPLmO02oaXFs-t1i-GYtm8qS4gV6A0q1ptKFaY2CXkJZFFpp5DLrtmx1A6XpGr56hHHKbbFHDd8MRFAQMFd_8pH83LVZ1fOTZ8VjVjy8vj-JsIcNdRRxhihgjOjZRKFn7gvDYcMeaeWkWqjFgb8JswRNL8hWoBVnugpDfNdRFFfyz-LKDR6R2aU4vyF0fg1np6At1fhTKV8YwRB25PdrMSkBek9erBgCTEe6rw6URRFJ-N29Qz9PWRnp0dMq_iv21r78vZw3T38wDm_YS1XKsh5rgxfJImjLsTS9xNJAcRnLGttRskogXb2XQWTDGX9ED28-Lo036egg2L2DI99uiRdZ3olJjScID2BntNu4WzFy-wbVPk2Lm1KDK4OUzDuW8olx8ggm-Q78kivREufkQhuSJ6XPnoqsf8r6LuuaXHyBm1DMreDcAoK4orW5-Lh7jy7am7BEz0dOx1jzbIAzzKu1YqOQdmLfWGGYQgOx5I8UYlz4GvDyQ7AvDUhYDP7E8-9w76UufnuIoJ9ZcRx8o12Ax4N1ciiuM4mrp5g8DIw-JjQ_mUEyCz2c4hItDsz0O6CZ7-bDryA3j-KrWxxDmVT88m9VvYr-H8HTLyo_7d4O_1tGBxmBjaZuq-40D3UBndYKGtSyGqXmmYZ2rBWMsml71CcLiulKPWVV5fB657OquIPTMlRFVRV1wX-gppCXvMWqlSX_q0ZEPXYj44krLDZPdeTkp5MfjpKY4MCHdgkxvB0Cy2hyeECY8vOQz-QHh98pQXE6vj0ctf8FaiCzNg">