-
Notifications
You must be signed in to change notification settings - Fork 322
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
Bug: workerd compile_commands.json generation is flakey #506
Comments
I'm just going to throw this in here: I really don't like our compile commands generator at all.
I think we might be better served by a simpler compiler commands generator that does not attempt to exactly match what Bazel will do. Instead, it should manually set up |
A step towards retiring the problematic compile_commands.json. WIP: part macOS, part Linux, no part Windows. Bug: #506
A step towards retiring the problematic compile_commands.json. WIP: part macOS, part Linux, no part Windows. Bug: #506
A step towards retiring the problematic compile_commands.json. WIP: part macOS, part Linux, no part Windows. Bug: #506
A step towards retiring the problematic compile_commands.json. WIP: part macOS, part Linux, no part Windows. Bug: #506
This change moves to using compile_flags.txt with clangd rather than compile_commands.json. o Adds compile_flags.txt. o Drops support for generating compile_commands.json with Bazel. o Add script to create the ${workspaceFolder}/external/ symlink that compile_flags.txt uses. Bug: #506
This change moves to using compile_flags.txt with clangd rather than compile_commands.json. o Adds compile_flags.txt. o Drops support for generating compile_commands.json with Bazel. o Add script to create the ${workspaceFolder}/external/ symlink that compile_flags.txt uses. Bug: #506
This change moves to using compile_flags.txt with clangd rather than compile_commands.json. o Adds compile_flags.txt. o Drops support for generating compile_commands.json with Bazel. o Add script to create the ${workspaceFolder}/external/ symlink that compile_flags.txt uses. Bug: #506
This change moves to using compile_flags.txt with clangd rather than compile_commands.json. o Adds compile_flags.txt. o Drops support for generating compile_commands.json with Bazel. o Add script to create the ${workspaceFolder}/external/ symlink that compile_flags.txt uses. Bug: #506
This change moves to using compile_flags.txt with clangd rather than compile_commands.json. o Adds compile_flags.txt. o Drops support for generating compile_commands.json with Bazel. o Add script to create the ${workspaceFolder}/external/ symlink that compile_flags.txt uses. Bug: #506
This change moves to using compile_flags.txt with clangd rather than compile_commands.json. o Adds compile_flags.txt. o Drops support for generating compile_commands.json with Bazel. o Add script to create the ${workspaceFolder}/external/ symlink that compile_flags.txt uses. Bug: #506
Minor #include re-orderings for clangd considering headers as standalone files. Bug: #506
This change moves to using compile_flags.txt with clangd rather than compile_commands.json. o Adds compile_flags.txt. o Drops support for generating compile_commands.json with Bazel. o Add script to create the ${workspaceFolder}/external/ symlink that compile_flags.txt uses. Bug: #506
Minor #include re-orderings for clangd considering headers as standalone files. Bug: #506
Replaced use of |
Generating
compile_commands.json
in workerd is non-deterministic.This bug just highlights the problem and some initial observations.
Workerd is using https://github.com/hedronvision/bazel-compile-commands-extractor to generate
compile_commands.json
Invoking
bazel run //:refresh_compile_commands
usually succeeds if invoked after first runningbazel clean --expunge; bazel test //...
. However, if launched at arbitrary times, invocation logs errors about missing files and defines.Here is an example in my current tree:
A partial fix for the errors above is to invoke
bazel build -c fastbuild //...
and then try again to leave just the warning:The warning message likely points the way to a fix.
The text was updated successfully, but these errors were encountered: