-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DX][YAML] Improved Deprecation Notices #16748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
👍 The YAML errors are indeed quite difficult to find. |
The Status: Needs work |
But in Inline::parseScalar I do not have access to the line number. I find the line number not helpful as you do not even know the file, you anyway have to grep for it. |
@xabbuh The ParseException already contains it in 3.0, as the parser does it with a global try/catch/rethrow |
Okay, so good to go? |
Please fix the tests |
Updated, buils are pending... |
@stof Tests passed now. |
Thank you @peterrehm. |
This PR was merged into the 2.8 branch. Discussion ---------- [DX][YAML] Improved Deprecation Notices Show the actual invalid string for the Yaml deprecations to ease the upgrade as you can grep the strings. | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Related #16745 Commits ------- 3179407 Improved error messages for Yaml Deprecations
Show the actual invalid string for the Yaml deprecations to ease the upgrade as you can grep the strings.
Related #16745