bazel-compile-commands-extractor icon indicating copy to clipboard operation
bazel-compile-commands-extractor copied to clipboard

[Self-Filed] For files compiled for multiple platforms, I'm seeing suggestions for a specific platform. Shouldn't I just see suggestions for what's accessible on all platforms?

Open cpsauer opened this issue 3 years ago • 2 comments

Suggested Workaround: You should, but you'll have to do this in your head for now. At least there's autocomplete for everything you want to use--the issue is that there's also autocomplete for things you shouldn't use.

Status: This'd be for clangd to fix. Filed an issue, but the fixes are likely fairly gnarly.

cpsauer avatar Nov 17 '21 07:11 cpsauer

I use --platform_suffix to prevent Bazel from rebuilding, but it seems that doesn't work with this commands extractor. https://stackoverflow.com/questions/67435744/bazel-separate-output-directories-for-different-build-options/71345166#71345166

aminya avatar Mar 04 '22 01:03 aminya

Hi, @aminya! Thanks for using this tool, for reaching out, and for looking through the existing issues. Sorry something's not working right for you.

I did a quick check with that flag on my repo. But I didn't see anything obviously wrong, so I wasn't sure what to fix. I'm hoping you'll help me help you, maybe with some more details in a new issue! (Since, at first glance, this seems to be about something separate from this issue.) Are you providing the flag in .bazelrc or in a call to refresh_compile_commands() (see readme), so it'll be used to analyze the builds?

cpsauer avatar Mar 04 '22 05:03 cpsauer