dw-utils icon indicating copy to clipboard operation
dw-utils copied to clipboard

dw-utils wrongly uploading files as if they were changed while in fact was just a folder search / file selection

Open ghost opened this issue 4 years ago • 2 comments

Hi It seems that since last Windows 10 update 2004, something has changed in the way the windows triggers the file changes, and now dw-utils is having issues.

If you have dw-utils watch running for a while on a directory that was not focused/opened neither had any file changes for a while (like 10 to 15 minutes), if you open the directory and just select the file (on windows explorer, or opening on VS Code), dw-utils will trigger an upload of that file.

And if you perform a folder search in VS Code for example, dw-utils will upload ALL FILES as the search was changing every single file on your workspace folder.

Anyone else experiencing this? Any ideas to fix?

ghost avatar Oct 05 '20 17:10 ghost

Unfortunately I no longer work on projects that use SalesForce Commerce Cloud, so I am not maintaining this project anymore. However I would be willing to take pull requests.

All filesystem events in dw-utils come from the chokidar package, so you may search to see if this issue has happened for other users of that package. You can also add logging in upload to see if the file events are different for this type of usage. It is also possible that updating to a newer version of the dependencies would solve the issue as well.

MobiusHorizons avatar Oct 05 '20 19:10 MobiusHorizons

Hi @MobiusHorizons , thanks for the reply

I've installed also the latest version of chokidar globally (i use dw-utils globally) but when I ran a npm list chokidar -g I still see the older version inside dw-utils dependency

+-- [email protected] 
+-- [email protected]
| `-- [email protected]
`-- [email protected]
  `-- [email protected]
    `-- [email protected]

Or is this just a list and dw-utils will use the newer version? Sorry but I not really an expert on how npm packages and dependencies work.

ghost avatar Oct 05 '20 21:10 ghost