romanschejbal / gassetic

Assetic replacement based on the gulp build tool
MIT License
177 stars 17 forks source link

Missing file on save #46

Closed jdeniau closed 3 months ago

jdeniau commented 9 years ago

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