You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLion is not able to resolve the headers for Bazel mod dependencies. Whenever I try to navigate to the header, it simply fails to do so.
However, the same version of the repo with WORKSPACE files is working fine with CLion and able to navigate the headers and symbols just fine.
I am using Bazel version 7.4.1. I tried to debug by checking the compiler information for hello_test.cc (see repro information below), and only difference I found was the ~ character at the end of the module names in case of bazel mod setup.
Here is the snip of Header Search paths between WORKSPACE (working) and Bazel mod (not working). Let me know if you want me to share the full compiler information printed out by the CLion.
The latest commit (d4018e85a8764c3adcf21074b78089b5f5dc806b) contains the setup based on bazel mod. Previous commit (b4803b41ab3d58c503265148e5a7d3fd2a8e46d3) contains the setup based on WORKSPACE.
I had to upgrade googletest binary to 1.15.2 in both of the cases. (It was primarily to fix the issue with bazel 7.4.1).
Which Intellij IDE are you using? Please provide the specific version.
CLion 2024.2.3 Build #CL-242.23726.125, built on October 27, 2024
What programming languages and tools are you using? Please provide specific versions.
C++ gcc version 11.2.0
What Bazel plugin version are you using?
Bazel for CLion 2024.10.22.0.1-api-version-242
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered:
Description of the bug:
CLion is not able to resolve the headers for Bazel mod dependencies. Whenever I try to navigate to the header, it simply fails to do so.
However, the same version of the repo with WORKSPACE files is working fine with CLion and able to navigate the headers and symbols just fine.
I am using Bazel version 7.4.1. I tried to debug by checking the compiler information for hello_test.cc (see repro information below), and only difference I found was the
~
character at the end of the module names in case of bazel mod setup.Here is the snip of Header Search paths between WORKSPACE (working) and Bazel mod (not working). Let me know if you want me to share the full compiler information printed out by the CLion.
WORKSPACE
Bazel Mod
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.
Use https://github.com/abseil/abseil-hello/tree/master/bazel-hello repo to reproduce the issue.
The latest commit (d4018e85a8764c3adcf21074b78089b5f5dc806b) contains the setup based on bazel mod. Previous commit (b4803b41ab3d58c503265148e5a7d3fd2a8e46d3) contains the setup based on WORKSPACE.
I had to upgrade googletest binary to 1.15.2 in both of the cases. (It was primarily to fix the issue with bazel 7.4.1).
Which Intellij IDE are you using? Please provide the specific version.
CLion 2024.2.3 Build #CL-242.23726.125, built on October 27, 2024
What programming languages and tools are you using? Please provide specific versions.
C++ gcc version 11.2.0
What Bazel plugin version are you using?
Bazel for CLion 2024.10.22.0.1-api-version-242
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: