Bazel cross-compiled project breaks CLion source code comprehension #7164
Labels
awaiting-maintainer
Awaiting review from Bazel team on issues
product: CLion
CLion plugin
type: feature request
Description of the bug:
I have an embedded project, cross compiled (host: Windows 11, target: armv8-m (STM32U575)) using Bazel platforms.
However, when I load the project in CLion, I am unable to do the following:
Which category does this issue belong to?
CLion
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Here's a small project I created to try to reproduce this:
MinimalProject.zip
The project builds just fine for me when I build manually using this:
bazel build --platforms //platform:u575 //:hello-world.elf
. Note: it also builds just fine in CLion. However, I am unable to do the above-mentioned things in C source files (reformat, "go to definition", highlight matching curly braces, fold code).Example of "Go to definition of

mylib_hello
":Which Intellij IDE are you using? Please provide the specific version.
CLion 2024.3.1
What programming languages and tools are you using? Please provide specific versions.
C, C++, Bazel 7.4.1
What Bazel plugin version are you using?
2024.11.19.0.3-api-version-243
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
Running an incremental sync produces this output:
The text was updated successfully, but these errors were encountered: