Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Merged
merged 2 commits into from
Apr 3, 2017

Conversation

stof
Copy link
Member

@stof stof commented Mar 31, 2017

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.

@nicolas-grekas
Copy link
Member

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.

@stof
Copy link
Member Author

stof commented Apr 3, 2017

well, the new method is quite internal (I should tag it as @internal btw)

@stof
Copy link
Member Author

stof commented Apr 3, 2017

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

@stof stof force-pushed the expression_language_info branch from 776642c to 7cd7441 Compare April 3, 2017 08:58
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@nicolas-grekas nicolas-grekas added this to the 2.7 milestone Apr 3, 2017
Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fabpot
Copy link
Member

fabpot commented Apr 3, 2017

Thank you @stof.

@fabpot fabpot merged commit 7cd7441 into symfony:2.7 Apr 3, 2017
fabpot added a commit that referenced this pull request Apr 3, 2017
…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
@fabpot fabpot mentioned this pull request Apr 4, 2017
@stof stof deleted the expression_language_info branch April 4, 2017 08:46
This was referenced Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants