Vaios Tsitsonis
11/22/2022, 4:00 PMbuild
folder and run manually the kspDebugKotlin
task. Moshi's output was generated but I had no output for my processor. If I change something in the class that needs to be processed and run again the task then everything will work. If I revert the change then my processor will not work again.
• clean build has the same results.
Do you have any idea what's the problem? Is there any known issue?glureau
11/22/2022, 5:02 PMDependencies
when using createNewFile
? (ex)
Note that you can try with --rerun-tasks
in your gradle command to ensure it doesn't skip the task due to some caching (it may help to know if the issue is more related to gradle or ksp).Vaios Tsitsonis
11/22/2022, 5:07 PMglureau
11/22/2022, 5:09 PMDependencies
).Vaios Tsitsonis
11/22/2022, 5:13 PMDependencies
glureau
11/22/2022, 7:47 PMFileSpec.writeTo(CodeGenerator, <deps>)
, sorry. (I use kotlinpoet for code gen but not write so far, but I think it's probably not your problem.)David Rawson
11/22/2022, 8:45 PMksp.incremental.log=true
and looking at the output to diagnose the issue
https://kotlinlang.org/docs/ksp-incremental.html#reporting-bugs
Another thing that can trip people up is that the instance of the subclass of SymbolProcessor
is reused so it’s possible to introduce errors if you make it statefulVaios Tsitsonis
11/22/2022, 9:19 PM--rerun-tasks
does the trickVaios Tsitsonis
11/23/2022, 9:47 AM