Repository navigation
#463 - Error messages: give the valid values and suggest the closest code - #464
Merged
Merged
Conversation
…code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
njoubert-cleverage
force-pushed
the
463
branch
from
November 4, 2026 18:29
2df7bbd to
27ec3fc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #463:
DidYouMeanhelper (Levenshtein, at most a third of the length, up to 3 changes);cleverage:process:execute:Unknown process demo.transformr. Did you mean "demo.transformer"? The processes are listed by the cleverage:process:list command.;Invalid context foo: expected key:value, e.g. -c date:2024-01-01 (the value is parsed as YAML);Cannot handle data output with format 'jsonstream': use 'dump' (STDOUT only) or 'json-stream'. Did you mean "json-stream"?;MissingTransformerException/MissingProcessException::create(): new optional list of the known codes to suggest the closest one, given byTransformerRegistryandProcessConfigurationRegistry(newgetProcessCodes(), without resolving the configurations);callback:Callback option must be callable, "strtoupperr" given("Class::method"for an array callback, the type otherwise);#[AsTask(code: '...')]/ thecodeattribute of thecleverage.tasktag, before the known codes;outputs: [next]indented at the level of the tasks) is reported with a hint about the indentation, instead ofUnrecognized option "0"; a task withouttasknorservicesays "neither" instead of "not both".The messages start with the same text as before (except the "neither" one).
Checked locally: the messages in the demo (unknown process, output format); highest dependencies (PHP 8.5), with pcov coverage: all tests OK, no risky; PHPStan, PHP-CS-Fixer and Rector OK.
Requirements
Breaking changes
None.
🤖 Generated with Claude Code