Other F7 Rename in conditional compilation blocks.

LucaMs

Expert
Licensed User
Longtime User
I was about to write a bug report; "luckily" I did other tests first :)

F7 Rename had not worked well for me; some constants had not been renamed. I found this to happen in lines in conditional compilation blocks. Then, however, I tried and the renaming also happens in those blocks, when they are "active", that is, I set the configuration with the "right" compilation symbol.

I wonder if it is good for this to happen or not ?
 

LucaMs

Expert
Licensed User
Longtime User
Renaming cannot work in excluded code. The renaming feature relies on the compiler outputs and the excluded code is ignored by the compiler (it must be).
Yes, I understand this, technically; but what happened to me will probably happen often, I was calm that I had renamed some constants everywhere in the project.

Anyway, even if with some difficulty, I was able to correct my "bug", since the compilation clearly highlighted the problem.
 
Upvote 0
Top