CLion doesn’t sync header files under includes
dirs from implementation_deps
#5149
Labels
awaiting-maintainer
Awaiting review from Bazel team on issues
lang: c++
C++ rules integration
P3
We're not considering working on this, but happy to review a PR. (No assignee)
product: CLion
CLion plugin
topic: sync
Issues related to the sync operation
type: bug
Description of the bug:
cc_library
(lib1
) that includes anothercc_library
(lib2
) viaimplementation_deps
lib2
exposeslib2.h
viaincludes
CLion will not find
lib2.h
when syncing files inlib1
As a result intellisense, go to definition, etc don’t work for
lib2.h
.A couple workarounds that fix this
implementation_deps
todeps
#include
to"include/lib2.h"
(e.g. not relying on the include dir)What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Here's a full workspace with the example above. Just open the
.bazelproject
and look atlib1.cc
.repro.tar.gz
Which Intellij IDE are you using? Please provide the specific version.
CLion 2023.1.2
What programming languages and tools are you using? Please provide specific versions.
C++
What Bazel plugin version are you using?
Bazel for CLion 2023.07.04.0.1-api-version-231
Have you found anything relevant by searching the web?
#3352 seems similar, but for
cc_binary
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: