Rename fails in Oxygene

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

Thanks, logged as bugs://81429

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.

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

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

bugs://81429 got closed with status cannotrepro.

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?

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

1 Like