Skip to content

No source files found error #265

@fowles

Description

@fowles

When I run

$ bazel run @hedron_compile_commands//:refresh_all

with the setup

bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
git_override(
    module_name = "hedron_compile_commands",
    commit = "abb61a688167623088f8768cc9264798df6a9d10",
    remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
)

I get

assert source_file_candidates, f"No source files found in compile args: {compile_action.arguments}.\nPlease file an issue with this information!"
           ^^^^^^^^^^^^^^^^^^^^^^
AssertionError: No source files found in compile args: ['external/toolchains_llvm++llvm+llvm_toolchain/bin/cc_wrapper.sh', '-xc++-header', '-fsyntax-only', '-U_FORTIFY_SOURCE', '-U_FORTIFY_SOURCE', '-fstack-protector', '-fno-omit-frame-pointer', '-fcolor-diagnostics', '-Wall', '-Werror', '-Wextra', '-Wpedantic', '-Wno-c++2b-extensions', '-Wno-deprecated', '-Wno-gcc-compat', '-Wno-gnu-statement-expression-from-macro-expansion', '-Wno-missing-field-initializers', '-Wno-cast-function-type-mismatch', '-Wno-unguarded-availability-new', '-Wno-unused-parameter', '-Wno-unused-but-set-variable', '-Wself-assign', '-Wthread-safety', '-Wuninitialized', '-Wno-dollar-in-identifier-extension', '-faligned-allocation', '-std=c++20', '-stdlib=libc++', '-Xclang', '-fno-cxx-modules', '-mmacosx-version-min=15.2', '-MD', '-MF', 'bazel-out/darwin_arm64-fastbuild/bin/external/abseil-cpp+/absl/base/_objs/core_headers/attributes.h.d', '-iquote', 'external/abseil-cpp+', '-iquote', 'bazel-out/darwin_arm64-fastbuild/bin/external/abseil-cpp+', '-Wall', '-Wextra', '-Wc++98-compat-extra-semi', '-Wcast-qual', '-Wconversion', '-Wdeprecated-pragma', '-Wfloat-overflow-conversion', '-Wfloat-zero-conversion', '-Wfor-loop-analysis', '-Wformat-security', '-Wgnu-redeclared-enum', '-Winfinite-recursion', '-Winvalid-constexpr', '-Wliteral-conversion', '-Wmissing-declarations', '-Woverlength-strings', '-Wpointer-arith', '-Wself-assign', '-Wshadow-all', '-Wshorten-64-to-32', '-Wsign-conversion', '-Wstring-conversion', '-Wtautological-overlap-compare', '-Wtautological-unsigned-zero-compare', '-Wundef', '-Wuninitialized', '-Wunreachable-code', '-Wunused-comparison', '-Wunused-local-typedefs', '-Wunused-result', '-Wvla', '-Wwrite-strings', '-Wno-float-conversion', '-Wno-implicit-float-conversion', '-Wno-implicit-int-float-conversion', '-Wno-unknown-warning-option', '-DNOMINMAX', '--sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk', '-c', 'external/abseil-cpp+/absl/base/attributes.h', '-o', 'bazel-out/darwin_arm64-fastbuild/bin/external/abseil-cpp+/absl/base/_objs/core_headers/attributes.h.processed', '-no-canonical-prefixes', '-Wno-builtin-macro-redefined', '-D__DATE__="redacted"', '-D__TIMESTAMP__="redacted"', '-D__TIME__="redacted"'].
Please file an issue with this information!

Unfortunately, this is a closed source project, so I cannot give you a full repro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions