Bug 501131 - include paths completely messed up when renaming folder
Summary: include paths completely messed up when renaming folder
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: 9.0.0   Edit
Hardware: All All
: P3 normal with 6 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-09 07:28 EDT by Christian Holl CLA
Modified: 2020-09-04 15:27 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Holl CLA 2016-09-09 07:28:42 EDT
If you move or rename a folder it automatically changes the file contents.
This is a really annoying feature which created a ton of work for me now.

now I have over _FIVE HUNDRED_ files in which the include paths look ALL like this:

#include "../../../../../project_folder/n_ws/folder/src/conf/header.h"

instead of before:

#include "conf/header.h"

Just to mention: THIS SUCKS A LOT.

Fix this in the following ways please:

Make at least a checkbox (which is by *default* disabled) saying something like

"update include paths inside files"

And do not update paths to a greater folder depth they actually were, then this feature could probably work like it should.


So now I am going take some time to clean this F***IN MESS up, because I did not realize in first place that this happened ... already checked in git plus multiple commits above ... 

Nice job...not...

Regards,

Christian
Comment 1 Doughlas Hudson CLA 2017-02-07 10:09:52 EST
I can confirm this behavior and it's really annoying. Would be great if the proposed checkbox solution could be realized.
Comment 2 RaceMouse Mising name CLA 2018-06-18 02:52:37 EDT
Behavior confirmed here as well. There are several use cases where this behavior is fine, but there are also _MANY_ cases where this is completely undesirable. 

Please-Please add a checkbox for disabling this :-)

BR
Fink
Comment 3 Christopher Parish CLA 2018-07-20 09:09:42 EDT
Throwing in my two cents here.  I also would like to see this "feature" made optional via a checkbox.

Renaming a folder containing some sources rewrote EVERY file in that folder, making the includes something like "../../../../../../path/all/the/way/back/to/header.h"