eygraber
03/12/2025, 4:47 AMRemi Latapy
03/14/2025, 3:35 PM@Replacing("androidx.compose.material3")
to enforce design system use in Compose. I don't see how to do it in pure Lint rulejbarr
03/19/2025, 9:12 PMartifacts.zip
for 2.1.10-1.0.31? bazel's rules_kotlin uses these for compilationeygraber
03/20/2025, 4:25 PMZach G
03/31/2025, 1:22 PMRTAkland
04/01/2025, 2:54 PMRTAkland
04/03/2025, 11:38 AMNitesh Singh
04/04/2025, 11:25 AMNitesh Singh
04/04/2025, 11:25 AMForrest Pangborn
04/10/2025, 1:32 PMTypeName
instances from KType
values, using the asTypeName()
extension to KType
provided by KotlinPoet.
Looks like the implementation of asTypeName()
relies on kotlin-reflect
(the typeParameters
property on KClass
).
In KSP1, using asTypeName()
like this works but with KSP2 I’m getting an exception:
Caused by: kotlin.jvm.KotlinReflectionNotSupportedError: Kotlin reflection implementation is not found at runtime. Make sure you have kotlin-reflect.jar in the classpath
at kotlin.jvm.internal.ClassReference.error(ClassReference.kt:88)
at kotlin.jvm.internal.ClassReference.getTypeParameters(ClassReference.kt:38)
at com.squareup.kotlinpoet.ParameterizedTypeName$Companion.get$kotlinpoet(ParameterizedTypeName.kt:236)
at com.squareup.kotlinpoet.ParameterizedTypeNames.asTypeName(ParameterizedTypeName.kt:275)
My processor already includes kotlin-reflect
as an implementation dependency – and I've tried adding it for the consumer of the processor too, but same failure.
Running with latest KSP version but in legacy mode (via useKsp2 = false
) works fine as well – so seems definitely an issue with KSP2.
Anyone have any suggestions on other things I can try?Tomáš Procházka
04/14/2025, 10:35 AMtrevjones
04/14/2025, 9:23 PMuseKSP2
and found you had given them a nudge on what appears to be my last blocker now. Any chance there is a more stable API we can ask the moshi maint team to look at now?Denis Stepanov
04/23/2025, 1:08 PMAru Jeganathan
04/24/2025, 5:56 PMOlivier Notteghem
04/28/2025, 11:39 PMJake Woods
05/01/2025, 12:33 AMsealed class KonvertResult<out T, out E> {
data class Ok<out T>(val value: T) : KonvertResult<T, Nothing>()
data class Err<out E>(val error: E) : KonvertResult<Nothing, E>()
}
I'm getting a reference to it's constructor in ksp like this:
private val okConstructor = resolver
.getClassDeclarationByName<KonvertResult.Ok<*>>()
?.getConstructors()
?.firstOrNull()
In ksp1 when I run okConstructor.returnType
I get Ok<T>
. But in ksp2 when I return okConstructor.returnType
I get Ok<*>
. Is there any way I can get back to Ok<T>
?Zac Sweers
05/07/2025, 8:01 PMJP Sugarbroad
05/08/2025, 7:50 PMDavid Herman
05/13/2025, 9:53 PMbaxter
05/21/2025, 8:30 PMlibrary
depends on feature
• library
also depends on a custom ksp processor
The problem I'm running into is that when I make a change in the strings.xml
file in feature
, the first run generates the source files fine from my ksp processor, but the second run fails due to the generated files being deleted and not generated.
It seems to be an issue with incremental builds, because turning incremental off will cause everything to generate just fine. More in 🧵:Edoardo Luppi
05/28/2025, 12:10 PMKSLogger.error
while returning an empty list, or should I prefer a "never error out" approach?Hamza GATTAL
05/30/2025, 3:04 PMjamireh
06/05/2025, 3:57 PMcompileOnly
dependency on com.google.devtools.ksp:symbol-processing-aa
so that we can invoke KSP manually (for classpath isolation reasons) but we're finding we can't upgrade to 2.1.21-2.0.1
and are stuck on 2.1.20-1.0.31
because the binary version of the former is 2.2.0
, which is still in RC. Our project uses Gradle 8.13 but even on 8.14.1, we can't seem to compile against this new version, presumably because the embedded Kotlin version is still on 2.0.0
Given the KSP version implies compatibility with 2.1.21
, why is the binary version 2.2.0
? Is this is a mistake or do we just need to wait for a version of Gradle that embeds at least 2.1.x?Maya
06/10/2025, 10:53 PMpablisco
06/11/2025, 11:03 PMeygraber
06/23/2025, 6:32 PM-Werror
specified and it isn't yet possible to suppress this one)
w: Language version 1.9 is deprecated and its support will be removed in a future version of Kotlin
e: warnings found and -Werror specified
Seokjae Lee
06/24/2025, 8:54 AMAnton Saatze
06/27/2025, 12:56 PMviluon
06/27/2025, 5:18 PMstartOffset
or on textOffset
. All feedback is welcome! So far no one approved even running the CI on this one 😅Pratik Sahu
07/02/2025, 4:53 PMLog
, both the kaptKotlin
and kspKotlin
are running which takes around 2 mins. When I compared this with before all the changes the build is almost instant