I've noticed sometimes, refactoring takes long sec...
# intellij
m
I've noticed sometimes, refactoring takes long seconds/minutes. This seems to happen especially when renaming common identifiers such as "id" or "name". Is there anything I can do to speed that up?
I've had the time to take the screenshot, type this message and now this follow up and it's still looking up for usages...
Ah, it's done!
n
IIRC there's usually some checkboxes available that you can uncheck, like I think it scans non-code references too
m
681 files doesn't sound huge to me and the fact that there seems to be a big difference based on the identifier name was hinting me towards a bad index somewhere but yea, maybe it's time to disable some checkboxes
n
to be precise I mean these ones
m
Looks like I have disabled already actually :/
It's not even searching outside the project files
My project has some (little) errors, maybe that doesn't help...
n
I can imagine errors could prevent the parser/indexer from working, but I dunno
m
Yea that's weird... Maybe it's because of data classes too 🤷
w
It's not I think, I have the same thing. Renaming properties like
id
takes insane amount of time and it seems to consider ids from all the classes, regardless of the checkboxes. It will complete correctly, not rename usages for those other classes, but it will search for usages anyway. And sometimes it seems to search for things where I see no connection to the renamed thing at all
1
Haven't reported it yet because I'd have to find sufficiently large project which triggers it. Seems like Apollo-android might be it? 😄
🙂 1
m
It's not that large TBH, we have something like ~10 modules so I don't know how people with hundreds of modules rename their ids...
I was thinking data classes because it seems to search for all destructuring/componentsN usages which might add a bunch of places
I'll file an issue