From 9ab85c33379f98229235a30dbf5108ad31a01d1f Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 20 Nov 2025 14:52:02 -0500 Subject: bild: fix --plan to output only JSON without logging - Remove Log.wipe from --plan output path - Add isPlanMode parameter to analyzeAll to skip LogC.withLineManager when planning - Update all analyzeAll call sites to pass isPlanMode flag - Remove grep workaround from repl.sh (no longer needed) Now 'bild --plan' outputs clean JSON that can be piped directly to jq. This fixes typecheck.sh and other tools that rely on clean JSON output. Amp-Thread-ID: https://ampcode.com/threads/T-4e6225cf-3e78-4538-963c-5377bbbccee8 Co-authored-by: Amp --- Omni/Ide/repl.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Omni/Ide/repl.sh') diff --git a/Omni/Ide/repl.sh b/Omni/Ide/repl.sh index ad6bc02..6225078 100755 --- a/Omni/Ide/repl.sh +++ b/Omni/Ide/repl.sh @@ -30,8 +30,7 @@ fi shift fi targets="${*:?}" - # Extract only the JSON line from bild --plan output (skip progress indicators) - json=$(bild --plan "${targets[@]}" 2>&1 | grep -E '^\{') + json=$(bild --plan "${targets[@]}" 2>&1) mapfile -t langdeps < <(jq --raw-output '.[].langdeps | select(length > 0) | join("\n")' <<< "$json") mapfile -t sysdeps < <(jq --raw-output '.[].sysdeps | select(length > 0) | join("\n")' <<< "$json") mapfile -t rundeps < <(jq --raw-output '.[].rundeps | select(length > 0) | join("\n")' <<< "$json") -- cgit v1.2.3