Skip to content

Epilogue creates duplicate NT entries in kotlin. #7886

Open
@falOn-Dev

Description

@falOn-Dev

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

  1. Set up a kotlin FRC project
  2. Register epilogue with Kapt (to allow java annotation processors to process kotlin code)
  3. Log some stuff

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions