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

Fixes FileAlreadyExistsException with IDL temp dir in extractIdlClasses #15362

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nkoroste
Copy link
Contributor

Fixes:

ERROR: [0m/private/var/lib/jenkins/workspace/android/components/service-manager/settings/BUILD.bazel:15:16: Building idl jars components/service-manager/settings/libaidl-idl.jar failed: (Exit 1): IdlClass failed: error executing command
(cd /Users/devicelab/Dev/.cache/_bazel_root/1470e837387673c804a096195fba2583/execroot/__main__ && \
exec env - \
bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/bazel_tools/src/tools/android/java/com/google/devtools/build/android/idlclass/IdlClass --manifest_proto bazel-out/darwin_arm64-fastbuild/bin/components/service-manager/settings/libaidl.jar_manifest_proto --class_jar bazel-out/darwin_arm64-fastbuild/bin/components/service-manager/settings/libaidl.jar --output_class_jar bazel-out/darwin_arm64-fastbuild/bin/components/service-manager/settings/libaidl-idl.jar --output_source_jar bazel-out/darwin_arm64-fastbuild/bin/components/service-manager/settings/libaidl-idl.srcjar --temp_dir bazel-out/darwin_arm64-fastbuild/bin/components/service-manager/settings/_idl/aidl/libaidl_temp bazel-out/darwin_arm64-fastbuild/bin/components/service-manager/settings/aidl_aidl/components/service-manager/settings/src/main/aidl/com/snap/settings/FooService.java)
# Configuration: bda8eb3b3fc265640cdb4dbb8bc334435d0d2bb57d443a645485b277748e62f5
# Execution platform: @local_config_platform//:host
Exception in thread "main" java.nio.file.FileAlreadyExistsException: bazel-out/darwin_arm64-fastbuild/bin/components/service-manager/settings/_idl/aidl/libaidl_temp/classjar/com/snap/settings/FooService$Default.class
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:94)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478)
at java.base/java.nio.file.Files.newOutputStream(Files.java:220)
at java.base/java.nio.file.Files.copy(Files.java:3067)
at com.google.devtools.build.android.idlclass.IdlClass.extractIdlClasses(IdlClass.java:153)
at com.google.devtools.build.android.idlclass.IdlClass.writeClassJar(IdlClass.java:69)
at com.google.devtools.build.android.idlclass.IdlClass.main(IdlClass.java:61)

@sgowroji sgowroji added team-Android Issues for Android team awaiting-user-response Awaiting a response from the author labels Apr 28, 2022
@sgowroji
Copy link
Member

Hello @nkoroste, Thank you for the PR. Do you have any GitHub issue with respect to it. Can you please update the same. Thanks!

@nkoroste
Copy link
Contributor Author

Hello @nkoroste, Thank you for the PR. Do you have any GitHub issue with respect to it. Can you please update the same. Thanks!

done

@sgowroji sgowroji added awaiting-review PR is awaiting review from an assigned reviewer and removed awaiting-user-response Awaiting a response from the author labels May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review PR is awaiting review from an assigned reviewer team-Android Issues for Android team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants