Comments (5)
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.
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.
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.
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.
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)
- nvcc fatal : Cannot find compiler 'cl.exe' in PATH HOT 4
- Relevant arguments are lost by the `bazel aquery ...` portion of compile command generation HOT 6
- protobufs not working in clangd HOT 1
- Suggested integration with VSCode HOT 1
- refreshAll failed to find C++ standard library if I specify '--sysroot' HOT 5
- clangd failed to find compilation database for dependency code HOT 6
- name 'module_extension' is not defined when used in Tensorflow-1.15.5 version HOT 4
- Linker error - collect2: fatal error: cannot find 'ld' HOT 1
- YCM reporting errors not present when code is actually built HOT 9
- sysroot handling is wrong in certain cases HOT 3
- cuda_rules triggers assert "Something went wrong in makefile parsing to get headers. The target should be an object file."
- Third party library library from Bazel (sub)repository is not recognized HOT 3
- 'PurePosixPath' object has no attribute 'is_relative_to'
- When a giant project already has a folder called external in the root folder HOT 1
- Select usage example for refresh_compile_commands
- .o files appear in the current directory HOT 1
- When using the bazel module, how to define the refresh_command in BUILD HOT 12
- Suggestion: Custom Bazel binary path/name HOT 1
- Help us help this project by adopting a standard license 😁 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bazel-compile-commands-extractor.