-
Notifications
You must be signed in to change notification settings - Fork 118
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
FileNotFoundError: 'compile_commands.json'
in CI
#105
Comments
Never mind, this was an error on my side: compile_commands.json was a symlink to build/compile_commands, which did not exist in CI. |
Glad you got through it, and thanks for your interest in using the tool @lalten. Just for my learning and understanding: What's motivating the symlink? |
It's from a CMake build that we're transitioning away from currently |
keith
added a commit
to keith/bazel-compile-commands-extractor
that referenced
this issue
May 30, 2024
This fix existing as a symlink to a cmake directory seems like a pretty common use case, and the error when it fails to write is pretty inscrutable. Fixes hedronvision#105
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to set up the compile_commands.json generation in GitHub Actions CI to feed it to clang-tidy in the next step. But it looks like this line:
bazel-compile-commands-extractor/refresh.template.py
Line 1053 in 19808d6
fails if the file does not exist yet:
The text was updated successfully, but these errors were encountered: