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

Skip to content

[ExpressionLanguage] Provide the expression in syntax errors - #22229

Merged
fabpot merged 2 commits into
symfony:2.7from
stof:expression_language_info
Apr 3, 2017
Merged

[ExpressionLanguage] Provide the expression in syntax errors#22229
fabpot merged 2 commits into
symfony:2.7from
stof:expression_language_info

Conversation

@stof

@stof stof commented Mar 31, 2017

Copy link
Copy Markdown
Member
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
Copy Markdown
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

stof commented Apr 3, 2017

Copy link
Copy Markdown
Member Author

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

@stof

stof commented Apr 3, 2017

Copy link
Copy Markdown
Member Author

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

@nicolas-grekas nicolas-grekas left a comment

Copy link
Copy Markdown
Member

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

@dunglas dunglas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@fabpot

fabpot commented Apr 3, 2017

Copy link
Copy Markdown
Member

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