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

ng build --watch broken re build process #8054

Closed
bschauhan opened this issue Oct 14, 2017 · 2 comments
Closed

ng build --watch broken re build process #8054

bschauhan opened this issue Oct 14, 2017 · 2 comments

Comments

@bschauhan
Copy link

i have fire "ng build --watch" command. but, only one time build. not building continue after save.

My version details:

Versions.

@angular/cli: 1.4.7
node: 6.10.3
os: linux x64
@angular/animations: 4.4.5
@angular/common: 4.4.5
@angular/compiler: 4.4.5
@angular/compiler-cli: 4.4.5
@angular/core: 4.4.5
@angular/forms: 4.4.5
@angular/http: 4.4.5
@angular/platform-browser: 4.4.5
@angular/platform-browser-dynamic: 4.4.5
@angular/platform-server: 4.4.5
@angular/router: 4.4.5
@angular/cli: 1.4.7
@angular/language-service: 4.4.5
typescript: 2.5.3

Repro steps.

The log given by the failure.

Desired functionality.

Mention any other details that might be useful.

@bschauhan
Copy link
Author

bschauhan commented Oct 14, 2017

I found this issue... this issue found in Linux

At my side, I found the issue: the system that detects changes (inotify) can't handle so much watches by default. To change the amount of watches it can handle (=the maximum amount of files that will be in the project) you must run this command:

echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches

The problem with inotify is reseting this counter every time you restart your computer. In the previous version, there was an alert to tell that the whole project couldn't be observed. So we knew we had to run this command. It's not the case anymore. Something, somehow, somewhere should be done so that this file detection always works out of the box on linux.

More details: #2389 (comment)

@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 Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant