Giter Site home page Giter Site logo

Comments (5)

cpsauer avatar cpsauer commented on June 9, 2024

Hey @LittleCuteBug! Thanks for giving the tool a whirl. This is...a very strange one. Those are internal bazel tools failing to have been instantiated properly. Do things work properly if you remove the --output_base bazel-cache, add it to your bazelrc, or also pass it to our subcommands by appending -- --output_base bazel-cache (see the flag configuration section of the readme for more.)? I'm guessing the problem is that the tool is getting a different output base at runtime from compile time.

from bazel-compile-commands-extractor.

LittleCuteBug avatar LittleCuteBug commented on June 9, 2024

Hi @cpsauer, I have also tried the .bazelrc and -- --output_base bazel-cache and still have the same error.
Without the --output_base bazel-cache, the bazel run @hedron_compile_commands//:refresh_all works fine for me.

I'm guessing the problem is that the tool is getting a different output base at runtime from compile time.

Yes, I think that is the problem too.

from bazel-compile-commands-extractor.

LittleCuteBug avatar LittleCuteBug commented on June 9, 2024

Hi @cpsauer, I think I found the reason, it's because I set the output_base inside the workspace, so the hedron_compile_commands tried to check in that directory also.
Is there any way to exclude that directory?

from bazel-compile-commands-extractor.

cpsauer avatar cpsauer commented on June 9, 2024

Oh! interesting. Sounds like all works fine if the output_base is outside the workspace? If so, this really seems like a Bazel bug...and worth reporting to them.
To help scope:

  • Are you indeed on Windows?
  • Does that aquery command (and simpler versions of it) also fail with the output_base set? (I'm trying to see if we can remove this tool from the equation.)
  • Excluding: Might a .bazelignore work? https://bazel.build/run/bazelrc#bazel-behavior-files

from bazel-compile-commands-extractor.

LittleCuteBug avatar LittleCuteBug commented on June 9, 2024

yes, I have managed to work with the combination of startup --output_base=bazel-cache in the .bazelrc and bazel-cache in the .bazelignore file.
A small interesting issue is the query command used in the hedron_compile_commands only takes effect of the .bazelrc when the hedron_compile_commands repo is imported by git_repository rule or local_repository rule. if I included it with http_archive, the .bazelrc config seems not to take effect.

from bazel-compile-commands-extractor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.