gassetic icon indicating copy to clipboard operation
gassetic copied to clipboard

Missing file on save

Open jdeniau opened this issue 9 years ago • 0 comments

Hi,

I work on a remote server, and very often, when gassetic is in watch mode, I got this error:

[11:52:49] ✗ FAIL: Missing 1 expected files: path/of/the/file/i/just/saved.js
[11:52:49] Tested 38 tests, 37 passes, 1 failures: FAIL

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error in plugin 'gulp-expect-file'
Failed 1 expectations

I think that the "watcher" send an event at the start of the "saving" process. But the file may take some time to save, and if gassetic lookup the file in the same time, it fails.

Is it possible to wait the saving process to be finish, or to add (maybe as an option) a "wait" timeout, maybe with a number of retries ?

Thanks

jdeniau avatar Mar 24 '15 11:03 jdeniau