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

Sync Project with BUILD files fails with Error: Unrecognized option: --aspects_parameters=optimize_building_jars=enabled #6650

Closed
alex-rozlyvanov opened this issue Aug 20, 2024 · 2 comments · Fixed by #6653
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues type: bug

Comments

@alex-rozlyvanov
Copy link

Description of the bug:

OS: macOS 14.6.1, Apple M3 Pro
Details:
Using Bazelisk to manage bazel cli version.
Project Bazel version: 5.4.0

I am trying to sync and run application with Bazel in Intellij IDEA.
I am able to build and run application using terminal but it does not work with Intellij IDEA.

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.

Intellij IDEA Tool Bar -> Bazel - > Sync -> Sync Project with BUILD files

Sync task output:

Command: bazel build --tool_tag=ijwb:IDEA:ultimate "--override_repository=intellij_aspect=/Users/oleksandr.rozlyvanov/Library/Application Support/JetBrains/IntelliJIdea2024.2/plugins/ijwb/aspect" --keep_going --build_event_binary_file=/var/folders/1l/cqh02nws4bvf8xd9qrkzl11m0000gn/T/intellij-bep-5fa41135-b8fc-40c6-a39c-d234e7377c46 --nobuild_event_binary_file_path_conversion --curses=no --color=yes --progress_in_terminal_title=no --noexperimental_run_validations --aspects=@intellij_aspect//:intellij_info_bundled.bzl%intellij_info_aspect --aspects_parameters=optimize_building_jars=enabled --output_groups=intellij-resolve-java-direct-deps,intellij-info-generic,intellij-info-java-direct-deps -- //backend:app_lib //backend:java_deps //backend:sage_integration_lib //common/accounting-client-lib:java_deps //common/accounting-model-lib:java_deps //com...
ERROR: --aspects_parameters=optimize_building_jars=enabled :: Unrecognized option: --aspects_parameters=optimize_building_jars=enabled

image

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

Build #IU-242.20224.387, built on August 13, 2024 Runtime version: 21.0.3+13-b509.4 aarch64 (JCEF 122.1.9) VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

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

Bazelisk (bazel)

What Bazel plugin version are you using?

2024.07.30.0.1-api-version-242

Have you found anything relevant by searching the web?

No response

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

No response

@alex-rozlyvanov alex-rozlyvanov added awaiting-maintainer Awaiting review from Bazel team on issues type: bug labels Aug 20, 2024
@hisener
Copy link

hisener commented Aug 20, 2024

See #5515 (comment).

@tpasternak
Copy link
Contributor

We'll provide a hotfix for that

tpasternak pushed a commit to tpasternak/bazel-intellij that referenced this issue Aug 20, 2024
mai93 pushed a commit that referenced this issue Aug 20, 2024
#6653)

* fix: Sync fails with Unrecognized option: --aspects_parameters for Bazel 5

closes #6650

* fix aswb build
mai93 pushed a commit that referenced this issue Aug 20, 2024
#6653)

* fix: Sync fails with Unrecognized option: --aspects_parameters for Bazel 5

closes #6650

* fix aswb build

(cherry picked from commit ba01cc1)
mai93 pushed a commit that referenced this issue Aug 20, 2024
#6653)

* fix: Sync fails with Unrecognized option: --aspects_parameters for Bazel 5

closes #6650

* fix aswb build

(cherry picked from commit ba01cc1)
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 type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants