How to be dependent on KSP generated code in my co...
# ksp
l
How to be dependent on KSP generated code in my code? Or is this something KSP isn’t designed for? Basically when my kotlin compilation fails, KSP fails to work and I have to comment out every usage of generated code for it to be able to generate code again. To elaborate more: Let’s say I generate a class GeneratedClass with method someFunction() When for some reason my project fails to build because of different compilation issues, the GeneratedClass gets deleted and not generated again which causes whole compilation to fail again EDIT: This only happens if I disable incremental processing. But incremental processing deletes untouched files for some reason