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

[BUG]: Android Studio Bazel plugin fails to sync at head #5658

Closed
BenHenning opened this issue Jan 21, 2025 · 0 comments · Fixed by #5659
Closed

[BUG]: Android Studio Bazel plugin fails to sync at head #5658

BenHenning opened this issue Jan 21, 2025 · 0 comments · Fixed by #5659
Assignees
Labels
bug End user-perceivable behaviors which are not desirable. Impact: High High perceived user impact (breaks a critical feature or blocks a release). Work: Low Solution is clear and broken into good-first-issue-sized chunks.

Comments

@BenHenning
Copy link
Member

Describe the bug

When f3c6dff with Android Studio Jellyfish 2023.3.1 Patch 2 using the Bazel for Android Studio plugin version 2024.08.27-aswb.0.3-api-version-233, the following error occurs:

Error:at /home/ben/.cache/bazel/_bazel_ben/6b60c6673fa77d2c9a5f35d8fae76752/external/intellij_aspect/intellij_info_bundled.bzl:4:5: initialization of module 'intellij_info_impl_bundled.bzl' failed

With the specific build shard failures:

Command: bazel build --tool_tag=ijwb:AndroidStudio --keep_going --noexperimental_run_validations --build_event_binary_file=/tmp/intellij-bep-8de90d35-eaeb-44e1-961c-5fbf9fc05894 --nobuild_event_binary_file_path_conversion --curses=no --color=yes --progress_in_terminal_title=no --aspects=@@intellij_aspect//:intellij_info_bundled.bzl%intellij_info_aspect --override_repository=intellij_aspect=/home/ben/.local/share/Google/AndroidStudio2023.3/aswb/aspect --output_groups=intellij-render-resolve-android,intellij-resolve-android,intellij-resolve-java,intellij-resolve-kt,intellij-info-android,intellij-info-generic,intellij-info-java,intellij-info-kt -- //:oppia_dev //domain/src/test/java/org/oppia/android/domain/exploration/...
INFO: Invocation ID: 15e15d23-afa2-4b2a-bb52-7268e03905e0
Loading: 
Loading: 
Loading: 0 packages loaded
Analyzing: 33 targets (2 packages loaded, 0 targets configured)
ERROR: Traceback (most recent call last):
	File "/home/ben/.cache/bazel/_bazel_ben/6b60c6673fa77d2c9a5f35d8fae76752/external/intellij_aspect/intellij_info_impl_bundled.bzl", line 3, column 37, in <toplevel>
		load("@rules_java//java:defs.bzl", "JavaInfo", "java_common")
Error: file '@rules_java//java:defs.bzl' does not contain symbol 'JavaInfo'
ERROR: at /home/ben/.cache/bazel/_bazel_ben/6b60c6673fa77d2c9a5f35d8fae76752/external/intellij_aspect/intellij_info_bundled.bzl:4:5: initialization of module 'intellij_info_impl_bundled.bzl' failed
Analyzing: 33 targets (23 packages loaded, 292 targets configured)
Analyzing: 33 targets (23 packages loaded, 292 targets configured)
Analyzing: 33 targets (51 packages loaded, 4138 targets configured)
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration/testing:FakeExplorationRetrieverTest_lib_kt': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration/testing:FakeExplorationRetrieverTest_lib': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration/testing:ExplorationStorageTestModuleTest_lib': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration/lightweightcheckpointing:ExplorationCheckpointControllerTest_lib_kt': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationActiveTimeControllerTest_lib_kt': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration/lightweightcheckpointing:ExplorationCheckpointControllerTest_lib_base': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration/lightweightcheckpointing:ExplorationCheckpointControllerTest_lib': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationProgressModuleTest_lib': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationProgressControllerTest_lib_base': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration/testing:ExplorationStorageTestModuleTest_lib_base': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationDataControllerTest_lib_kt': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationDataControllerTest_lib': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration/lightweightcheckpointing:ExplorationCheckpointControllerTest': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration/testing:ExplorationStorageTestModuleTest': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationProgressControllerTest_lib_kt': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationProgressModuleTest_lib_kt': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationProgressModuleTest_lib_base': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationProgressControllerTest_lib': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationStorageModuleTest_lib_base': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationActiveTimeControllerTest': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationStorageModuleTest_lib_kt': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration/testing:FakeExplorationRetrieverTest': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration/testing:FakeExplorationRetrieverTest_lib_base': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationDataControllerTest_lib_base': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration/testing:ExplorationStorageTestModuleTest_lib_kt': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationActiveTimeControllerTest_lib': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationDataControllerTest': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationStorageModuleTest_lib': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationStorageModuleTest': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationActiveTimeControllerTest_lib_base': it will not be built
WARNING: errors encountered while analyzing target '//:oppia_dev': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationProgressControllerTest': it will not be built
WARNING: errors encountered while analyzing target '//domain/src/test/java/org/oppia/android/domain/exploration:ExplorationProgressModuleTest': it will not be built
INFO: Analyzed 33 targets (51 packages loaded, 4366 targets configured).
 checking cached actions
INFO: Found 33 targets...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
ERROR: command succeeded, but not all targets were analyzed
INFO: Elapsed time: 7.690s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
FAILED: Build did NOT complete successfully
INFO: Build Event Protocol files produced successfully.
FAILED: Build did NOT complete successfully
Build command finished. Retrieving BEP outputs...

Steps To Reproduce

Using the above versions of Android Studio and plugin, check out a clean version of the repository at specified version (or latest) and try a Bazel sync with the following .bazelproject configuration:

directories:
  .

derive_targets_from_directories: false

targets:
  //:oppia_dev
  //domain/src/test/java/org/oppia/android/domain/exploration/...

additional_languages:
  kotlin

android_sdk_platform: android-33

Expected Behavior

The project should sync without errors.

Screenshots/Videos

No response

What device/emulator are you using?

N/A

Which Android version is your device/emulator running?

N/A

Which version of the Oppia Android app are you using?

N/A

Additional Context

No response

@BenHenning BenHenning added bug End user-perceivable behaviors which are not desirable. triage needed labels Jan 21, 2025
@BenHenning BenHenning added the Impact: High High perceived user impact (breaks a critical feature or blocks a release). label Jan 21, 2025
@BenHenning BenHenning self-assigned this Jan 21, 2025
@adhiamboperes adhiamboperes added Work: Low Solution is clear and broken into good-first-issue-sized chunks. and removed triage needed labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug End user-perceivable behaviors which are not desirable. Impact: High High perceived user impact (breaks a critical feature or blocks a release). Work: Low Solution is clear and broken into good-first-issue-sized chunks.
Development

Successfully merging a pull request may close this issue.

2 participants