-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kotlin support for target / source in @Mapping and @ValueMapping #20
Comments
The plugin uses the default way of accessing the annotations in elements. I have to dig in to understand how it works within kotlin. If someone has some idea or knows what exactly needs to be done I am looking forward to your help 😄 |
@filiphr I can have a look at it, I want to keep using Kotlin and completion is always helpful. Could you maybe point to a starting class? |
One starting point would be Handling code from the IntelliJ SDK documentation. As for the plugin some starting classes that you would need to look are:
The way the completion works is by providing references through a reference contributor. The The The There are some tests, that might guide you and that you might be able to utilise for debugging |
Are there any news on this issue? It would be very nice to have kotlin support. |
@greenarr0w I haven't had a lot of time to look into this. If someone from the community would like to step up and help with this it would be much appreciated. |
Make sure that plugin works with a disabled Kotlin plugin
Make sure that plugin works with a disabled Kotlin plugin
thanks @ifrankwang for your work on this. |
Currently the plugin only works in .java @Mapper classes (though it offers completions for source and target when referencing Kotlin classes as well!). It seems as if the plugin is simply not triggered in .kt mappers, but it works otherwise fine with Kotlin.
Kotlin Mapper interface:
Java Mapper interface:
In both cases the DTO and model are Kotlin classes.
Versions used:
The text was updated successfully, but these errors were encountered: