Skip to content

chore(tools): Parse JSON trace-log marker in debug_jp#867

Merged
JeanMertz merged 3 commits into
mainfrom
debug-json-output-fix
Jul 10, 2026
Merged

chore(tools): Parse JSON trace-log marker in debug_jp#867
JeanMertz merged 3 commits into
mainfrom
debug-json-output-fix

Conversation

@JeanMertz

Copy link
Copy Markdown
Collaborator

debug_jp locates jp's trace log by scanning stderr for the text marker Full trace log written to: <path>. When jp runs with --format json or json-pretty, it emits a {"trace_log": "<path>"} object instead, so the tool failed to find the trace file and reported a spurious "trace log not found" error for any JSON-format run.

trace_parse gains extract_trace_path, which recognizes either shape, and is_trace_path_marker_line, used to strip the marker line from the stderr shown in rendered reports so it doesn't show up twice (once in the footer, once in the raw stderr dump).

JeanMertz added 3 commits July 9, 2026 23:52
`debug_jp` locates jp's trace log by scanning stderr for the text
marker `Full trace log written to: <path>`. When jp runs with
`--format json` or `json-pretty`, it emits a `{"trace_log": "<path>"}`
object instead, so the tool failed to find the trace file and reported
a spurious "trace log not found" error for any JSON-format run.

`trace_parse` gains `extract_trace_path`, which recognizes either
shape, and `is_trace_path_marker_line`, used to strip the marker line
from the stderr shown in rendered reports so it doesn't show up
twice (once in the footer, once in the raw stderr dump).

Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit e6d2ef0 into main Jul 10, 2026
16 checks passed
@JeanMertz JeanMertz deleted the debug-json-output-fix branch July 10, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant