-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload on Save doesnt work #154
Comments
Same thing here on Windows 10. |
Same on Linux |
It seems like the Visual Studio Code 1.11 update broke the upload on save functionality. :( |
Update - FYI, try reinstalling the extension. After upgrading to VS Code 1.11 I was able to get ftp-sync to start working again. |
Mine was on a fresh install of VS Code, as I had never used it before and wanted to see if it was feasible to move from PHPStorm. |
Im running VSCode 1.11.2, FTP Sync version 0.3.3, centos 7 x 64 reinstalled the ftp sync ext, problem persists, changes made to a file, file is saved, no syncing is done with remote location, I have to manually right click on the file and select 'Ftp-Sync: Upload File/Folder' screenshots, |
Not sure if this will help but after reinstalling VS Code (and deleting the setting folder from my user folder), i finally got it working again. Also these new lines in the confguration: "generatedFiles": { This may be incidental but i set the "path" property to the local path of my project. ie' "D:/foo/bar/". Not sure if it was the reinstall or the change in "path" but it's all working again for me. Maybe somebody will find this useful. |
I think I'll just stick to PHPStorm :-) |
I think i found the problem, if uploadOnSave is set to true inside the generatedFiles configuration the file gets ignored unless you specify the extension in the "extensionsToInclude" array, i don't know if this is working as intended, copying @jsmilovic to figure this out. For now i suggest you guys just set the uploadOnSave option to false inside the generatedFiles subsection and everything should be ok, please let me know if this helps you! edit: with more testing i found out that if you put a value inside the "path" variable in the generatedFiles section everything gets uploaded properly, i'm going to post a tentative fix to this problem soon by putting an if-clause that excludes the break if the path is empty (at the moment an empty path value basically makes the whole project a generated file dir) |
i just committed a fix on the main branch, please let me know if the feature is now working again Thank you |
that worked. thanks for the tip! |
facing the same issue on VSCode 1.15.1 and FTP-sync 0.3.3 anyone else facing this on the latest version of VSCode, i installed this extension yesterday |
.vscode/ftp-sync.json needs the current working path in generatedFiles :
Windows 10, VSCode 1.15.1 and FTP-sync 0.3.3 |
@kalieye Thanks! that was it for me - maybe worth updating the description: |
I'm a first time VSCode user, and the first thing I needed was an FTP extension. After setting @kalieye I think that the extension could extra logic to better handle this, as the UX for new users is quite frustrating in this regard. Perhaps a helpful thing would be for the extension to automatically ignore the the second |
Hi guys! I had the same situation and after setting the extensionsToInclude in generatedFiles automatic upload on save is working again. In my case this is how I set it up:
I am running VS Code 1.26.1 and ftp-sync 0.3.3 Ivan |
It's not working again in VS code Version: 1.33.0 :( |
I have opposite situation. I set Ftp-sync version 0.3.8 does not have this problem. |
Version 0.3.9 - automatic upload works once and then stucks when trying for the consequent times. It doesn't work until I restart the VSC. Thanks for the extension though, it's VERY USEFUL! |
I had this situation and used "/" slash for the path in "generatedfiles" section and auto upload works well now |
Restarting VSCode seemed to work for me 🤷 |
i also have this problem. i don't want my local files to be automatically uploaded. this breaks my project. i am going to disable it until it is resolved. windows 10, vscode 1.40.2 |
Me too in 1.44.0 |
Same here: win 10 vscode 1.45.1 |
This worked for me |
Edit the following file to FIX:-For Windows: File will look like this:
|
Just use simple workaround it will sync every file on save |
"Workspace": { |
running VS Code on centos 7, my ftp-sync.json
{
"remotePath": "/opt",
"host": "ny02",
"username": "root",
"password": "",
"port": 22,
"secure": true,
"protocol": "sftp",
"uploadOnSave": true,
"passive": false,
"debug": true,
"privateKeyPath": "/root/.ssh/id_rsa",
"passphrase": null,
"ignore": [
"\.vscode",
"\.git",
"\.DS_Store"
],
"generatedFiles": {
"uploadOnSave": true,
"extensionsToInclude": [],
"path": ""
}
}
every time i save a local file, it doesnt get FTPd to the target. I have to do this manually. Am I missing a param?
The text was updated successfully, but these errors were encountered: