Skip to content

#390 - cleverage:process:execute: a JSON output that cannot be encoded no longer makes the command fail - #391

Merged
njoubert-cleverage merged 2 commits into
mainfrom
390
Nov 2, 2026
Merged

njoubert-cleverage merged 2 commits into
mainfrom
390

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #390.

Change of 5.5 (#353): with --output-format=json-stream and STDOUT, the output is printed whatever the verbosity, and an output that cannot be encoded as JSON threw a JsonException after the execution: the command failed and the next processes were skipped (before 5.5, nothing was printed without -vv).

  • The output is encoded with JSON_INVALID_UTF8_SUBSTITUTE (e.g. a Latin-1 file read): invalid sequences are replaced by U+FFFD.
  • An output that still cannot be encoded (NAN, INF...) is reported on the error output, and the next processes are executed.
  • UPGRADE.md (v5.5 section): --output-format=dump without symfony/var-dumper, or an unknown format, makes the command fail before any execution (kept: a wrong option is detected before the work is done). 01-quick_start.md updated.
  • The --output file is unchanged: JsonStreamFile throws on an output that cannot be encoded, as before 5.5.

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

None: the command no longer fails on such an output.

🤖 Generated with Claude Code

…utput, report an output that cannot be encoded instead of failing

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage requested a review from a team as a code owner November 2, 2026 14:25
@njoubert-cleverage
njoubert-cleverage merged commit cd920dc into main Nov 2, 2026
17 checks passed
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.

cleverage:process:execute: a JSON output that cannot be encoded makes the command fail and skips the next processes

1 participant