Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run-clang-tidy.py not found in your PATH (LLVM-349) #97

Closed
greentd opened this issue Jun 17, 2024 · 4 comments
Closed

run-clang-tidy.py not found in your PATH (LLVM-349) #97

greentd opened this issue Jun 17, 2024 · 4 comments
Labels
Resolution: Won't Do Status: Done Issue is done internally

Comments

@greentd
Copy link

greentd commented Jun 17, 2024

esp-clang Has been successfully installed,

D:\esptest\11\hello_world>clang --version
clang version 17.0.1 (https://github.com/espressif/llvm-project.git esp-17.0.1_20240419)
Target: riscv32-esp-unknown-elf
Thread model: posix
InstalledDir: D:/esp32/espressif/tools/esp-clang/esp-17.0.1_20240419/esp-clang/bin

run D:\esptest\hello_world>idf.py clang-check

but not generated warning.txt

Error message

****** Filter files and dirs ******
Files to be analysed:

  • D:\esptest\hello_world\main\hello_world_main.c


run-clang-tidy.py not found in your PATH

How to solve?

@github-actions github-actions bot changed the title run-clang-tidy.py not found in your PATH run-clang-tidy.py not found in your PATH (LLVM-349) Jun 17, 2024
@gerekon
Copy link
Collaborator

gerekon commented Jun 21, 2024

Starting from some version (maybe LLVM 16) run-clang-tidy.py is installed as run-clang-tidy.
It looks like the problem of idf.py script.
As a workaround you can rename run-clang-tidy to run-clang-tidy.py in your Clang toolchain installation.

@dobairoland
Copy link

@radimkarnis PTAL

@radimkarnis
Copy link

As a workaround you can rename run-clang-tidy to run-clang-tidy.py in your Clang toolchain installation.

clang-tidy-runner looks both for run-clang-tidy and run-clang-tidy.py, this shouldn't be an issue.

@greentd I have tried to reproduce the issue - and succeeded only if my installation was incomplete. Going through the install process again solves the issue. Can you please try that?

Should be as easy as:

  1. Running the ESP-IDF install script
  2. Running idf_tools.py install esp-clang
  3. Running the ESP-IDF export script

@gerekon
Copy link
Collaborator

gerekon commented Aug 23, 2024

Closing as we have not received feedback from the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Won't Do Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

5 participants