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

Unclear error message when scope type for @ContributesBinding is not imported #65

Open
kirillzh opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kirillzh
Copy link

Code

// note AppScope import is missing
import me.tatarka.inject.annotations.Inject
// import software.amazon.lastmile.kotlin.inject.anvil.AppScope
import software.amazon.lastmile.kotlin.inject.anvil.ContributesBinding

@Inject
@ContributesBinding(AppScope::class)
class NfcSessionImpl(
  ...
)

Error:

e: [ksp] Qualified name was null for <ERROR TYPE: AppScope>
e: [ksp] java.lang.IllegalArgumentException: Qualified name was null for <ERROR TYPE: AppScope>
        at software.amazon.lastmile.kotlin.inject.anvil.ContextAware$DefaultImpls.requireNotNull(ContextAware.kt:38)
@kirillzh kirillzh changed the title Unclear error message when scope type is not imported Unclear error message when scope type for @ContributesBinding is not imported Oct 29, 2024
@vRallev vRallev added the enhancement New feature or request label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants