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

Pass forked type checker Semantic errors to the output when running build --watch #13901

Closed
Usurer opened this issue Mar 13, 2019 · 3 comments
Closed
Labels
feature Issue that requests a new feature

Comments

@Usurer
Copy link

Usurer commented Mar 13, 2019

🚀 Feature request

Command (mark with an x)

- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description

As described in #13870 semantic diagnostic errors from the forked type checker aren't passed to the final diagnostic messages and cannot be read by Webpack plugins. This happens during second and further runs of the build --watch.

Describe the solution you'd like

The straightforward solution would be to add one more option to the ng build.
But, since I don't really get why we don't collect semantic diagnostics from the forked type checker for the 2-nd and further runs, I'd say that we could just set diagMode in AngularCompilerPlugin._emit() to DiagnosticMode.All.

Describe alternatives you've considered

The working solution is to set forkTypeChecker build option to false. But my assumption is that on the big projects it means slower builds.

@alan-agius4 alan-agius4 added the feature Issue that requests a new feature label Mar 14, 2019
@Usurer
Copy link
Author

Usurer commented Mar 16, 2019

Guys, could anyone give any advice regarding the way I should test this feature before making a pull request?

@alan-agius4
Copy link
Collaborator

This is by design and it is intended that type errors aren't sent to Webpack when using the forked type checker. If they were, and they blocked the compilation, then there's no reason to in having a forked type checker turned on as rebuilds would just take much longer.

See: #15887

@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 Jan 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Issue that requests a new feature
Projects
None yet
Development

No branches or pull requests

2 participants