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

Build error while synching Java Project during Plugin Testing #7148

Open
satyanandak opened this issue Dec 10, 2024 · 0 comments · May be fixed by #7161
Open

Build error while synching Java Project during Plugin Testing #7148

satyanandak opened this issue Dec 10, 2024 · 0 comments · May be fixed by #7161
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: IntelliJ IntelliJ plugin Release Blocker issue is blocking the plugin release type: bug

Comments

@satyanandak
Copy link
Contributor

Description of the bug:

While Testing Java Project , build is failing during sync

ERRROR:
Error:error loading package 'greeting_lib': Unable to find package for @@[unknown repo 'contrib_rules_jvm' requested from @@]//java:defs.bzl: The repository '@@[unknown repo 'contrib_rules_jvm' requested from @@]' could not be resolved: No repository visible as '@contrib_rules_jvm' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration.
Error:error loading package 'greeting_lib': Unable to find package for @@[unknown repo 'contrib_rules_jvm' requested from @@]//java:defs.bzl: The repository '@@[unknown repo 'contrib_rules_jvm' requested from @@]' could not be resolved: No repository visible as '@contrib_rules_jvm' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration.
Error:ANALYSIS_FAILURE: //greeting_lib:greeting_lib
error loading package 'greeting_lib': Unable to find package for @@[unknown repo 'contrib_rules_jvm' requested from @@]//java:defs.bzl: The repository '@@[unknown repo 'contrib_rules_jvm' requested from @@]' could not be resolved: No repository visible as '@contrib_rules_jvm' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration.
Error:error loading package 'greeting_lib': Unable to find package for @@[unknown repo 'contrib_rules_jvm' requested from @@]//java:defs.bzl: The repository '@@[unknown repo 'contrib_rules_jvm' requested from @@]' could not be resolved: No repository visible as '@contrib_rules_jvm' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration. and referenced by '//hello:hello_greeter'
Error:command succeeded, but not all targets were analyzed
Error:Build did NOT complete successfully
Error:error loading package 'greeting_lib': Unable to find package for @@[unknown repo 'contrib_rules_jvm' requested from @@]//java:defs.bzl: The repository '@@[unknown repo 'contrib_rules_jvm' requested from @@]' could not be resolved: No repository visible as '@contrib_rules_jvm' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration.
Error:error loading package 'greeting_lib': Unable to find package for @@[unknown repo 'contrib_rules_jvm' requested from @@]//java:defs.bzl: The repository '@@[unknown repo 'contrib_rules_jvm' requested from @@]' could not be resolved: No repository visible as '@contrib_rules_jvm' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration. and referenced by '//hello:hello_greeter'
Error:command succeeded, but not all targets were analyzed
Error:Build did NOT complete successfully

Which category does this issue belong to?

Intellij

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

1> Open a Java project in intelliJ IDE
2> Click on the sync button
3> Build errors are shown in the logs.

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

2024.2.5 & 2024.3

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

Java

What Bazel plugin version are you using?

2024.12.03.0.2-api-version-242 & 2024.12.03.0.2-api-version-243

Have you found anything relevant by searching the web?

No response

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

image

@satyanandak satyanandak added type: bug awaiting-maintainer Awaiting review from Bazel team on issues labels Dec 10, 2024
@github-actions github-actions bot added the product: IntelliJ IntelliJ plugin label Dec 10, 2024
@mai93 mai93 added the Release Blocker issue is blocking the plugin release label Dec 10, 2024
@mai93 mai93 linked a pull request Dec 11, 2024 that will close this issue
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 Release Blocker issue is blocking the plugin release type: bug
Projects
Status: Untriaged
Development

Successfully merging a pull request may close this issue.

3 participants