Bug 373456

Summary: Strange behaviour, if "find/replace" directory is named "build"
Product: [Developer tools] kdevplatform Reporter: poldi871
Component: grepviewAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal CC: igorkuo
Priority: NOR    
Version First Reported In: 5.0.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description poldi871 2016-12-09 10:17:53 UTC
System: OpenSuSE-Leap 42.2 (same Problem on OpenSuSE-12.2)
Kdevelop: 4.7.2

Problem: "Seach/replace files" doesn't show any hits if parent directory is named "build".

How to reproduce:
1. Take any package, here as an example, "ppp-2.4.7"
2. Copy it to any folder, where the path ends with "build" (here: "/temp/build/ppp-2.4.7")
3. "Open/Import project" -> "/temp/build/ppp-2.4.7" the package into kdevelop as custom project.
4. Now make a "search/replace files" on "/temp/build/ppp-2.4.7" for "include".

-> no matches were found.
The problem occurs with any combinations of access rights.

Now the counterexample:
1. Take the same package, here "ppp-2.4.7"
2. Copy it to any folder, where the path does NOT end with "build" (here: "/temp/ppp-2.4.7")
3. "Open/Import project" -> "/temp/ppp-2.4.7" the package into kdevelop as custom project.
4. Now make a "search/replace files" on "/temp/ppp-2.4.7" for "include".

-> 1232 matches in 125 files.

This is annoying, because unfortunately my most used directory to search for contexts is the standard build directory of "buildroot" which unfortunately is "build". Kfind is no good alternative (ist works), because then I have to give up all the "goodies" of kdevelop.

Poldi
Comment 1 poldi871 2016-12-09 11:01:29 UTC
Addon: same problem on OpenSuSE-Leap 42.2 and kdevelop 5.0.1
Comment 2 Igor Kushnir 2020-03-31 14:22:41 UTC

*** This bug has been marked as a duplicate of bug 361760 ***