Summary: | Find/Replace in Files : Failed: no files found matching the wildcard patterns | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | RJVB <rjvbertin> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | igorkuo, poldi871 |
Priority: | NOR | ||
Version First Reported In: | git master | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | All | ||
Latest Commit: | https://invent.kde.org/kdevelop/kdevelop/-/commit/2ced983d4975cedb5166c4115397870aaab0e148 | Version Fixed In: | 5.14 |
Sentry Crash Report: |
Description
RJVB
2016-04-14 10:23:39 UTC
I forgot to mention explicitly: this happens on both OS X and Linux; the above example was prepared and checked on Linux. The issue is in the Exclude pattern. It contains "/build/" pattern by default to exclude the default-named directory KDevelop creates. And each Exclude pattern is matched against a complete file path. I think it should be matched against the remainder of the path after the top-level search directory. Note that right now the Exclude functionality is broken as described in Bug 417628. I'm working on a fix to that bug. *** Bug 373456 has been marked as a duplicate of this bug. *** A possibly relevant merge request was started @ https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/519 Git commit 2ced983d4975cedb5166c4115397870aaab0e148 by Igor Kushnir. Committed on 15/01/2024 at 11:44. Pushed by igorkushnir into branch 'master'. GrepFindFilesThread: match relative paths against Exclude filter Two KDevelop users have reported the "No files found matching the wildcard patterns" bug when the project directory is within a parent directory named "build". The /build/ pattern is present in the default Exclude filter. Therefore, all absolute file paths in such a project directory match the default Exclude filter and are not searched in. Match paths relative to the current search location in order to fix the bug. A downside of this fix is that when multiple projects are open, excluding one of them from the search is no longer possible. Hopefully this is a very rare use case. FileFinder::findFilesCanonical: don't search in a subdirectory whose relative path matches the Exclude filter. Since the relative path to a file within a subdirectory contains the relative path to the subdirectory, it would also match the Exclude filter and therefore would not be inserted into the results list. FIXED-IN: 5.14 M +45 -8 plugins/grepview/grepfindthread.cpp M +1 -1 plugins/grepview/grepfindthread.h https://invent.kde.org/kdevelop/kdevelop/-/commit/2ced983d4975cedb5166c4115397870aaab0e148 |