{"record":{"id":"3779761054ce6024","repo":"rtk-ai/rtk","slug":"unknown-filter-available-cargo-test-pytest-377976","errorCode":null,"errorMessage":"Unknown filter '{}'. Available: cargo-test, pytest, go-test, go-build, ctest, tsc, vitest, grep, rg, find, fd, git-log, git-diff, git-status, log, mypy, ruff-check, ruff-format, prettier, phpunit, pest, paratest, php-test, ecs, phpstan, pint","messagePattern":"Unknown filter '(.+?)'\\. Available: cargo-test, pytest, go-test, go-build, ctest, tsc, vitest, grep, rg, find, fd, git-log, git-diff, git-status, log, mypy, ruff-check, ruff-format, prettier, phpunit, pest, paratest, php-test, ecs, phpstan, pint","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cmds/system/pipe_cmd.rs","lineNumber":269,"sourceCode":"pub fn run(filter_name: Option<&str>, passthrough: bool) -> Result<()> {\n    if passthrough {\n        std::io::copy(&mut std::io::stdin(), &mut std::io::stdout())\n            .map_err(|e| anyhow::anyhow!(\"Failed to relay stdin: {}\", e))?;\n        return Ok(());\n    }\n\n    let mut buf = String::new();\n    std::io::stdin()\n        .take((RAW_CAP + 1) as u64)\n        .read_to_string(&mut buf)\n        .map_err(|e| anyhow::anyhow!(\"Failed to read stdin: {}\", e))?;\n    if buf.len() > RAW_CAP {\n        anyhow::bail!(\"stdin exceeds {} byte limit\", RAW_CAP);\n    }\n\n    let filter_fn = match filter_name {\n        Some(name) => resolve_filter(name).ok_or_else(|| {\n            anyhow::anyhow!(\n                \"Unknown filter '{}'. Available: cargo-test, pytest, go-test, go-build, \\\n                 ctest, tsc, vitest, grep, rg, find, fd, git-log, git-diff, git-status, \\\n                 log, mypy, ruff-check, ruff-format, prettier, phpunit, pest, \\\n                 paratest, php-test, ecs, phpstan, pint\",\n                name\n            )\n        })?,\n        None => auto_detect_filter(&buf),\n    };\n\n    let output = apply_filter(filter_fn, &buf);\n    let shown = never_worse(&buf, &output);\n    print!(\"{}\", shown);\n    Ok(())\n}\n\n#[cfg(test)]\nmod tests {","sourceCodeStart":251,"sourceCodeEnd":287,"githubUrl":"https://github.com/rtk-ai/rtk/blob/36788f6bd4932037caac5cbb1d15d6e2fb9f33da/src/cmds/system/pipe_cmd.rs#L251-L287","documentation":"Error \"Unknown filter '{}'. Available: cargo-test, pytest, go-test, go-build, ctest, tsc, vitest, grep, rg, find, fd, git-log, git-diff, git-status, log, mypy, ruff-check, ruff-format, prettier, phpunit, pest, paratest, php-test, ecs, phpstan, pint\" thrown in rtk-ai/rtk.","triggerScenarios":"Thrown at src/cmds/system/pipe_cmd.rs:269 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of the listed built-in filter names, e.g. rtk pipe cargo-test","Check spelling of the filter name passed to rtk pipe","Extend the match in pipe_cmd.rs with a new filter entry if a custom filter is required"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"36788f6bd4932037caac5cbb1d15d6e2fb9f33da","analyzedAt":"2026-09-03T16:33:57.738Z","contentChangedAt":"2026-09-03T16:33:57.738Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}