summaryrefslogtreecommitdiff
path: root/Omni/Ide
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2025-11-20 14:52:02 -0500
committerBen Sima <ben@bsima.me>2025-11-20 14:52:02 -0500
commit9ab85c33379f98229235a30dbf5108ad31a01d1f (patch)
tree47bdaf08057e54fa85f7dd9500c29d0e0e7a0e1b /Omni/Ide
parent22e4ad1406100fc4377568fe1aa4cb235be21257 (diff)
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 <amp@ampcode.com>
Diffstat (limited to 'Omni/Ide')
-rwxr-xr-xOmni/Ide/repl.sh3
1 files changed, 1 insertions, 2 deletions
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")