From 8103fde751e34d448021a1fa4c6b0d7d46e7a586 Mon Sep 17 00:00:00 2001 From: anjakefala Date: Sun, 22 Oct 2023 20:22:06 -0700 Subject: [PATCH] [debug-] turn off progress meter in debug mode breakpoint() is commonly used while debugging, and it does not play well with the progress meter --- dev/test.sh | 2 +- visidata/main.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/test.sh b/dev/test.sh index 6c4efc55c..fb108615c 100755 --- a/dev/test.sh +++ b/dev/test.sh @@ -36,7 +36,7 @@ for i in $TESTS ; do if $TEST == true; then for goldfn in tests/golden/${outbase%.vd*}.*; do - PYTHONPATH=. bin/vd --confirm-overwrite=False --play "$i" --batch --output "$goldfn" --config tests/.visidatarc --visidata-dir tests/.visidata + PYTHONPATH=. bin/vd --debug --confirm-overwrite=False --play "$i" --batch --output "$goldfn" --config tests/.visidatarc --visidata-dir tests/.visidata echo "save: $goldfn" done fi diff --git a/visidata/main.py b/visidata/main.py index 591e28bd3..bbecbb272 100755 --- a/visidata/main.py +++ b/visidata/main.py @@ -347,7 +347,8 @@ def main_vd(): vs = eval_vd(vdfile, *fmtargs, **fmtkwargs) vd.sync(vs.reload()) if args.batch: - vd.outputProgressThread = visidata.VisiData.execAsync(vd, vd.outputProgressEvery, vs, seconds=0.5, sheet=BaseSheet()) #1182 + if not args.debug: + vd.outputProgressThread = visidata.VisiData.execAsync(vd, vd.outputProgressEvery, vs, seconds=0.5, sheet=BaseSheet()) #1182 if vd.replay_sync(vs): # error return 1