Skip to content

CLion cannot resolve headers included from other headers #510

@brownry1986

Description

@brownry1986

When opening a header file in CLion that includes a header in a different package, the included header cannot be resolved. The included header is underlined in red and trying to go to declaration produces the "cannot find declaration to go to" message.

screen shot 2019-02-13 at 5 39 09 pm

The project syncs successfully and can be built from the command line with no issues.

I have recreated this in a sample project available here: https://github.com/brownry1986/ClionBazelHeaderSymlinks

Below is my version information:
Operating System: macOS 10.14.2
Bazel Version: 0.22.0-homebrew
CLion Version: 2018.3.4 Build #CL-183.5429.37
Bazel Plugin Version: v2019.01.28.0.2

Metadata

Metadata

Assignees

Labels

P3We're not considering working on this, but happy to review a PR. (No assignee)lang: c++C++ rules integrationos: macosmacOS supportproduct: CLionCLion plugintype: bug

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions