bazelbuild / intellij

IntelliJ plugin for Bazel projects
https://ij.bazel.build/
Apache License 2.0
753 stars 297 forks source link

CLion works with headers but not sources #6479

Closed hongchaodeng closed 3 weeks ago

hongchaodeng commented 3 weeks ago

Description of the bug:

Context

Here's my environment:

I'm importing Ray source code: https://github.com/ray-project/ray

Here's my .bazelproject:

directories:
  # Add the directories you want added as source here
  # By default, we've added your entire workspace ('.')
  .
  -external
  -java
  -cpp
  -rllib
  -rllib_contrib
  -dashboard
  -python

derive_targets_from_directories: true

targets:
  -//:chaos_redis_store_client_test
  -//:mutable_object_provider_test
  -//:mutable_object_test
  -//src/ray/common/test:memory_monitor_test

test_sources:
  src/ray/*/test/*

Issue

After importing, all header files work:

src/ray/raylet/raylet.h:

image

But source files don't work:

src/ray/raylet/raylet.cc:

image

Can you help it? Let me know if you need additional information from me.

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.

Git clone Ray: https://github.com/ray-project/ray

Import bazel project and use the above view file.

Which Intellij IDE are you using? Please provide the specific version.

No response

What programming languages and tools are you using? Please provide specific versions.

No response

What Bazel plugin version are you using?

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

hongchaodeng commented 3 weeks ago

I find this duplicate to https://github.com/bazelbuild/intellij/issues/6384 Closing