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): Catch FatalDiagnosticError during template type ch… #49527

Closed
wants to merge 3 commits into from

Conversation

atscott
Copy link
Contributor

@atscott atscott commented Mar 21, 2023

…ecking

This commit updates the type checking step of the compilation to catch FatalDiagnosticError and surface them as diagnostics rather than crashing.

Fixes angular/vscode-ng-language-service#1881

@atscott atscott added target: patch This PR is targeted for the next patch release area: compiler Issues related to `ngc`, Angular's template compiler labels Mar 21, 2023
@ngbot ngbot bot added this to the Backlog milestone Mar 21, 2023
@atscott atscott force-pushed the ttcerror branch 3 times, most recently from c8882d1 to bba17f1 Compare April 5, 2023 18:32
@atscott atscott requested a review from JoostK April 5, 2023 18:38
@atscott atscott added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Apr 10, 2023
@atscott
Copy link
Contributor Author

atscott commented Apr 10, 2023

caretaker note: CI has pre-existing failures at the moment. g3 tests passed. That seems like a good indication that this should be good to go. But feel free to just wait until CI is back in a good state.

@AndrewKushnir
Copy link
Contributor

@atscott the CI should be in good state right now, could you please rebase this PR (to rerun the CI again)?

It looks like this PR wouldn't merge cleanly into 15.2.x. We can merge this PR to 16.0.x and main and we'd need a separate PR for 15.2.x.

@AndrewKushnir AndrewKushnir added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Apr 11, 2023
atscott and others added 3 commits April 11, 2023 13:27
…ecking

This commit updates the type checking operation to catch
`FatalDiagnosticError` and surface them as diagnostics rather than
crashing.

Fixes angular/vscode-ng-language-service#1881
…s not exported

The compiler currently does not check to make sure that directives in
the host bindings are exported. These directives are part of the public
API of the component so they do have to be.
This was referenced Apr 11, 2023
@AndrewKushnir AndrewKushnir added target: rc This PR is targeted for the next release-candidate and removed target: patch This PR is targeted for the next patch release action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Apr 11, 2023
@AndrewKushnir
Copy link
Contributor

This PR was merged into the repository by commit e949548.

AndrewKushnir pushed a commit that referenced this pull request Apr 11, 2023
…s not exported (#49527)

The compiler currently does not check to make sure that directives in
the host bindings are exported. These directives are part of the public
API of the component so they do have to be.

PR Close #49527
AndrewKushnir pushed a commit that referenced this pull request Apr 11, 2023
…ecking (#49527)

This commit updates the type checking operation to catch
`FatalDiagnosticError` and surface them as diagnostics rather than
crashing.

Fixes angular/vscode-ng-language-service#1881

PR Close #49527
AndrewKushnir pushed a commit that referenced this pull request Apr 11, 2023
…s not exported (#49527)

The compiler currently does not check to make sure that directives in
the host bindings are exported. These directives are part of the public
API of the component so they do have to be.

PR Close #49527
@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 May 12, 2023
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 merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Language service crashes if there is an error during Typecheck block generation
3 participants