Bug 338968

Summary: .kdev_include_paths not used anymore
Product: [Applications] kdevelop Reporter: Maciej Cencora <m.cencora>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: kalinichev.so.0
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Maciej Cencora 2014-09-10 09:16:08 UTC
One of the recent commits removed support for providing include paths through .kdev_include_paths file.
In my project I used to generate the list of include paths with custom script. With removed support for .kdev_include_paths there is no way to do this <b>automatically</b> from cli.
Include paths change quiet often in my project (mostly new are added) so using the GUI for this in a couple of project subdirs is rather slow/annoying.

Please bring back support for .kdev_include_paths files.

Reproducible: Always
Comment 1 Sergey Kalinichev 2014-09-13 13:38:13 UTC
 I see. But, there was a discussion on the mailing list about where to store includes/defines. We came to the conclusion that we should use .kdev4 project file for that and .kdev_include_paths for out-of-project files.

Still, if you say that you really add include paths all the time (can't imagine though why does it happen for you. E.g. I usually add include paths once or twice per project), maybe we should implement some simple cli utility then, that'll read include paths from some file and convert it to the new format?

What do you think?
Comment 2 Maciej Cencora 2014-09-13 16:29:22 UTC
This is a rapidly growing project (>100 commits a day) and new functionalities are added into seperate directories which requires adding new include paths.

Yes, a simple cli that would allow to modify these paths is ok too.
Comment 3 Sergey Kalinichev 2014-09-17 07:36:57 UTC
Here it's: https://git.reviewboard.kde.org/r/120240/
Any feedback is welcomed.
Comment 4 Sergey Kalinichev 2014-10-03 06:13:36 UTC
Git commit ddf3f8209da8808d1741ce029dd6bf08c0727a41 by Sergey Kalinichev.
Committed on 14/09/2014 at 07:59.
Pushed by skalinichev into branch 'master'.

Add cli utility to modify include paths

This utility makes it possible to modify include paths of a project
from command line.

REVIEW: 120240

M  +10   -0    languages/plugins/custom-definesandincludes/CMakeLists.txt
A  +246  -0    languages/plugins/custom-definesandincludes/includepathsconverter.cpp     [License: GPL (v2+)]
A  +54   -0    languages/plugins/custom-definesandincludes/includepathsconverter.h     [License: GPL (v2+)]

http://commits.kde.org/kdevelop/ddf3f8209da8808d1741ce029dd6bf08c0727a41