question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

0.3.0 fails to build with kapt

See original GitHub issue
> Task :log-sync:kaptReleaseKotlin FAILED
[WARN] Issue detected with dagger.internal.codegen.ComponentProcessor. Expected 1 originating source file when generating /Users/zsweers/dev/slack/slack-android-ng/log-sync/build/tmp/kapt3/classes/release/scabbard/full_slack.logsync.di.LogSyncBaseModule.svg, but detected 0: [].
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
error: cannot access Metrics
  class file for slack.telemetry.Metrics not found
  Consult the following stack trace for details.
  com.sun.tools.javac.code.Symbol$CompletionFailure: class file for slack.telemetry.Metrics not found
> Task :tooling:flipper:plugins:ms-event:plugin:kaptReleaseKotlin
[WARN] Issue detected with dagger.internal.codegen.ComponentProcessor. Expected 1 originating source file when generating /Users/zsweers/dev/slack/slack-android-ng/tooling/flipper/plugins/ms-event/plugin/build/tmp/kapt3/classes/release/scabbard/full_slack.tooling.flipper.plugins.msevent.plugin.MsEventFlipperPluginModule.dot, but detected 0: [].
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

> Task :model:kaptReleaseKotlin
warning: The following options were not recognized by any processor: '[scabbard.failOnError, scabbard.outputFormat, kapt.kotlin.generated, dagger.fullBindingGraphValidation]'
FAILURE: Build failed with an exception.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ZacSweerscommented, May 21, 2020

I have the same result regardless I think. Can confirm tomorrow. These tests for sure at least cover with it set to true

On Thu, May 21, 2020 at 3:58 AM Arunkumar notifications@github.com wrote:

Thanks, I will investigate. Just to confirm scabbard’s fullBindingGraphValidation is set to false right?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arunkumar9t2/scabbard/issues/48#issuecomment-631944555, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKMJPV7A3H445YVH4KZFNTRSTNKFANCNFSM4NEMCB2A .

1reaction
ZacSweerscommented, May 21, 2020

Let me try to build with the dagger option on bit without scabbard enabled and see if it still happens

On Thu, May 21, 2020 at 12:42 AM Arunkumar notifications@github.com wrote:

So it works without full graph validation?

By any chance LogSyncBaseModule has a binding exposed utilizing slack.telemetry.Metrics but that class is in a different module/transitive dep of another module?

Seems related to google/dagger#970 https://github.com/google/dagger/issues/970. The only place I access raw Types apart from already parsed dagger ones in when I try to parse simple names. I will try to confirm this with a sample when I get time. Meanwhile could you let me know if setting qualifiedNames true in scabbard block works?

I’ll work on a gradle task to export info for issues to avoid back and forth in the future.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arunkumar9t2/scabbard/issues/48#issuecomment-631875649, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKMJPVTD3FDHTC5TAG6X53RSSWJ7ANCNFSM4NEMCB2A .

Read more comments on GitHub >

github_iconTop Results From Across the Web

gradle - Android - Kapt Build Fails - Stack Overflow
Room and Kapt plugin issue fix. On the right hand side of your IDE, click on the Gradle bar -> app -> tasks...
Read more >
KaptWithoutKotlincTask in Android project failure in case ...
On a toy project, I can fix this issue by updating to Gradle 7.2 (still using AGP 7.0.0), or set kapt.workers.isolation=none . Can...
Read more >
Using kapt | Kotlin
The kapt annotation processing tasks are cached in Gradle by default. ... If the annotation processors used in the build cannot be properly ......
Read more >
Android Configuration with name 'kapt' not found - iTecNote
to module build.gradle , after click on sync i get this error: ... implementation 'com.github.armcha:AutoLinkTextView:0.3.0' implementation ...
Read more >
Change Log - KotlinPoet
Fix: Fail compilation if you only pass one string to ClassName . ... Since kapt runs annotation processors over stubs, which are Java...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found