Skip to content
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

fix(compiler-cli): source-map windows line endings #40187

Conversation

petebacondarwin
Copy link
Member

Previously \r\n was being treated as a single character in source-map
line start positions, which caused segment positions to become offset.

Now the \r is ignored when splitting, leaving it at the end of the
previous line, which solves the offsetting problem, and does not affect
source-mappings.

Fixes #40169
Fixes #39654

@google-cla google-cla bot added the cla: yes label Dec 18, 2020
@pullapprove pullapprove bot requested a review from JoostK December 18, 2020 09:58
@pullapprove pullapprove bot added the area: compiler Issues related to `ngc`, Angular's template compiler label Dec 18, 2020
@ngbot ngbot bot added this to the Backlog milestone Dec 18, 2020
@pullapprove pullapprove bot removed the area: i18n label Dec 18, 2020
@petebacondarwin petebacondarwin added action: review The PR is still awaiting reviews from at least one requested reviewer area: i18n target: patch This PR is targeted for the next patch release labels Dec 18, 2020
@pullapprove pullapprove bot removed the area: i18n label Dec 18, 2020
@petebacondarwin petebacondarwin added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Dec 18, 2020
…ping

Previously `\r\n` was being treated as a single character in source-map
line start positions, which caused segment positions to become offset.

Now the `\r` is ignored when splitting, leaving it at the end of the
previous line, which solves the offsetting problem, and does not affect
source-mappings.

Fixes angular#40169
Fixes angular#39654
josephperrott pushed a commit that referenced this pull request Dec 22, 2020
…ping (#40187)

Previously `\r\n` was being treated as a single character in source-map
line start positions, which caused segment positions to become offset.

Now the `\r` is ignored when splitting, leaving it at the end of the
previous line, which solves the offsetting problem, and does not affect
source-mappings.

Fixes #40169
Fixes #39654

PR Close #40187
@petebacondarwin petebacondarwin deleted the source-map-windows-line-endings branch December 23, 2020 21:46
@angular-automatic-lock-bot
Copy link

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 Jan 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: compiler Issues related to `ngc`, Angular's template compiler cla: yes target: patch This PR is targeted for the next patch release
Projects
None yet
2 participants