Hello, again. I'm trying to make my first useful p...
# arrow-meta
m
Hello, again. I'm trying to make my first useful plugin. It implements inline serialization for data classes with only one
val
parameter. The code can be found here: https://github.com/mel4tonin4/inline-serialization-plugin/tree/master The plugin operates on classes marked with a custom
@InlineSerializable
annotation. Currently, the serializer classes are generated and the original classes seems to be annotated with a
Serializable(with=)
decoration pointing to the serializer class... but not quite. If I enable
metadebug
I get a source file with the annotated class, but in the same kapt directory there is a file with a non-annotated class and if I try to use the class in another library, there is no
serializer()
method. Here is the content of the kapt directory: https://gist.github.com/mel4tonin4/1605d28e9bd2471c5bfb013b2d31f0ef I enabled
metadebug
only on one of the classes. Why are ChannelCount.kt.meta and ChannelCount.kt not the same?
r
it may be a bug in which annotations are lost in the quote system for your class or you can manually add them to the modified resulting tree
m
It was just the IDE which was (is) not able to see the results of the plug-in. Everything works fine if I ignore the feedback from the IDE. I still don't know how to let the IDE process the library with the plug-in. I'm leaving the project on github, as a tutorial only slightly more advanced than "hello-world".