bazelbuild / intellij

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

view_project_root causes sub-directories to be excluded #6492

Closed jdai8 closed 2 weeks ago

jdai8 commented 3 weeks ago

Description of the bug:

Setting view_project_root: true causes sub-directories to be excluded from the project view if they are not top-level directories.

Which category does this issue belong to?

No response

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

mkdir -p examples/java/greetings_project/foo/bar

directories:
  greeting_lib
  foo/bar

derive_targets_from_directories: true

view_project_root: true

foo/bar is not visible in the project view.

image

If I remove view_project_root, then foo/bar becomes visible as expected.

image

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

IntelliJ 2024.2 EAP

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

Java

What Bazel plugin version are you using?

2024.06.03.0.1-api-version-242

Have you found anything relevant by searching the web?

None

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

None