liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.51k stars 265 forks source link

Please fix "Upload changed files" doesn't work #908

Open mean-cj opened 3 years ago

mean-cj commented 3 years ago

Do you read the FAQ?

Describe the bug "Upload changed files" doesn't work , first issued start on 2019, and now 2021 this problem persists https://github.com/liximomo/vscode-sftp/issues/545 https://github.com/liximomo/vscode-sftp/issues/580 https://github.com/liximomo/vscode-sftp/issues/854

@wandbferreira talk about this problem

Changed Files button doen't work if you open a link folder, or a subfolder. So open the git root folder in vscode, and everything will work.

@danieleiobbi sugggestion creat a keyboard shortcut https://github.com/liximomo/vscode-sftp/issues/854#issuecomment-771527376

Please help to fix Thank you.

MTrykar commented 3 years ago

I am currently facing the same situation on Mac OS. Downloading works fine and the console also tells me so when I upload or sync from local to remote, but when I check on my FTP server the files are not there.

matthewjschultz commented 3 years ago

+1

wandway commented 3 years ago

I made a short fix in file "commandUploadChangedFiles.ts", and repackage this plugin. It works for me.

  await Promise.all(creates.concat(uploads).map(change => {
    try {
      uploadFile(change.uri)
    } catch (e) {
      console.log('upload err', e);
    }
  }));
  await Promise.all(
    renames.map(change => {
      try {
        renameRemote(change.originalUri, { originPath: change.renameUri!.fsPath });
      } catch (e) {
        console.log('upload err', e);
      }
    })
  );
kythuatwebso commented 3 years ago

I made a short fix in file "commandUploadChangedFiles.ts", and repackage this plugin. It works for me.

  await Promise.all(creates.concat(uploads).map(change => {
    try {
      uploadFile(change.uri)
    } catch (e) {
      console.log('upload err', e);
    }
  }));
  await Promise.all(
    renames.map(change => {
      try {
        renameRemote(change.originalUri, { originPath: change.renameUri!.fsPath });
      } catch (e) {
        console.log('upload err', e);
      }
    })
  );

Hi Bro,

Where is file "commandUploadChangedFiles.ts" and how to do repackage this plugin. how to fix ? you can say detail ?

Thanks!

wandway commented 3 years ago

I made a short fix in file "commandUploadChangedFiles.ts", and repackage this plugin. It works for me.

  await Promise.all(creates.concat(uploads).map(change => {
    try {
      uploadFile(change.uri)
    } catch (e) {
      console.log('upload err', e);
    }
  }));
  await Promise.all(
    renames.map(change => {
      try {
        renameRemote(change.originalUri, { originPath: change.renameUri!.fsPath });
      } catch (e) {
        console.log('upload err', e);
      }
    })
  );

Hi Bro,

Where is file "commandUploadChangedFiles.ts" and how to do repackage this plugin. how to fix ? you can say detail ?

Thanks!

I mean clone this repo and build the plugin.

mean-cj commented 2 years ago

i recommend to use. https://github.com/Natizyskunk/vscode-sftp