Rename fails in Oxygene

(Theo) #1

When renaming a variable, not all instances are renamed.
See video

(RemObjects) #2

Thanks, logged as bugs://81429

(viktoriad) #3

Hello Theo,

Could you please let me know if that code compiles or not. The lines that contain non renamed items, have got very strange syntax - SomeText(0) := somevar. I don’t know if that would be compiled in Oxygene or not.
I think that at some points Oxygene renaming doesn’t work with broken syntax because compiler simply cannot identify the var in broken statement.

Thanks in advance.

(Theo) #4

I can not tell you - this code does not exist anymore (not in this form).
But it happens more often.

(viktoriad) #5

Please, let us know next time it happens to you.
Thanks in advance.

(RemObjects) #6

bugs://81429 got closed with status cannotrepro.

(Theo) #7

Can you at least give a warning in the rename dialog that not all code is compilable and that therefore there is a chance that not all references will be renamed?

(marc hoffman) #8

Agreed. Refactoring a should by very definition only ever be applied to working (=compiling) code.