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

Kapt: KotlinPoetMetadata can't parse with Kotlin 1.8 #1636

Open
zskingking opened this issue Jul 19, 2023 · 1 comment
Open

Kapt: KotlinPoetMetadata can't parse with Kotlin 1.8 #1636

zskingking opened this issue Jul 19, 2023 · 1 comment
Labels

Comments

@zskingking
Copy link

Caused by: java.lang.IllegalStateException: Could not parse metadata! This should only happen if you're using Kotlin <1.1.
at com.squareup.kotlinpoet.metadata.KotlinPoetMetadata.readKotlinClassMetadata(KotlinPoetMetadata.kt:89)
at com.squareup.kotlinpoet.metadata.KotlinPoetMetadata.toImmutableKmClass(KotlinPoetMetadata.kt:118)
at com.immomo.android.mm.kobalt.processor.ApiCacheGenerator.generate(ApiCacheGenerator.kt:32)
at com.immomo.android.mm.kobalt.processor.ApiCacheGenerator.generate(ApiCacheGenerator.kt:141)
at com.immomo.android.mm.kobalt.processor.KobaltProcessor.process(KobaltProcessor.kt:50)
at org.jetbrains.kotlin.kapt3.base.incremental.IncrementalProcessor.process(incrementalProcessors.kt:90)
at org.jetbrains.kotlin.kapt3.base.ProcessorWrapper.process(annotationProcessing.kt:197)
at

@zskingking zskingking added the bug label Jul 19, 2023
@Egorand
Copy link
Collaborator

Egorand commented Jul 19, 2023

Do you have a reproducible sample that we can run? It'll be hard to triage this based on just the stacktrace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants