fix(compiler-cli): avoid duplicate diagnostics about unknown pipes#39517
Closed
alxhub wants to merge 1 commit intoangular:masterfrom
Closed
fix(compiler-cli): avoid duplicate diagnostics about unknown pipes#39517alxhub wants to merge 1 commit intoangular:masterfrom
alxhub wants to merge 1 commit intoangular:masterfrom
Conversation
TCB generation occasionally transforms binding expressions twice, which can result in a `BindingPipe` operation being `resolve()`'d multiple times. When the pipe does not exist, this caused multiple OOB diagnostics to be recorded about the missing pipe. This commit fixes the problem by making the OOB recorder track which pipe expressions have had diagnostics produced already, and only producing them once per expression.
Contributor
|
I think it may be better to deduplicate diagnostics directly in the OOB recorder in case similar issues come up in the future. What do you think? |
Member
Author
Hmm, I don't know what you're suggesting should be done differently. This PR deduplicates the missing pipe diagnostic in the OOB recorder. |
kyliau
approved these changes
Nov 3, 2020
Contributor
mhevery
pushed a commit
that referenced
this pull request
Nov 6, 2020
…39517) TCB generation occasionally transforms binding expressions twice, which can result in a `BindingPipe` operation being `resolve()`'d multiple times. When the pipe does not exist, this caused multiple OOB diagnostics to be recorded about the missing pipe. This commit fixes the problem by making the OOB recorder track which pipe expressions have had diagnostics produced already, and only producing them once per expression. PR Close #39517
mhevery
pushed a commit
that referenced
this pull request
Nov 6, 2020
…39517) TCB generation occasionally transforms binding expressions twice, which can result in a `BindingPipe` operation being `resolve()`'d multiple times. When the pipe does not exist, this caused multiple OOB diagnostics to be recorded about the missing pipe. This commit fixes the problem by making the OOB recorder track which pipe expressions have had diagnostics produced already, and only producing them once per expression. PR Close #39517
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TCB generation occasionally transforms binding expressions twice, which can
result in a
BindingPipeoperation beingresolve()'d multiple times. Whenthe pipe does not exist, this caused multiple OOB diagnostics to be recorded
about the missing pipe.
This commit fixes the problem by making the OOB recorder track which pipe
expressions have had diagnostics produced already, and only producing them
once per expression.