bazel-compile-commands-extractor
bazel-compile-commands-extractor copied to clipboard
Goal: Enable awesome tooling for Bazel users of the C language family.
Bazel's [aquery](https://bazel.build/query/aquery) functions can combine many interesting usage. In my case, I am writing an extension integrating with compile_commands based on file granularity and I need a file filter from...
First of all, thank you for building this wonderful tool and enabling integration with YouCompleteMe for Bazel. However, I am running into a few issues. YouCompleteMe, using the `compile_commands.json` generated...
The external folder already contains some git repos. I followed the README.md, and I am not sure whether I did everything correctly. I used WORKSPACE, so I adapted accordingly in...
My environment has python 3.8, and when I run the `refresh_compile_commands` target, I get an error. The target is configured as: ``` refresh_compile_commands( name = "refresh_compile_commands", exclude_external_sources = True, exclude_headers...
I'm using the cuda_rules https://github.com/bazel-contrib/rules_cuda project to generate a cuda_library target. Running :refresh_all triggers the assert here https://github.com/hedronvision/bazel-compile-commands-extractor/blob/4689147cf4b1c2d507fd8bbb8eb748a7bbaad4ef/refresh.template.py#L176C45-L176C102. The function documentation mentions this clang or gcc. `Parse a set of...
when run with `bazel --output_base bazel-cache run @hedron_compile_commands//:refresh_all` I got the following error, can anyone provide help? ``` ERROR: error loading package 'bazel-hello_world/external/bazel_tools/src/conditions': Every .bzl file must have a corresponding...
For some strange reason I am getting linking errors while running `bazel run //:refresh_compile_commands`. Prima facie it looks that I am doing something blatantly silly/stupid. Would really appreciate if someone...
Bazel version: 0.26.1 ERROR: /root/.cache/bazel/_bazel_root/80709a9f7d7f227d2bcf9e421ac096e0/external/hedron_compile_commands/workspace_setup.bzl:28:37: name 'module_extension' is not defined ERROR: error loading package '': Extension 'workspace_setup.bzl' has errors ERROR: error loading package '': Extension 'workspace_setup.bzl' has errors
I am working on istio wasm-cpp extensions project. And I am using the following bazel configuration: ``` # Hedron's Compile Commands Extractor for Bazel # https://github.com/hedronvision/bazel-compile-commands-extractor http_archive( name = "hedron_compile_commands",...
Thanks for the tool. I have succeed to generate compilation database for [envoy](https://github.com/envoyproxy/envoy) and it works great. But when using envoy as a library to build my customized proxy, clangd...