Community
Participate
Working Groups
Hi, I recently updated CDT on 9.0.0 and now the organize includes feature always use relative paths. It was not the case few weeks ago on 9.0.0. I am not sure though which commit broke it. The feature is not usable anymore for me at this moment. My project include paths and symbols have not changed since. Include Style are all configured to "Keep include statements together" and "Use angle brackets". "Use path relative to the including file" is disabled. I have subfolders in my include/ folder and using Organize Includes on a header in one of the subfolder insert includes to parent directory headers with relative paths. On top of reporting this issue, I am also asking what more I could check in order to verify that it is indeed a bug and not a configuration problem in my environment.
A small self-contained project reproducing the problem would be very helpful.
Created attachment 267998 [details] Example Eclipse C++ project demonstrating the problem This problem still exists and is very annoying! I added a test project that reproduces the problem. It has the following classes: - TestIncludeeA - Level1Folder/TestIncludeeB - Path/To/Class/Deepdownbelow/TestIncluder The TestIncluder includes the TestIncludeeA and B, which are several folders up in the project tree. The includes generated by eclipse, even though all "relative path" options were NOT ticked, look like the following. Definitely not absolute paths: #include "../../../../Level1Folder/TestIncludeeB.h" #include "../../../../TestIncludeeA.h" I hope this helps fixing the problem. Installed versions: ------------------------ CDT 9.2.1.201703062208 Eclipse Platform 4.6.3.M20170301-0400