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

facing issue with kt_jvm_library #6446

Closed
ChaitanyaDuse opened this issue May 23, 2024 · 1 comment
Closed

facing issue with kt_jvm_library #6446

ChaitanyaDuse opened this issue May 23, 2024 · 1 comment
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues lang: java Java rules integration lang: kotlin Kotlin rules integration topic: bazel Bazel integration (external repositories, aspects, flags, etc) type: bug

Comments

@ChaitanyaDuse
Copy link

ChaitanyaDuse commented May 23, 2024

Description of the bug:

All builds fail with "Error in kt_jvm_library"

Error log -

ERROR: /project/dagger/java/dagger/spi/model/BUILD:36:15: in kt_jvm_library rule //java/dagger/spi/model:model:
Traceback (most recent call last):
File "/private/var/tmp/_bazel_cd/f202618f9a0c0f8e33bf23f70a8036c4/external/io_bazel_rules_kotlin/kotlin/internal/jvm/impl.bzl", line 221, column 36, in kt_jvm_library_impl
_kt_jvm_produce_jar_actions(ctx, "kt_jvm_library") if ctx.attr.srcs or ctx.attr.resources else export_only_providers(
File "/private/var/tmp/_bazel_cd/f202618f9a0c0f8e33bf23f70a8036c4/external/io_bazel_rules_kotlin/kotlin/internal/jvm/compile.bzl", line 535, column 50, in kt_jvm_produce_jar_actions
outputs_struct = _run_kt_java_builder_actions(
File "/private/var/tmp/_bazel_cd/f202618f9a0c0f8e33bf23f70a8036c4/external/io_bazel_rules_kotlin/kotlin/internal/jvm/compile.bzl", line 794, column 36, in _run_kt_java_builder_actions
_run_merge_jdeps_action(
File "/private/var/tmp/_bazel_cd/f202618f9a0c0f8e33bf23f70a8036c4/external/io_bazel_rules_kotlin/kotlin/internal/jvm/compile.bzl", line 264, column 70, in _run_merge_jdeps_action
inputs = depset(jdeps, transitive = [depset([], transitive = [dep.transitive_deps for dep in deps])])
Error: 'JavaInfo' value has no field or method 'transitive_deps'
Available attributes: _compile_time_java_dependencies, _constraints, _neverlink, _transitive_full_compile_time_jars, annotation_processing, api_generating_plugins, compilation_info, compile_jars, full_compile_jars, java_outputs, module_flags_info, outputs, plugins, runtime_output_jars, source_jars, transitive_compile_time_jars, transitive_native_libraries, transitive_runtime_jars, transitive_source_jars
ERROR: /Users/cd/project/dagger/java/dagger/spi/model/BUILD:36:15: Analysis of target '//java/dagger/spi/model:model' failed
ERROR: Analysis of target '//java/dagger/spi:spi' failed; build aborted: Analysis failed
INFO: Elapsed time: 124.500s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully

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.

checkout dagger latest tag .https://github.com/google/dagger/releases/tag/dagger-2.51.1

No response

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

Android Studio Giraffe 2022.3.1 Patch 4

No response

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

No response

What Bazel plugin version are you using?

2024.01.16-aswb.0.1-api-version-223
Bazel version istalled from homebrew 7.1.2

No response

Have you found anything relevant by searching the web?

No response

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

No response

@ChaitanyaDuse ChaitanyaDuse added awaiting-maintainer Awaiting review from Bazel team on issues type: bug labels May 23, 2024
@satyanandak satyanandak added topic: bazel Bazel integration (external repositories, aspects, flags, etc) lang: java Java rules integration labels May 23, 2024
@satyanandak satyanandak added the lang: kotlin Kotlin rules integration label May 23, 2024
@mai93
Copy link
Collaborator

mai93 commented May 23, 2024

I think this is not related to the plugin and it is similar to bazelbuild/rules_jvm_external#946 which is fixed by upgrading rules_kotlin version bazelbuild/rules_jvm_external#999

@mai93 mai93 closed this as completed May 23, 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 lang: java Java rules integration lang: kotlin Kotlin rules integration topic: bazel Bazel integration (external repositories, aspects, flags, etc) type: bug
Projects
None yet
Development

No branches or pull requests

5 participants