From 471c8d694923992e9b7b4cb8d8e7c11b0524de12 Mon Sep 17 00:00:00 2001 From: Chris Raethke Date: Tue, 10 Mar 2026 16:15:12 +1000 Subject: [PATCH] fix(cargo-agent): include file:line in check/clippy diagnostics Enable location info in compiler diagnostics so agents can navigate directly to the source of errors. --- skills/cargo-agent/scripts/cargo-agent.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skills/cargo-agent/scripts/cargo-agent.sh b/skills/cargo-agent/scripts/cargo-agent.sh index f271359..c4a90f0 100755 --- a/skills/cargo-agent/scripts/cargo-agent.sh +++ b/skills/cargo-agent/scripts/cargo-agent.sh @@ -274,7 +274,7 @@ run_check() { echo "Errors: $errors" echo "Warnings: $warnings" - extract_compiler_diags "$json" 0 2>/dev/null | awk '!seen[$0]++' >"$diags" || true + extract_compiler_diags "$json" 1 2>/dev/null | awk '!seen[$0]++' >"$diags" || true if [[ "$errors" != "0" ]]; then ok=0; fi @@ -315,7 +315,7 @@ run_clippy() { echo "Errors: $errors" echo "Warnings: $warnings" - extract_compiler_diags "$json" 0 2>/dev/null | awk '!seen[$0]++' >"$diags" || true + extract_compiler_diags "$json" 1 2>/dev/null | awk '!seen[$0]++' >"$diags" || true if [[ "$errors" != "0" ]]; then ok=0; fi if [[ -s "$diags" ]]; then