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

Gulp watch tasks fails on temporary files created by IDE #154

Closed
jodator opened this issue May 10, 2016 · 3 comments
Closed

Gulp watch tasks fails on temporary files created by IDE #154

jodator opened this issue May 10, 2016 · 3 comments
Labels
resolution:duplicate This issue is a duplicate of another issue and was merged into it. type:bug This issue reports a buggy (incorrect) behavior. type:improvement This issue reports a possible enhancement of an existing feature.

Comments

@jodator
Copy link
Contributor

jodator commented May 10, 2016

I have some problems with gulp build --watch when using it inside IDE (PHPStorm).

The problem is that probably PHPStorm creates temporary file when saving source file.
Example error:

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, stat '/home/jodator/projects/cksource/ckeditor5/git/ckeditor5-engine/src/treemodel/delta/insertdelta.js___jb_tmp___'
    at Error (native)

To address this we could specify patterns of files to watch only for those that matters (js, jsdoc, html, scss, etc) but this might be cubersome. Also we could exclude jb_tmp as this is probably used by JetBrains products.

@Reinmar Reinmar added type:bug This issue reports a buggy (incorrect) behavior. type:improvement This issue reports a possible enhancement of an existing feature. labels May 10, 2016
@Reinmar
Copy link
Member

Reinmar commented May 10, 2016

We can't whitelist files that must be included, so we must blacklist them. We simply won't be able to predict all kinds of files which need to be copied by the builder.

@szymonkups
Copy link
Contributor

I had similar problem with WebStorm - I've disabled Use "safe write" (save changes to a temporary file first) in Apperance & Behavior -> System Settings. It's not the best solution but it's working for me for a while without any problems.

@Reinmar
Copy link
Member

Reinmar commented Aug 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution:duplicate This issue is a duplicate of another issue and was merged into it. type:bug This issue reports a buggy (incorrect) behavior. type:improvement This issue reports a possible enhancement of an existing feature.
Projects
None yet
Development

No branches or pull requests

3 participants