lukasz-wronski / vscode-ftp-sync

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

SFTP upload with user/password does not work #174

Open mrkafk opened 7 years ago

mrkafk commented 7 years ago

Manual upload works fine (Sync current file to remote), but when I save the file after modification there's no upload. My settings:

{
    "remotePath": "/...",
    "host": "centos_linux",
    "username": "auser",
    "password": "apass",
    "port": 22,
    "secure": true,
    "protocol": "sftp",
    "uploadOnSave": true,
    "passive": false,
    "debug": true,
    "privateKeyPath": null,
    "passphrase": null,
    "ignore": [
        "\\.vscode",
        "\\.git",
        "\\.DS_Store"
    ],
    "generatedFiles": {
        "uploadOnSave": false,
        "extensionsToInclude": [],
        "path": ""
    }
}
ArvinH commented 7 years ago

Have you tried to re-open vscode and do it again? It works for me every time I encounter the same issue.

corentin-cres commented 7 years ago

Same issue here, auto upload on save does not work. I only tested with SFTP though.

Tried re-open vscode, didnt work :)

corentin-cres commented 7 years ago

I removed the whole "generatedFiles" index in the ftp-config.json and it's working now. That was the default generatedFiles value, there must be a bug lurking somewhere ;)

omgdracula commented 7 years ago

@johndoudou I was having issues today with it actually not updating the files. The timestamps checked out in Filezilla, but code never actually got uploaded. I tried what you suggested by removing the whole generatedFiles index and it works now. So definitely a bug is lurking with in that bit of code. Thanks!

mrkafk commented 7 years ago

It works now, but I had to:

  1. Remove entire "generatedFiles" section

  2. Restart VSCode

to get it working.