You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gradle.toml matcher does not match real rtk ./gradlew / rtk gradle invocations #1177
src/filters/gradle.toml currently has a match_command that does not match the command string RTK actually looks up at runtime, so Gradle output falls back to passthrough.
MWE
# in any Gradle project with ./gradlew present
RTK_TOML_DEBUG=1 rtk ./gradlew tasks
# actual:# [rtk:toml] looking up filter for: "gradlew tasks" (58 filters loaded)# [rtk:toml] no filter matched — passthrough
Expected
[rtk:toml] matched filter: 'gradle'
Debug
RTK_TOML_DEBUG=1 rtk ./gradlew tasks
RTK_TOML_DEBUG=1 rtk gradle tasks # if a gradle executable is on the path
Local workaround
Use a user/project filter override with:
match_command = "^(?:\\./)?gradlew?\\b"
Proposed fix in rtk
Update src/filters/gradle.toml matcher to match the normalized lookup string.
Add inline tests for gradlew ... and ./gradlew ....
Add an integration test covering actual fallback lookup behavior.
Context
Similar fix was already proposed in PR fix gradle filter #966, but it was closed unmerged.
changed the title [-]gradle.toml matcher does not match real rtk ./gradlew / rtk gradle invocations[/-][+]gradle.toml matcher does not match real `rtk ./gradlew` / `rtk gradle` invocations[/+]on Apr 10, 2026
Closing as a duplicate of #2708, which tracks the same problem with the more complete discussion. Please follow up there; if your case differs in a way that issue does not cover, comment here and it can be reopened.
Activity
[-]gradle.toml matcher does not match real rtk ./gradlew / rtk gradle invocations[/-][+]gradle.toml matcher does not match real `rtk ./gradlew` / `rtk gradle` invocations[/+]pszymkowiak commentedon Apr 12, 2026
🔍 Automated Triage
bugmediumSummary
gradle.toml match_command regex doesn't match './gradlew' or 'gradlew' invocations; fix the regex in src/filters/gradle.toml and add tests
📁 Relevant files
src/filters/gradle.tomlTriaged automatically by wshm · This is an automated analysis, not a human review.
fix(gradle): fix match_command regex and strip config-cache chatter
fix(gradle): fix match_command regex and strip config-cache chatter
fix(gradle): fix match_command regex and strip config-cache chatter
fix(gradle): fix match_command regex and strip config-cache chatter
fix(gradle): fix match_command regex and strip config-cache chatter
KuSh commentedon Sep 13, 2026
Closing as a duplicate of #2708, which tracks the same problem with the more complete discussion. Please follow up there; if your case differs in a way that issue does not cover, comment here and it can be reopened.