Open evant opened 11 months ago
I think this is more or less expected behavior tbh. The default implementation from the origin project never compiled KSP-generated files unless kspWithCompilation
was enabled, which forced KSP to run within the same KotlinCompilation. I think there's a limitation that causes this, either that it cannot do incremental processing or multiple rounds. The same situation exists in KSP2, KSP alone doesn't attempt to compile the generated sources.
I would expect code that doesn't compile to continue not to compile when a ksp processor is added. For example:
fails with
but as soon as you add a processor that does nothing,
then compilation succeeds.
enabling
does make it fail again, but I don't understand why that should impact this behavior.