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

Compile Folder action fails: Repository '@@intellij_aspect' is not defined #7131

Open
evis opened this issue Dec 6, 2024 · 2 comments
Open
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: IntelliJ IntelliJ plugin type: bug

Comments

@evis
Copy link

evis commented Dec 6, 2024

Description of the bug:

When I attempt to use the "Compile Folder" action with the latest version of the plugin (2024.11.19.0.1-api-version-242), it fails with the following error:

ERROR: Unable to find package for @@intellij_aspect//:intellij_info_bundled.bzl: The repository '@@intellij_aspect' could not be resolved: Repository '@@intellij_aspect' is not defined.

This issue did not occur with the previous version (2024.09.24.0.2-api-version-242).

The key difference seems to be that the --override_repository flag is no longer passed with the new version. Here's a comparison of the Bazel build commands:

Command with the previous version (works):

bazel build --tool_tag=ijwb:IDEA:community --override_repository='intellij_aspect=/Users/vere10/Library/Application Support/JetBrains/IdeaIC2024.2/plugins/ijwb/aspect' --target_pattern_file=/Users/vere10/verticals-backend/.ijwb/targets/targets-9859192668652861174 --keep_going --build_event_binary_file=/var/folders/rw/1t27mg_52f76gczdd9gt52fj3h788y/T/intellij-bep-5a883ba1-2da1-416c-bc1a-fc05596f2d16 --nobuild_event_binary_file_path_conversion --curses=no --color=yes --noprogress_in_terminal_title --norun_validations --aspects=@@intellij_aspect//:intellij_info_bundled.bzl%intellij_info_aspect --output_groups=intellij-compile-java,intellij-compile-py

Command with the latest version (fails):

bazel build --tool_tag=ijwb:IDEA:community --target_pattern_file=/Users/vere10/verticals-backend/.ijwb/targets/targets-9240279939158111114 --keep_going --curses=no --color=yes --noprogress_in_terminal_title --norun_validations --aspects=@@intellij_aspect//:intellij_info_bundled.bzl%intellij_info_aspect --output_groups=intellij-compile-java,intellij-compile-py --build_event_binary_file=/var/folders/rw/1t27mg_52f76gczdd9gt52fj3h788y/T/intellij-bep-64ab9a9c-3184-459a-9d21-1f69e0d85011 --nobuild_event_binary_file_path_conversion --build_event_publish_all_actions

The absence of the --override_repository flag in the latest version seems to be causing this issue, as the required repository @@intellij_aspect cannot be resolved.

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. Use the latest plugin version (2024.11.19.0.1-api-version-242).
  2. Run the "Compile Folder" action.
  3. Observe the error.

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

2024.2.0.2 (Community Edition), Build #IC-242.20224.419

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

Java 21

What Bazel plugin version are you using?

2024.11.19.0.1-api-version-242

Have you found anything relevant by searching the web?

#7048 — this might be related, but I’m not sure
#6705 — this describes a similar issue

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

No response

@evis evis added awaiting-maintainer Awaiting review from Bazel team on issues type: bug labels Dec 6, 2024
@satyanandak satyanandak added the product: IntelliJ IntelliJ plugin label Dec 9, 2024
@mai93 mai93 assigned tpasternak and unassigned mai93 Dec 9, 2024
@evis
Copy link
Author

evis commented Dec 13, 2024

@tpasternak

@tpasternak tpasternak removed their assignment Dec 13, 2024
@mai93
Copy link
Collaborator

mai93 commented Dec 13, 2024

I think this is fixed with #7135

@mai93 mai93 self-assigned this Dec 13, 2024
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 product: IntelliJ IntelliJ plugin type: bug
Projects
Status: Untriaged
Development

No branches or pull requests

6 participants