X Tutup
Skip to content

feat(ivy): improve ExpressionChangedAfterChecked error message for text interpolations#34520

Closed
AndrewKushnir wants to merge 1 commit intoangular:masterfrom
AndrewKushnir:cd_error_details_for_text_interpolations
Closed

feat(ivy): improve ExpressionChangedAfterChecked error message for text interpolations#34520
AndrewKushnir wants to merge 1 commit intoangular:masterfrom
AndrewKushnir:cd_error_details_for_text_interpolations

Conversation

@AndrewKushnir
Copy link
Copy Markdown
Contributor

This commit improves ExpressionChangedAfterChecked error message for text interpolations by including the content of entire expression that contains interpolation(s). In order to achieve that, metadata for text interpolations is now stored in TData array when textInterpolate instructions are being called (similar to property and propertyInterpolate instructions).

PR Type

What kind of change does this PR introduce?

  • Feature

Does this PR introduce a breaking change?

  • Yes
  • No

…text interpolations

This commit improves ExpressionChangedAfterChecked error message for text interpolations by including the content of entire expression that contains interpolation(s). In order to achieve that, metadata for text interpolations is now stored in TData array when textInterpolate instructions are being called (similar to property and propertyInterpolate instructions).
@AndrewKushnir AndrewKushnir added feature Label used to distinguish feature request from other issues target: patch This PR is targeted for the next patch release comp: ivy labels Dec 20, 2019
@ngbot ngbot bot added this to the needsTriage milestone Dec 20, 2019
@AndrewKushnir
Copy link
Copy Markdown
Contributor Author

We should probably change error message format for text interpolations from:

ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked.
Previous value: 'Some content ExpressionA, ExpressionB, etc'. Current value: 'Some content UpdatedExpressionA, ExpressionB, etc'.

to:

ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked.
Previous value: 'ExpressionA'. Current value: 'UpdatedExpressionA'.
Context: 'Some content UpdatedExpressionA, ExpressionB, etc'.

That should help find an expression that was changed: old and new values are displayed and the entire text interpolation content is included for the context.

Copy link
Copy Markdown
Member

@pkozlowski-opensource pkozlowski-opensource left a comment

Choose a reason for hiding this comment

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

LGTM

@pkozlowski-opensource pkozlowski-opensource added the area: core Issues related to the framework runtime label May 9, 2020
@AndrewKushnir
Copy link
Copy Markdown
Contributor Author

Closing this PR for now (it's in a non-mergeable state).

@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: core Issues related to the framework runtime cla: yes feature Label used to distinguish feature request from other issues state: WIP target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup