google / ksp

Kotlin Symbol Processing API
https://github.com/google/ksp
Apache License 2.0
2.89k stars 274 forks source link

KSP2 cannot load Android lint checks jar due to `FileTooBigException` #1839

Closed ZacSweers closed 6 months ago

ZacSweers commented 7 months ago

Repro: set ksp.useKSP2 to true in this branch (in gradle.properties) and then try to run ./gradlew :compose-lint-checks:kspTestKotlin. This works fine in KSP 1.

ting-yuan commented 7 months ago

Our workaround to https://youtrack.jetbrains.com/issue/KT-66689/Analysis-API-KtFirPackageScope-shouldnt-rely-on-KotlinDeclarationProvider-for-binary-dependencies-in-standalone-mode indirectly led to this issue. After the upstream is fixed, we'll be able to get rid of the workaround and therefore this issue.

ting-yuan commented 6 months ago

Fixed in #1870.