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
Control Flow Migration does not work correctly on template #53779
Comments
I was able to reproduce with the cli with However, running the I see @jessicajaniuk is the main contributor to the migration schematic, maybe you can confirm ? |
This addresses the offset issue caused when a switch case was empty with no spaces or children being affected by the markers that were added, but not accounted for in offset. The markers are not needed for empty content and can be safely removed in this case. fixes: angular#53779
I've been able to replicate this behavior and found the issue. The empty |
@jessicajaniuk I am wondering if it was straightforward to reproduce And if you would have an idea why I couldn't reproduce locally with the main branch (I started with a similar unit test to the one in your PR and it went through successfully then with the schematic same successfully migrated) |
@OBe95 Without seeing your setup, I don't know. Even a single space or a line break in the ngSwitchDefault would make the test pass. So it could just be that. |
I thought maybe there is a known pitfall that I missed |
…gular#53839) This addresses the offset issue caused when a switch case was empty with no spaces or children being affected by the markers that were added, but not accounted for in offset. The markers are not needed for empty content and can be safely removed in this case. fixes: angular#53779 PR Close angular#53839
…gular#53839) This addresses the offset issue caused when a switch case was empty with no spaces or children being affected by the markers that were added, but not accounted for in offset. The markers are not needed for empty content and can be safely removed in this case. fixes: angular#53779 PR Close angular#53839
…gular#53839) This addresses the offset issue caused when a switch case was empty with no spaces or children being affected by the markers that were added, but not accounted for in offset. The markers are not needed for empty content and can be safely removed in this case. fixes: angular#53779 PR Close angular#53839
…gular#53839) This addresses the offset issue caused when a switch case was empty with no spaces or children being affected by the markers that were added, but not accounted for in offset. The markers are not needed for empty content and can be safely removed in this case. fixes: angular#53779 PR Close angular#53839
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
Yes
Description
Running control flow migration on the following template does not work correctly.
Original Template:
Migrates to:
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run
ng version
)No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: