Open Kayaking-zh opened 5 months ago
Uh oh. Any chance it works with a newer version of Bazel? (haven't seen this one before and am worried it might be an underlying bazel issue, since that shouldn't fail)
To get more info, any chance you'd be down to just quickly monkey patch refresh_compile_commands.py to print out some more info? (should be under external/. Just commend out the capture of stderr=subprocess.PIPE)
Thanks for reporting--and sorry about the rough edge.
Chris
I tried bazel 7.1.1 and it still didn't work. Then I comment out stderr=subprocess.PIPE and got lots of error message as following.
FATAL: Exiting because the lock is held and --noblock_for_lock was given.
Another command holds the client lock:
pid=27413
owner=client
cwd=/home/project
tty=/dev/pts/8
It's because I have --noblock_for_lock
in .bazelrc
, after i delete it, all works.
I use bazel 6.1.1 with bzlmod, when I execute
bazel run :refresh_compile_commands
, it fails with following traceback but no error message. I don't know why and what could I do.If I run
bazel dump --action_cache
directly, it succeeds. I use git 2.45.2, gcc 8.3.1 and bazel-compile-commands-extractor a14ad3a64e7bf398ab48105aaa0348e032ac87f8