Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

ComponentRegistrar is not being called #17

Closed
androidovshchik opened this issue Jun 20, 2020 · 5 comments
Closed

ComponentRegistrar is not being called #17

androidovshchik opened this issue Jun 20, 2020 · 5 comments

Comments

@androidovshchik
Copy link

androidovshchik commented Jun 20, 2020

Hi
I have done all setup, but while building the project there is no activity in compiler module
I have annotated ComponentRegistrar class with @autoservice and published to local maven (and it exists) but it doesn't work
KotlinGradleSubplugin is alive and it is working however
Thanks in advance

@androidovshchik androidovshchik changed the title ComponentRegistrar not being called ComponentRegistrar is not being called Jun 20, 2020
@androidovshchik
Copy link
Author

i found that ComponentRegistrar class is working, but print function is not working in this module

@Foso
Copy link
Owner

Foso commented Jun 24, 2020

Hi @androidovshchik , can you give me some example code of your ComponentRegistrar with the print function?

You can try if the messageCollector is working. You can find an example here:

https://github.com/Foso/JK_KotlinCompilerPluginHelloWorld/blob/master/buildSrc/compiler-plugin/kotlin-plugin/src/main/java/de/jensklingenberg/CommonComponentRegistrar.kt

@androidovshchik
Copy link
Author

androidovshchik commented Jun 25, 2020

@Foso Thanks for response. Here is the code https://github.com/androidovshchik/AngularKt
For some reason println not displaying text, i wonder to know why)
As you suggested the messageCollector is working, yes

@Foso
Copy link
Owner

Foso commented Jun 28, 2020

println() should work also
I just tried it in my project. And it was printed to the "Run"-View and to the terminal.

@Foso
Copy link
Owner

Foso commented Jul 5, 2020

I close the issue, feel free to open another one when there are other issues

@Foso Foso closed this as completed Jul 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants