Hi, I've create a sample compiler + a KMP lib, tes...
# ksp
g
Hi, I've create a sample compiler + a KMP lib, testing with a sample project but I have an issue with KMP/JS : KSP don't find my annotated class, unless I duplicate the annotation from the lib to the KMP project (can be in commonMain or jsMain, both works for some reasons). Am I missing something in the project setup?
j
getSymbolsWithAnnotation
only works for symbols from source code, not for symbols from libraries (it is also impractical to traverse all symbols in classpath and check annotations for them)
g
Sorry I'm a bit confused. How is it working with Jvm? In the sample I used Js and Jvm, Jvm has 1 symbol but Js has no symbols returned.
I'm not sure if it's KSP, my KMP library containing the annotation or a publishing issue actually. Any help would be appreciated.
j
oh, are you saying the annotatiion is defined in lib stead of symbols defined in lib?
I thought you mean you wanted to get annotated symbols from libs with
getSymbolsWithAnnotation
g
Yes, the annotation is defined in the lib. Sorry for my english
j
that’s me mistaken 🙂 let me take a look when I got time.
🙏 1
created an issue, feel free to add your reproduce case to the comment.
g
Thanks for the issue!