bazelbuild / intellij

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

When working set is too large Bazel Sync is failing with the error "Argument list too long" #6478

Closed dkashyn-sfdc closed 4 days ago

dkashyn-sfdc commented 3 weeks ago

Description of the bug:

Error:Cannot run program....bazel" (in directory "/...."): error=7, Argument list too long
Error:Querying blaze targets building project source files failed.

With:

Computing VCS working set...
.....
  (and 3296 more)

12:59:31    Initial directory update started
12:59:47    Initial directory update finished
12:59:47    Sync started
13:00:02    Sync finished with errors

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. Have a huge working set (one of possible cases is when your local is way behind upstream).
  2. Run Bazel Sync

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

Intellij 2024.1.2

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

Java

What Bazel plugin version are you using?

2024.05.21.0.1-api-version-241

Have you found anything relevant by searching the web?

No response

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

No response