Skip to content

Conversation

@dylhunn
Copy link
Contributor

@dylhunn dylhunn commented Nov 2, 2022

Currently, when generating an import of a selector, the language service might crash if the compiler cannot emit a reference to the new symbol's file from the target component's file. (This might happen because the two are the same file.) We should handle that case by reusing the existing identifier if possible, or otherwise failing gracefully.

@dylhunn dylhunn added type: bug/fix action: review The PR is still awaiting reviews from at least one requested reviewer area: language-service Issues related to Angular's VS Code language service target: minor This PR is targeted for the next minor release labels Nov 2, 2022
@dylhunn dylhunn requested a review from atscott November 2, 2022 03:19
@ngbot ngbot bot added this to the Backlog milestone Nov 2, 2022
Currently, when generating an import of a selector, the language service might crash if the compiler cannot emit a reference to the new symbol's file from the target component's file. (This might happen because the two are the same file.) We should handle that case by reusing the existing import if possible, or otherwise failing gracefully.
@atscott atscott added target: rc This PR is targeted for the next release-candidate and removed target: minor This PR is targeted for the next minor release labels Nov 2, 2022
@atscott
Copy link
Contributor

atscott commented Nov 2, 2022

@dylhunn I updated the target branch to be RC. I think that's correct since we'll want this fix in the v15 release but let me know if it isn't.

@dylhunn
Copy link
Contributor Author

dylhunn commented Nov 2, 2022

caretaker: This might require a port to merge cleanly into RC. if it doesn't merge, let's just merge it into main, and I'll create a separate RC PR.

@dylhunn dylhunn 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 Nov 2, 2022
@AndrewKushnir AndrewKushnir added target: minor This PR is targeted for the next minor release and removed target: rc This PR is targeted for the next release-candidate labels Nov 4, 2022
@AndrewKushnir
Copy link
Contributor

This PR was merged into the repository by commit ce8160e.

@AndrewKushnir
Copy link
Contributor

@dylhunn FYI this PR didn't merge cleanly into 15.0.x (as you mentioned above as well). The PR is now merged into the main branch, please create a new one to target 15.0.x if needed. Thank you.

@dylhunn dylhunn deleted the same-file-imports branch November 30, 2022 20:12
@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 Dec 31, 2022
trekladyone pushed a commit to trekladyone/angular that referenced this pull request Feb 1, 2023
…lar#47938)

Currently, when generating an import of a selector, the language service might crash if the compiler cannot emit a reference to the new symbol's file from the target component's file. (This might happen because the two are the same file.) We should handle that case by reusing the existing import if possible, or otherwise failing gracefully.

PR Close angular#47938
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: language-service Issues related to Angular's VS Code language service target: minor This PR is targeted for the next minor release type: bug/fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants