e: [ksp] No providers found in processor classpath.
I looked online, Asked GPT, Web asked GPT and nothing I found explained me the error in my case. I even tried manually defining it.
./gradlew clean build
Task :annotation-proccessor:kspKotlin FAILEDe: [ksp] No providers found in processor classpath.
32 Replies
⌛
This post has been reserved for your question.
Hey @Hype_the_Time (PING ON REPLY)! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
You have
ksp("com.google.auto.service:auto-service:latest.release")
Can you try replacing it with kapt("com.google.auto.service:auto-service:latest.release")
?
IIRC Google AutoService is an annotation processor and not a KSP thing
The purpose of that project is writing a symbol processor for KSP, right?
Then I don't think you need to use KSP on your symbol processorseems to work. still got errors but those are bad impelemtations from me i assume. it tries to generate stuff it looks.
ty
@dan1st | Daniel i use annotation processing → ksp to generate registration code. problem rn is that if i want to run my code in the local test setup i wrote it is not including the main sources during generation or something. due to this my lists for registrations are generated empty. how can i let ksp include the main src during test compilation?
Don't.
Create one module containing the symbol processor and create another module that uses it
oh yeah
doing that
don't cause yourself unnecessary pain
itsd already sperated into seperate but that issue with registration remains. its not processign ym normal main code if i run it in test


wait i cutted to far


idk what you mean with running it in tests
but I'm not reading code in screenshots
and if you are configuring it to process test code, it shouldn't process non-test code
the system is made to be ran on a server. the way i run it locally uses the test sources. i write custom test functions there too etc.
if i run the setup tho the processor does not process the annotations that are normal. i would expect it to proccess resources from both normal and test src.
Show me how exactly you set it up and what exactly is not processed
but if you want it to process main and test sources, you should set it up as a processor for main sources I think
in the scs i sent you can ssee the test one having empty lists while the other has them populated. each one of the registries stands for a class in main that is annotated.
essentially test one is empty cus nothing in main gets processed
I'm not gonna read text in dark theme screenshots
and what exactly is not processed there and how do you see it?
anything form nomral.
like src/main
essentially
its probably only processing src/test
So main/src/test/kotlin is processed but main/src/main/kotlin isn't?
Did you verify that?
Did you attach a debugger to the processing? How do you see what is processed and what isn't?
let copy a class over
?
proofed it.
i copied 1 class that is annotated over to test. it appears in the registry
all ones from main dont
What do you mean with copying a class?
and what do you mean with appearing in the registry?
Just attach a debugger to the build and see what is processed?
the class gets generated but with no entries in test while its fully populated in main.
test had nothinbg in it but it also had no class with the annotation. so i went in copied a class from main just to see whether it would work if its in test. and it worked then. but only the copied class.
Did you attach a debugger to the compilation/processing?
no clue on how you want me to test it. tried a bunch of stuff but no results at all
add the CLI arguments to attach a debugger to Gradle?
wait results
resolver.getSymbolsWithAnnotation(DiscordSingleCommandImplementation::class.qualifiedName!!).toList()
is returning empty list while in the first one it is size 14
means resolver is def not including them i assume
and where are the annotated classes?
main src
example path:
~/IdeaProjects/BingoNet-Server/main/src/main/kotlin/de/hype/bingonet/server/discord/events/staticimplementations/commands/commands/development/TestDiscordCommand.kt
What exactly is
resolver
?google copy right stuff here
think i got it to run.