It's bonkers that renaming a `data class` property...
# intellij
w
It's bonkers that renaming a
data class
property takes so long, god forbid the name is common among other data classes (like
id: String
). Slightly over 1 minute for renaming
title
to
otherTitle
(there are over 100 classes with
val title
property). If the class is not a
data class
, renaming the same property takes a bit under 40 seconds. Still crazy long for a property that's used 20 times in <10 files. Searching for usages in instant, why the heck does IDE look for the same property in hundreds of files when renaming it? Why does it look for
invoke
usages when I rename a
val title: String
property? Am I holding the IDE wrong here? For searching I have
fast data class components search
enabled, but for rename refactoring there's no configuration like that. /rant
☝️ 3
Why is it
collecting imports
when I only renamed a property or a method name (╯°□°)╯︵ ┻━┻ And why does it take most of the rename time
I opened https://youtrack.jetbrains.com/issue/KTIJ-30924, I reported it in the past but it's getting worse over time. I wonder if others have the same problems
2
m
Although it might never have been completely gone... I've learnt to avoid renaming "some" fields...
w
Oh yeah, I was there, Mateusz also was there with a video from our project it seems. And there's https://youtrack.jetbrains.com/issue/KTIJ-12718/Simple-Rename-Refactoring-takes-forever as well. I'm afraid the issue conveniently waits until it's fixed with K2 plugin 😄
😅 1
🤞 1