Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dkashyn-sfdc opened this issue Jun 11, 2024 · 0 comments · Fixed by #6537
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues lang: java Java rules integration P1 I'll work on this now. (Assignee required) product: IntelliJ IntelliJ plugin topic: sync Issues related to the sync operation type: bug

Comments

@dkashyn-sfdc
Copy link
Contributor

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

@dkashyn-sfdc dkashyn-sfdc added awaiting-maintainer Awaiting review from Bazel team on issues type: bug labels Jun 11, 2024
@sgowroji sgowroji added product: IntelliJ IntelliJ plugin lang: java Java rules integration topic: sync Issues related to the sync operation labels Jun 11, 2024
@sgowroji sgowroji assigned mai93 and unassigned sgowroji, iancha1992 and satyanandak Jun 11, 2024
@mai93 mai93 assigned tpasternak and unassigned mai93 Jun 11, 2024
@tpasternak tpasternak added the P1 I'll work on this now. (Assignee required) label Jun 28, 2024
tpasternak pushed a commit to tpasternak/bazel-intellij that referenced this issue Jun 28, 2024
tpasternak pushed a commit to tpasternak/bazel-intellij that referenced this issue Jun 28, 2024
tpasternak pushed a commit to tpasternak/bazel-intellij that referenced this issue Jun 28, 2024
tpasternak pushed a commit to tpasternak/bazel-intellij that referenced this issue Jun 28, 2024
tpasternak pushed a commit to tpasternak/bazel-intellij that referenced this issue Jul 1, 2024
tpasternak pushed a commit that referenced this issue Jul 4, 2024
#6537)

* fix: Resolve query failure when there is a large number of files in the Working Set

closes #6478

* Use NIO where possible

* Apply review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-maintainer Awaiting review from Bazel team on issues lang: java Java rules integration P1 I'll work on this now. (Assignee required) product: IntelliJ IntelliJ plugin topic: sync Issues related to the sync operation type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants