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

generatedFiles not work #260

Closed patrick-abc closed 5 years ago

patrick-abc commented 5 years ago

I have defined

"port": 22, "secure": true, "protocol": "sftp", "uploadOnSave": true, "passive": false, "debug": true, "privateKeyPath": null, "passphrase": null, "agent": null, "allow": [], "ignore": [ "\.vscode", "\.git", "\.DS_Store", "\assets" ], "generatedFiles": { "uploadOnSave": true, "extensionsToInclude": [".css"], "path": "/" }

My .scss files are in the folder /assets. The grunt process generate the .css file in Root. When I change a .scss file in /assets the file (root of the project)/style.css was changed but ftp-sync was not detecting it (and it was not uploading).

NajSurf commented 5 years ago

I think this is because you have /assets in your ignore array. Try deleting that line and update me if it worked

patrick-abc commented 5 years ago

Nope. I changed to:

    "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": [".css"],
        "path": "/"
    }

but no effect. Grunt was generate a new style.css in the Root of project folder, but this .css was not loading up to FTP.

NajSurf commented 5 years ago

Check the new version on the marketplace. It should fix your problem. Also check #269 for more specific information.

patrick-abc commented 5 years ago

Sorry my late reply (year-end stress). Actually version for me still does not work. I have added the \assets folder to ignore list. Grunt generate the file in assets, in config.rb I move the file to the root of project. Could the mistake be there? Side remark: I think with the new plugin version the ftp upload was not as stable as the older one. It happens every now and then; statusbar was write "..was uploading" and doesn't close. When I save the file another time, the upload works.