Sitelet https://web.archive.org/web/20260430014155/https://github.com/angular/angular-cli/pull/19982
Skip to content

fix(@angular-devkit/build-angular): display the code-frame for localization errors#19982

Closed
petebacondarwin wants to merge 1 commit intoangular:masterfrom
petebacondarwin:i18n-error-messages
Closed

fix(@angular-devkit/build-angular): display the code-frame for localization errors#19982
petebacondarwin wants to merge 1 commit intoangular:masterfrom
petebacondarwin:i18n-error-messages

Conversation

@petebacondarwin
Copy link
Copy Markdown
Contributor

Previously if there was an error processing the AST in the Babel plugin that does
the replacement of i18n messages, the error shown did not provide much help
in where in the code the problem appears.

Now we display a "code-frame" representation of the position in the parsed
source-code where the AST processing failed.

Partially resolves angular/angular#40702 (comment)

@google-cla google-cla Bot added the cla: yes label Feb 5, 2021
@petebacondarwin
Copy link
Copy Markdown
Contributor Author

Probably easiest to review the changes with whitespace matching turned off.

@petebacondarwin petebacondarwin added action: review The PR is still awaiting reviews from at least one requested reviewer devkit/build-angular:i18n target: patch This PR is targeted for the next patch release labels Feb 5, 2021
@petebacondarwin petebacondarwin added state: WIP and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Feb 5, 2021
@petebacondarwin petebacondarwin marked this pull request as draft February 5, 2021 13:38
@petebacondarwin petebacondarwin removed the request for review from clydin February 5, 2021 13:38
@dgp1130
Copy link
Copy Markdown
Collaborator

dgp1130 commented Jun 10, 2021

@petebacondarwin, going through some old PRs, is this still something you want to land, or should we close this?

@petebacondarwin
Copy link
Copy Markdown
Contributor Author

I totally forgot about this. I see it is conflicted and I set it to WIP - perhaps because of the Windows failures...
I'll look through it tomorrow and either update it or close it. Thanks for the prod.

…zation errors

Previously if there was an error processing the AST in the Babel plugin that does
the replacement of i18n messages, the error shown did not provide much help
in where in the code the problem appears.

Now we display a "code-frame" representation of the position in the parsed
source-code where the AST processing failed.

Partially resolves angular/angular#40702 (comment)
@petebacondarwin
Copy link
Copy Markdown
Contributor Author

This is stale and would require a PathManipulation interface to be provided, which would create a lot of churn in this code for little benefit. Closing.

@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 Jul 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

devkit/build-angular:i18n 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.

localize doesn't work with target: ES2015

2 participants