This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I renamed a linked file in project by right-clicking on the file name in the Project Explorer and choosing Rename. This brought up a small dialog with present name and allows editing to a new name, which I did. It was a header file so I did a global search and replace to update all #include statements to the new header file name.
After that, the project would not build. I noticed that this same linked file path is also one of the "Includes" entries in the Project Explorer. When I expand that, I noticed that the file still had the old name. Then I browsed to the folder in Windows Explorer and found that the file had not changed name at all.
I fixed it by deleting the file from the project, manually renaming it with Windows Explorer, re-adding it to the project as a linked file, and then moving it to the proper folder in the Project Explorer. This is a lot of steps when there is a built in rename utility (that didn't work).
Am I misunderstanding the file renaming concept? Is there a setting that needs to be configured?
Regards,
Jim
Jim,
I can reproduce this and found this is a known behavior of Eclipse still outstanding. Check:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=338383
Regards,
Rafael