GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing github.com — feat(compiler-cli): detect missing control flow directive imports by AndrewKushnir · Pull Request #46146 · angular/angular Conversation
Contributor
This commit adds an extended diagnostics check that verifies that all control flow directives (such as PR TypeWhat kind of change does this PR introduce?
Does this PR introduce a breaking change?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
AndrewKushnir
force-pushed
the
error-message-improvement
branch
2 times, most recently
from
732c1c4 to
5ac5ecf
Compare
AndrewKushnir
commented
Uh oh!
There was an error while loading. Please reload this page.
AndrewKushnir
force-pushed
the
error-message-improvement
branch
from
5ac5ecf to
d5d83a4
Compare
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
@Harpush right, suggestion about a NgModule to import is one aspect of it. When it comes to the "directive didn't match", the situation is more nuanced. #37322 talks about the specific situation: Now the question we should ask: what is the meaning of
As we see the (2) usage in the wild we don't have much choice but, at this point, assume the (2) meaning. This is why we can't error on seeing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@pkozlowski-opensource I understand the problem... Isn't there a way to "remember" it was once |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@Harpush as I've mentioned we see usage of We could change the meaning to expect |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@pkozlowski-opensource I believe the current way some people use * is wrong... But it's indeed a breaking change and I am not sure it's a step you wish to take. A possible solution can be a compiler flag. We already have strict related compiler flags so why not add something like |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Not sure if there is right / wrong here. I think that we just never made it intentional (in teaching / supported syntax / errors) so people can see it both ways. At this point we are in the v14 RC period so a breaking change, even behind a compiler flag is not an option. And we would really need to dive deeper into desirable behaviour. Error message improvement is a temporary measure that we can do before the v14 final. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
d5d83a4 to
ad6701b
Compare
c1fb807 to
31ad317
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
31ad317 to
befd1bc
Compare
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: public-api
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-for: public-api
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…standalone components This commit adds an extended diagnostics check that verifies that all control flow directives (such as `ngIf`, `ngFor`) have the necessary directives imported in standalone components. Currently there is no diagnostics produced for such cases, which makes it harder to detect and find problems.
befd1bc to
66bdbb1
Compare
|
This PR was merged into the repository by commit 131d029. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.