Skip to content

fix: correct function name grepCodeWithRipgrep -> grepCodeWithNativeRipgrep - #690

Merged
tuxKOH merged 1 commit into
AAswordman:mainfrom
CATMIAOZHI:fix/grep-ripgrep-typo-pr
Jul 8, 2026
Merged

fix: correct function name grepCodeWithRipgrep -> grepCodeWithNativeRipgrep#690
tuxKOH merged 1 commit into
AAswordman:mainfrom
CATMIAOZHI:fix/grep-ripgrep-typo-pr

Conversation

@CATMIAOZHI

@CATMIAOZHI CATMIAOZHI commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Fix: grepCodeWithRipgrepgrepCodeWithNativeRipgrep

Problem

LinuxFileSystemTools.kt:1176 calls grepCodeWithRipgrep(...), but this function does not exist. The actual function name is grepCodeWithNativeRipgrep, defined in StandardFileSystemTools.kt:532.

This causes a compile-time error — the project cannot be built from source.

Root Cause

Introduced in commit 181e4e37cc7d (2026-03-11, feat: replace grep with ripgrep). The same commit correctly wrote grepCodeWithNativeRipgrep in StandardFileSystemTools.kt:4659 but missed the Native in LinuxFileSystemTools.kt:1176.

Affected Versions

Release Tag Date Contains Typo
v1.10.0 2026-03-18 Yes
v1.10.1 Yes
v1.11.0 Yes
v1.12.0 Yes

All 4 releases since 2026-03-11 are affected. The typo went unnoticed because the repository has no CI workflow to catch compile errors.

Fix

One-line change:

--- a/app/src/main/java/com/ai/assistance/operit/core/tools/defaultTool/standard/LinuxFileSystemTools.kt
+++ b/app/src/main/java/com/ai/assistance/operit/core/tools/defaultTool/standard/LinuxFileSystemTools.kt
@@ -1173,7 +1173,7 @@
-        return grepCodeWithRipgrep(
+        return grepCodeWithNativeRipgrep(
             toolName = tool.name,

Verification

Compiled successfully via GitHub Actions CI:

Related

Fixes #688

…ipgrep

In LinuxFileSystemTools.kt line 1176, grepCodeWithRipgrep was called
but the actual function name is grepCodeWithNativeRipgrep (defined
in StandardFileSystemTools.kt line 532).

This typo was introduced in commit 181e4e3 (2026-03-11) and
has been present in releases v1.10.0 through v1.12.0.

Fixes AAswordman#688

Verified by CI: https://github.com/CATMIAOZHI/Operit/actions/runs/28904445796}
@tuxKOH

tuxKOH commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

照aa所说 他忘add了 额 然后这个是19小时前的commit加的native rg,之前都是普通rg,考虑到你是first time我就给你融了 嗯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: grepCodeWithRipgrep 函数名笔误导致编译失败(应为 grepCodeWithNativeRipgrep

2 participants