Description
Describe the bug
When epilogue is used with kotlin, it generates two NT entries for every field. One is called field
and one is called getField
. For some reason even when kotlin gets compiled to bytecode with simple getters (just a function with return this.whatever
) it still gets logged. I've been told that's not supposed to happen. For fields with no custom getter you can annotate @JvmField
to fix this issue, but you can't utilize a custom getter, and epilogue, without duplicates.
To Reproduce
- Set up a kotlin FRC project
- Register epilogue with Kapt (to allow java annotation processors to process kotlin code)
- Log some stuff
- Link to code: https://github.com/falOn-Dev/2025Reefscape_Epilogue
Expected behavior
I expected epilogue to not generate duplicate entries in NT when logging.
Desktop (please complete the following information):
- OS: Arch Linux
- Project Information: WPILib 2025.3.2, WPILib's 2025 JDK
Additional context
I understand if this issue gets closed nearly instantly, as kotlin is not officially supported. However I would really like to explore the use of epilogue in kotlin, and fixing this would be huge.