Hello, is this a known bug? Renaming a Kotlin fiel...
# intellij
v
Hello, is this a known bug? Renaming a Kotlin field is not executed correctly in Java. It drops the
get
prefix. Are there any known workarounds? Version: IntelliJ IDEA 2025.1.2 (Ultimate Edition) Build: #IU-251.26094.121, built on June 2, 2025 Kotlin Compiler: K2
h
I found https://youtrack.jetbrains.com/issue/KTIJ-2142/Kotlin-properties-rename-refactoring-must-change-references-in-Java on YouTrack. It's been fixed 10 years ago, but I guess with K2 they can make every old mistake a second time. I suggest you open a new issue. K2 mode is such a mess, I have no IDEA how they could make that the default already 😞
v
K2 was the first thing I suspected but it continues to happen with K2 mode off. 😮
l
@hho One of the main reasons I switched to IDEA back in version 3.x (yes, that's around 2003) is the type-aware completion (Control-Shift-Space by default).
It's been missing for K2 for years, and now they're making it default. And it's still not implemented.
If there is a single thing illustrating that there is something wrong with the priorities, it must be this.
a
It works fine for simple class properties both in k1 and k2 but doesn't work for data classes. I doubt that it's a new bug. Reported as KTIJ-34515