Fix bazel refresh_compile_commands#3729
Merged
Merged
Conversation
StarrryNight
approved these changes
May 21, 2026
Andrewyx
reviewed
May 21, 2026
Contributor
Andrewyx
left a comment
There was a problem hiding this comment.
Nice catch, can you make sure this works on both thunderscope & the robots as well?
Member
Author
@Andrewyx I'm a bit confused. This command just generates a compile_commands.json file, primarily for lsp support when using neovim. Not sure what working on thunderscope/robots would mean |
williamckha
approved these changes
May 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The
bazel run //:refresh_compile_commandscommand is currently not working on MacOS due to a bug hedronvision/bazel-compile-commands-extractor#199 that doesn't allow targets with only header files. hedronvision/bazel-compile-commands-extractor#219 fixes that issue but has not been merged because of some stability reason for hedronvision's internal usage of the tool. So, this PR just changes the source of the hedron_compile_commands dependency in MODULE.bazel to a fork which contains the fix for this bug. NOTE: I have no idea why it is only an issue on MacOS; it seems like it should be an issue on Ubuntu as well.LOGS BEFORE FIX:
LOGS AFTER FIX:
Testing Done
bazel run //:refresh_compile_commandsand compile_commands.json was generated successfully Ubuntu but not MacOS.bazel run //:refresh_compile_commandsand compile_commands.json was generated successfully on both MacOS and Ubuntu.Resolved Issues
(didn't make an issue for this small fix)
Length Justification and Key Files to Review
N/A
Review Checklist
It is the reviewers responsibility to also make sure every item here has been covered
.hfile) should have a javadoc style comment at the start of them. For examples, see the functions defined inthunderbots/software/geom. Similarly, all classes should have an associated Javadoc comment explaining the purpose of the class.TODO(or similar) statements should either be completed or associated with a github issue