Skip to content

CLI seems to ignore changes in code when changedetection sets in #5704

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

Closed
1 of 2 tasks
Rockstaa opened this issue Mar 28, 2017 · 9 comments
Closed
1 of 2 tasks

CLI seems to ignore changes in code when changedetection sets in #5704

Rockstaa opened this issue Mar 28, 2017 · 9 comments

Comments

@Rockstaa
Copy link

Rockstaa commented Mar 28, 2017

Bug Report or Feature Request

  • bug report
  • feature request

Versions

@angular/cli: 1.0.0
node: 7.7.4
os: win32 x64 (Windows 8.1)
@angular/common: 4.0.0
@angular/compiler: 4.0.0
@angular/animations: 4.0.0
@angular/core: 4.0.0
@angular/forms: 4.0.0
@angular/http: 4.0.0
@angular/platform-browser: 4.0.0
@angular/platform-browser-dynamic: 4.0.0
@angular/router: 4.0.0
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.0

Repro steps.

Upgraded our project to [email protected] / [email protected] and run ng-serve made some code improvements and check them after the auto recompiling

The log given by the failure.

I'm starting my developement routine with starting the project with ng serve then I made some code improvements, then the auto re-compile / change detection sets in. It seems that the cli ignores them completly cause nothing happens, there are no changes that I made and no console logs. After ending ng serve and starting it new, all is fine and the changes and logs are available.

@Rockstaa Rockstaa changed the title CLI seems to ignore changes in code when recompiling a change CLI seems to ignore changes in code when changedetection sets in Mar 28, 2017
@Meligy
Copy link
Contributor

Meligy commented Mar 28, 2017

Can you reproduce this from an ng new project?

@Rockstaa
Copy link
Author

Rockstaa commented Mar 29, 2017

Thank you for your reply Meligy, yes I can reproduces this with a fresh ng new project, when i'm changing the title in the app.component.ts it seems that the compiler sometimes ignore the changes. Sometimes it show's the new App Title but most of the time it ignores the changes. I added a video up on this post so you can see the problem.

ngnew-changedetection.zip

@teddymro
Copy link

I happen to have the same problem while using Webstorm. On VS Code works ok... for the moment.

@Rockstaa
Copy link
Author

Rockstaa commented Mar 30, 2017

Thank you teddymro, I played around with webstorm and in Settings -> Appearance & Behavior -> System Settings is a Property called Use "safe write" (save changes to a temporary file first)". If this property is checked changes will temporarily be detected, if it's turned off all works fine for me. Thank you for giving me this little hint for this solution. Maybe you can check this too. I think we could close this issue for now :)

@davido-valdor
Copy link

I have the same problem using VIM.

@Rockstaa
Copy link
Author

I don't know much about VIM but, maybe there is an option like "safe write" in VIM too, to solve this problem?

@filipesilva
Copy link
Contributor

Dupe of #5117

@filipesilva
Copy link
Contributor

There is a solution for Vim there as well.

@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

5 participants