I have noticed a wrong behaviour of watch when nospawn is true. At least, watch doesn't behave the same as when nospawn is false.
The use case I am considering is a frequent use case where a change to a source file triggers a change to a destination file. This is typically the case when files are compiled (e.g. .sass files into .css), or copied to a production folder.
For the sake of simplification, I have built the following example:
With this configuration, a change of the source file should trigger the copy task, which modifies the destination file. This change is unfortunately not detected by watch, as shown by the traces:
I have noticed a wrong behaviour of watch when
nospawn
istrue
. At least, watch doesn't behave the same as whennospawn
isfalse
.The use case I am considering is a frequent use case where a change to a
source
file triggers a change to adestination
file. This is typically the case when files are compiled (e.g..sass
files into.css
), or copied to a production folder.For the sake of simplification, I have built the following example:
watch is configured to trigger the copy when the
source
file is modified. It also watches thedestination
file. Note thenospawn: true
option:With this configuration, a change of the
source
file should trigger the copy task, which modifies thedestination
file. This change is unfortunately not detected by watch, as shown by the traces:On the other hand, when specifying
nospawn: false
, the modification of thedestination
file is correctly detected:Although using
nospawn: false
is a good workaround, it has much lower performances, hence it would be great if the issue could be fixed.