claude-code - 💡(How to fix) Fix [Bug] File search with @** wildcard pattern returns no results for existing files [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46892Fetched 2026-04-12 13:30:19
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×2

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description The search like @**/SomeFile.cs returns no results. But file exits.

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.104
  • Feedback ID: 9d85966d-6a80-4e20-9d9d-c064468ab74b

Errors

[]

extent analysis

TL;DR

Check the search query syntax and file path to ensure accuracy, as the search query @**/SomeFile.cs may not be correctly formatted.

Guidance

  • Verify that the file SomeFile.cs exists in the expected directory and that the directory is included in the search scope.
  • Check the search query syntax to ensure that the @**/ prefix is correctly used to search for files recursively.
  • Test a simpler search query, such as SomeFile.cs, to see if the issue is specific to the recursive search syntax.
  • Ensure that the file system and search indices are up-to-date and not corrupted.

Notes

The issue may be related to the specific search query syntax or the file system configuration, but without more information, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Test alternative search queries and verify file system configuration to identify the root cause of the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING