Skip to content

Output filtering hides actual Clippy error messages, only shows summary #602

Closed

Description

@pando85

Describe the bug
When running cargo clippy through rtk, actual error messages are filtered/hidden. The output only shows a summary like "cargo clippy: 1 errors, 0 warnings" but doesn't show the actual error details, making it impossible to debug.
To Reproduce
Steps to reproduce the behavior:

  1. Run rtk cargo clippy -p <package> -- -D warnings
  2. Observe output shows only cargo clippy: 1 errors, 0 warnings
  3. Actual error details are not visible
    Expected behavior
    Error messages should be shown in full so developers can see what the actual error is and fix it.
    Environment
  • OS: Linux
  • rtk version: installed system-wide at /usr/bin/rtk
    Additional context
    Running the same command without rtk shows the full error output. This makes rtk unusable for development workflows where seeing the actual error is critical.
    Suggested fix
    Either:
  1. Provide a --verbose or --full-output flag to show unfiltered output
  2. Always show full error messages (errors should never be truncated/summarized)
  3. Print the full error to stderr while keeping summary on stdout

Activity

  1. TechWizard9999 commented on Mar 18, 2026

    @TechWizard9999
    Contributor

    I’m taking this issue. I’ll update clippy filtering to preserve actionable error details (not summary-only), with tests, in a focused PR against develop.

  2. TechWizard9999 commented on Mar 18, 2026

    @TechWizard9999
    Contributor

    I’ve submitted a PR to address this issue: #677

    Changes include:

    • keeping compact clippy summaries while adding actionable error text output
    • adding an Error details section so users can see concrete failures
    • adding a regression test to ensure error details are never dropped

    Validation run:

    • cargo fmt --all --check
    • rtk cargo clippy --all-targets
    • rtk cargo test

    Please review when you get a chance.

  3. added
    bug
    effort-small
    filter-quality
    on Mar 20, 2026
  4. pszymkowiak commented on Mar 20, 2026

    @pszymkowiak
    Collaborator

    [w] wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟠 Priority high
    🎯 Confidence 88%

    Summary

    Cargo clippy filter suppresses actual error details, showing only summary counts — likely duplicate of #1156 (--raw/--no-filter flag) and related to #1163 (document filtering data loss); fix the cargo clippy filter to pass through error content.

    This looks like a simple fix. Only repo maintainers can trigger auto-fix.


    Triaged automatically by wshm · This is an automated analysis, not a human review.

  5. pszymkowiak commented on Mar 24, 2026

    @pszymkowiak
    Collaborator

    This should be fixed in the latest release. Clippy output now shows error details with file and line:

    cargo clippy: 0 errors, 1 warnings
    ═══════════════════════════════════════
      this `map_or` can be simplified (1x)
        src/rake_cmd.rs:18:31
    

    Can you verify with rtk --version (should be >= 0.31.0) and rtk cargo clippy?

    Thanks!

  6. pszymkowiak commented on Apr 7, 2026

    @pszymkowiak
    Collaborator

    Tested on develop (v0.35.0) — cannot reproduce. RTK now shows all error details:

    cargo clippy: 4 errors, 0 warnings
    ═══════════════════════════════════════
    
    Error details:
      1. error: function `unused_function` is never used
      2. error: unneeded `return` statement
      3. error: it looks like you're manually copying between slices
      4. error: useless use of `vec!`
    
      useless use of `vec!` (1x)
        src/main.rs:2:13
    

    Tested with cargo clippy, cargo clippy -- -D warnings, and cargo clippy -p <pkg>. Error messages and locations are shown. Full raw output is also available via the tee log.

    Can you retest on v0.35.0 (brew upgrade rtk or cargo install rtk)? If you still see the issue, please share the exact command and output.

  7. added 2 commits that reference this issue on May 14, 2026
    8b18ba4
    6b0d4bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugeffort-smallfilter-quality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions