Hi, one of the latest releases includes experiment...
# ksp
d
Hi, one of the latest releases includes experimental support for KMP. Does this mean that I could generate code inside a Common module? If so, how would I do that?
t
Yes. In the following sample project, the generated code for Common will be in
workload/build/generated/ksp/commonMain
. https://github.com/google/ksp/blob/main/integration-tests/src/test/resources/kmp
d
So I tried using the logger to see what was wrong with my processor (since it's not generating any common code), and it seems that the resolver can't find any declarations with a certain annotation. The annotation in question is located in a Common Kotlin module, could that be the problem? Also, I tried manually locating a sample annotated class in the common module, and I can in fact retrieve an annotation with the appropriate name, but the annotation's type can't be resolved (yields something like [ERROR_TYPE] when converted to string for the logs).
e
t
Thanks for the test case. I'll try to debug tomorrow. So far I can't see what went wrong and need to reproduce it first.