mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: add --no-messages flag to ripgrep to suppress file access errors (#6757)
Fixes #6756 When ripgrep encounters file access errors (e.g., permission denied), it would cause the search_files tool to return empty results. Adding the --no-messages flag suppresses these error messages while still showing pattern syntax errors, allowing the search to continue and return valid results from accessible files. Co-authored-by: Roo Code <roomote@roocode.com>
This commit is contained in:
parent
245bc2a2e6
commit
7b0f489ea2
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ export async function regexSearchFiles(
|
|||
throw new Error("Could not find ripgrep binary")
|
||||
}
|
||||
|
||||
const args = ["--json", "-e", regex, "--glob", filePattern || "*", "--context", "1", directoryPath]
|
||||
const args = ["--json", "-e", regex, "--glob", filePattern || "*", "--context", "1", "--no-messages", directoryPath]
|
||||
|
||||
let output: string
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue