lukasz-wronski / vscode-ftp-sync

Ftp Sync plugin for Visual Studio Code
https://marketplace.visualstudio.com/items/lukasz-wronski.ftp-sync
320 stars 85 forks source link

uploadOnSave not working on Windows #321

Open Karl48071 opened 4 years ago

Karl48071 commented 4 years ago

The uploadOnSave feature doesn't appear to be working even when set to true. ftp-sync 0.3.9 VS Code 1.47.3

{ "remotePath": "/mypath", "host": "myhost", "username": "myun", "password": "mypw", "port": 22, "secure": true, "protocol": "sftp", "uploadOnSave": true, "passive": false, "debug": true, "privateKeyPath": null, "passphrase": null, "agent": null, "allow": [], "ignore": [ "\.vscode", "\.git", "\.DS_Store" ], "generatedFiles": { "uploadOnSave": true, "extensionsToInclude": [".php",".html",".js",".css"], "path": "" } }

fmjfei commented 4 years ago

Me too. When I save a file of 'test.txt'. I can find an error: Ftp-sync: Uploading .test.txt.swp failed: Error: ENOENT: no such file or directory, open 'c:\.test.txt.swp'

Eamead commented 4 years ago

I found uninstalling and reinstalling fixed this for me.