Hello guys, I’m trying to run my own processor, b...
# ksp
a
Hello guys, I’m trying to run my own processor, but I keep getting
w: [ksp] Unable to process:com.sample.demo.DemoAnnotationProcessor:   DemoClass;Foo
IS there any command to see more details about why it’s not working ?
e
You can use
Copy code
./gradlew assemble --no-daemon -Dorg.gradle.debug=true -Dkotlin.compiler.execution.strategy=in-process
and attach the debugger and put breakpoints in your ide if that helps
j
you can also dump logs with
logger
, the information you get here suggests that after no new files are generated, your processor still returns symbol(s) as deferred symbols, therefore KSP is reporting it.
a
I’m trying to log something with logger but doesnt seem to work. I’m outputing
logger.logging("Processing files...")
right in the
process
method, but when I run
./gradlew build --d
i can’t find find my log
(classes are being generated, but no logs are posted)
e
I know that warn at least shows up without and special flags to gradle
a
yep, warn seems to work!
j
there is a case where logs are suppressed by higher level of logs, but it should have been fixed now. Let me check it again when I got time..
a
thanks for that!
Thanks, guy. With logger I managed to find what’s not working
Thank you all for the help