espressif / clang-tidy-runner

MIT License
9 stars 5 forks source link

`idf.py clang-check` opens `run-clang-tidy.py` instead of running it (RDT-244) #16

Closed xobs closed 2 years ago

xobs commented 2 years ago

On Windows, the command idf.py clang-check opens run-clang-tidy.py instead of running it. This is because it appears to execute the command directly instead of passing it through a Python interpreter.

The documentation at https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-clang-tidy.html does not specify any required platform, and seems to indicate that Windows should be supported.

It correctly runs run-clang-tidy.py if I specify that it should use python to run the script:

idf.py clang-check --run-clang-tidy-py "python $HOME\esp\esp-idf\tools\run-clang-tidy.py"