bazelbuild / intellij

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

Building with a different configuration removes the analysis data #6156

Open ahmedyarub opened 6 months ago

ahmedyarub commented 6 months ago

Description of the bug:

When we first sync the project everything is highlighted and resolved correctly. Once we build using run/debug/test configuration all the data is lost and we would have to resync. If we keep on building using the same configuration the sync data is kept but if we switch say from run to debug we would have to resync!

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.

1- Create a Bazel Go project. 2- Sync 3- bazel run ... 4- Sync 5- bazel debug ... 6- Sync

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

Goland 2024.13688.19

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

Go

What Bazel plugin version are you using?

Latest build from master branch

Have you found anything relevant by searching the web?

No

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

No response

ahmedyarub commented 6 months ago

We mitigated this problem by passing the --remote_download_all flag although we think that it would impact caching and overall build time. What do you think?