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

PHPStorm / System Settings / Use "safe write" stops watchify #179

Closed
jrmyio opened this issue Apr 2, 2015 · 1 comment
Closed

PHPStorm / System Settings / Use "safe write" stops watchify #179

jrmyio opened this issue Apr 2, 2015 · 1 comment
Labels

Comments

@jrmyio
Copy link

jrmyio commented Apr 2, 2015

Just came across this issue:
http://stackoverflow.com/questions/27260066/gulp-with-watchify-browserify-runs-twice-then-stops-watching/29412677

After browsing the web for answers for a couple hours I tried editing the file in Notepad instead of PHPStorm IDE. It turned out that browserify/watchify continued to work via notepad.

Thats when I tried to play around with some settings. It turned out PHPStorm / System Settings / Use "safe write", if enabled, stops watchify after PHPStorm edits the file.

All the problems magically disappeared when i turned "safe write" off. I am not sure what IDE you are using, but maybe there is a "Safe Write" option too.

@zertosh
Copy link
Member

zertosh commented Apr 2, 2015

safe write:

modified file will be first saved as a temporary file. If the save operation is completed successfully, the temporary file will renamed, and the original file will be deleted.

Not surprised that that breaks the watcher - since that's not really doing a change but an unlink then an add. I'm not sure that this fixable without some really convoluted logic inside watchify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants