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

Repository '@@intellij_aspect' is not defined #7204

Open
dhruvilshah3 opened this issue Dec 20, 2024 · 6 comments
Open

Repository '@@intellij_aspect' is not defined #7204

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

Comments

@dhruvilshah3
Copy link

Description of the issue. Please be specific.

When building a project, I am running into 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.

What's the simplest set of steps to reproduce this issue? Please provide an example project, if possible.

Building the project from IntelliJ fails

Version information

IdeaCommunity: 2024.3.1.1
Platform: Mac OS X 13.7.2
Bazel for IntelliJ plugin: 2024.12.03.0.1-api-version-243
Bazel: 7.4.0

@mai93
Copy link
Collaborator

mai93 commented Dec 24, 2024

can you share the build command that the plugin tries to run?

@gradients-rogo
Copy link

I'm encountering the same issue. The command looks something like this:
bazel build --tool_tag=ijwb:IDEA:ultimate --target_pattern_file /home/joeyhkim/Documents/.../.ijwb/targets/targets-11123095387424115210 --keep_going --color=yes --progress_in_terminal_title=no --inject_repository=intellij_aspect=/home/joeyhkim/.local/share/JetBrains/IntelliJIdea2024.3/ijwb/aspect --inject_repository=intellij_aspect_template=/home/joeyhkim/Documents/GitHub/.../.ijwb/.idea/aspect --inject_repository=intellij_aspect=/home/joeyhkim/.local/share/JetBrains/IntelliJIdea2024.3/ijwb/aspect --inject_repository=intellij_aspect_template=/home/joeyhkim/Documents/GitHub/.../.ijwb/.idea/aspect --noexperimental_run_validations --aspects=@intellij_aspect//:intellij_info_bundled.bzl%intellij_info_aspect --output_groups=intellij-resolve-java-direct-deps,intellij-info-generic,intellij-info-java-direct-deps --build_event_binary_file=/tmp/intellij-bep-9c9f2f4d-d662-416b-aa7a-0ddd1b220bec --nobuild_event_binary_file_path_conversion --build_event_publish_all_actions --curses=no --

@gradients-rogo
Copy link

Manually adding these two flags to my build command fixes the issue:

--override_repository=intellij_aspect=/home/joeyhkim/.local/share/JetBrains/IntelliJIdea2024.3/ijwb/aspect
--override_repository=intellij_aspect_template=/home/joeyhkim/Documents/.../.ijwb/.idea/aspect

@gradients-rogo
Copy link

Rolling the plugin back to 2024.11.19.0.2-api-version-243 fixes the issue for me.

@mai93
Copy link
Collaborator

mai93 commented Jan 8, 2025

@gradients-rogo was it also on mac? What version of Bazel are you using?

@vlnikolaiev
Copy link

I have the same issue with bazel of 8.0.0 version

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

8 participants