-
Notifications
You must be signed in to change notification settings - Fork 267
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
uploadOnSave not working in context mode? #510
Comments
Extension Logs from Startup - required
|
Here the logs (nothing at all is logged when I save the file): [debug] register command "Cancel All Transfer" from "./commandCancelAllTransfer.ts" |
Please try 1.12.1-debug and submit the logs. |
Here it is. I have a new line in the log "[info] save file...", but still no upload: [debug] register command "Cancel All Transfer" from "./commandCancelAllTransfer.ts" |
Great. I think I know where is the problem. Please try the new 1.12.1-debug. |
Now I have this lines at the end of the log: [info] remote -> local c:\users\Guido Selva.vscode\SFTP\FAF\testguido.txt |
I also have the same issue and wait for a new update. |
OK. I think the newest 1.12.1-debug should fix this. Try it. @guidoselva |
Not yet. Here the new lines in the log file: [info] [file-save] c:\Users\GAKS\testguido.txt |
Sorry, it is actually working now. The error comes from another PC, where I must have another problem... Thanks for the fix |
path should be relative |
I have this problem as well, no matter what I have done, it simply will not upload on save, no messages in debug output either, manually choosing to upload works fine. I would really like to figure out how to get upload on save working. I'm coming from Sublime Text and the most useful part of sublime for me is the SFTP plugin, it simply works. I have tried the patch file above... I do not get any debug output when saving the file, only when opening remote files, or after right clicking on the file and choosing upload. I have this in my config. Anything I'm missing? |
@bowenac Please open a new issue. |
where you able to fix this? |
I am currently migrating from Notepad++ to VS Code, and your extension is the only possible replacement for the wonderful NppFTP plugin (which has always been the only true reason for me to stick with Notepad++).
I need to access different servers, so I tried the "profiles" config, but switching profile with a manual command is too annoying for me. So I tried the "context" config (whatever it means... not clear in the documentation) with this setting file:
[
{
"name": "server1",
"context": "/users/myuser/.vscode/SFTP/FAF",
"host": "10.10.10.10",
"protocol": "sftp",
"username": "myuser",
"agent": "pageant",
"autoUpload": true,
"uploadOnSave": true,
"remotePath": "/www"
},
{
"name": "server2",
"context": "/users/myuser/.vscode/SFTP/SLK",
"host": "10.10.10.20",
"protocol": "sftp",
"username": "myuser",
"agent": "pageant",
"autoUpload": true,
"uploadOnSave": true,
"remotePath": "/www"
}
]
I can perfectly browse the servers, download remote files, edit them, but the "uploadOnSave" option does not work at all. Nothing appears in the log when saving the file. Manual upload woks fine.
In the "simple" and "profiles" config the "uploadOnSave" option works fine.
Why is "uploadOnSave" not working in context mode? Am I missing something in my configuration?
Thanks, and congratulations for this vital extension.
The text was updated successfully, but these errors were encountered: