-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[ExpressionLanguage] Provide the expression in syntax errors #22229
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
fabbot failure - but shouldn't this be done on master instead? a new public method looks like a new feature to me - the DX "fix" looks like DX "improvement" to me. |
well, the new method is quite internal (I should tag it as |
Regarding the target, the original PR was on 2.7. But deciding between 2.7 and master can be discussed. The current exceptions when using a wrong expression in a DI configuration are totally impossible to debug (the error message does not contain the expression, and the stack trace does not contain the config file containing the expression as the expression is parsed only later when dumping the compiled container). So I would still be in favor of adding it in 2.7 |
776642c
to
7cd7441
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thank you @stof. |
…rs (k0pernikus, stof) This PR was merged into the 2.7 branch. Discussion ---------- [ExpressionLanguage] Provide the expression in syntax errors | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #19445 | License | MIT | Doc PR | n/a This finishes the PR #19449. Commits ------- 7cd7441 Complete the injection of the expression in all syntax errors dc55db2 add expression text to SyntaxError
This finishes the PR #19449.