Natizyskunk / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
394 stars 75 forks source link

Cannot upload .png file while uploading text files successfully #520

Open alex1yaremchuk opened 2 hours ago

alex1yaremchuk commented 2 hours ago

Do you read the FAQ?

Describe the bug Trying to upload .png file results in following warning: The "Upload Active File" command get canceled because of missing targets. (config is ok because it uploads text files near that image)

To Reproduce Steps to reproduce the behavior:

  1. open png file
  2. Run command 'sftp: Upload active file'
  3. See error The "Upload Active File" command get canceled because of missing targets.

Expected behavior Expect file to be uploaded as config is fine

Screenshots

Desktop (please complete the following information):

Extension Logs from Startup - required [10-25 16:17:34] [debug] register command "Cancel All Transfer" from "./commandCancelAllTransfer.ts" [10-25 16:17:34] [debug] register command "Config" from "./commandConfig.ts" [10-25 16:17:34] [debug] register command "List Active Folder" from "./commandListActiveFolder.ts" [10-25 16:17:34] [debug] register command "Open Ssh Connection" from "./commandOpenSshConnection.ts" [10-25 16:17:34] [debug] register command "Set Profile" from "./commandSetProfile.ts" [10-25 16:17:34] [debug] register command "Toggle Output Panel" from "./commandToggleOutputPanel.ts" [10-25 16:17:34] [debug] register command "Upload Changed Files" from "./commandUploadChangedFiles.ts" [10-25 16:17:34] [debug] register command "Create File" from "./fileCommandCreateFile.ts" [10-25 16:17:34] [debug] register command "Create Folder" from "./fileCommandCreateFolder.ts" [10-25 16:17:34] [debug] register command "Delete Remote" from "./fileCommandDeleteRemote.ts" [10-25 16:17:34] [debug] register command "Diff" from "./fileCommandDiff.ts" [10-25 16:17:34] [debug] register command "Diff Active File" from "./fileCommandDiffActiveFile.ts" [10-25 16:17:34] [debug] register command "Download" from "./fileCommandDownload.ts" [10-25 16:17:34] [debug] register command "Download Active File" from "./fileCommandDownloadActiveFile.ts" [10-25 16:17:34] [debug] register command "Download Active Folder" from "./fileCommandDownloadActiveFolder.ts" [10-25 16:17:34] [debug] register command "Download File" from "./fileCommandDownloadFile.ts" [10-25 16:17:34] [debug] register command "Download Folder" from "./fileCommandDownloadFolder.ts" [10-25 16:17:34] [debug] register command "Download Force" from "./fileCommandDownloadForce.ts" [10-25 16:17:34] [debug] register command "Download Project" from "./fileCommandDownloadProject.ts" [10-25 16:17:34] [debug] register command "Edit In Local" from "./fileCommandEditInLocal.ts" [10-25 16:17:34] [debug] register command "List" from "./fileCommandList.ts" [10-25 16:17:34] [debug] register command "List All" from "./fileCommandListAll.ts" [10-25 16:17:34] [debug] register command "Reveal In Explorer" from "./fileCommandRevealInExplorer.ts" [10-25 16:17:34] [debug] register command "Reveal In Remote Explorer" from "./fileCommandRevealInRemoteExplorer.ts" [10-25 16:17:34] [debug] register command "Sync Both Directions" from "./fileCommandSyncBothDirections.ts" [10-25 16:17:34] [debug] register command "Sync Local To Remote" from "./fileCommandSyncLocalToRemote.ts" [10-25 16:17:34] [debug] register command "Sync Remote To Local" from "./fileCommandSyncRemoteToLocal.ts" [10-25 16:17:34] [debug] register command "Upload" from "./fileCommandUpload.ts" [10-25 16:17:34] [debug] register command "Upload Active File" from "./fileCommandUploadActiveFile.ts" [10-25 16:17:34] [debug] register command "Upload Active Folder" from "./fileCommandUploadActiveFolder.ts" [10-25 16:17:34] [debug] register command "Upload File" from "./fileCommandUploadFile.ts" [10-25 16:17:34] [debug] register command "Upload Folder" from "./fileCommandUploadFolder.ts" [10-25 16:17:34] [debug] register command "Upload Force" from "./fileCommandUploadForce.ts" [10-25 16:17:34] [debug] register command "Upload Project" from "./fileCommandUploadProject.ts" [10-25 16:17:34] [debug] register command "Upload Active File To All Profiles" from "./fileMultiCommandUploadActiveFileToAllProfiles.ts" [10-25 16:17:34] [debug] register command "Upload Active Folder To All Profiles" from "./fileMultiCommandUploadActiveFolderToAllProfiles.ts" [10-25 16:17:34] [debug] register command "Upload File To All Profiles" from "./fileMultiCommandUploadFileToAllProfiles.ts" [10-25 16:17:34] [debug] register command "Upload Folder To All Profiles" from "./fileMultiCommandUploadFolderToAllProfiles.ts" [10-25 16:17:34] [debug] register command "Upload Force To All Profiles" from "./fileMultiCommandUploadForceToAllProfiles.ts" [10-25 16:17:34] [debug] register command "Upload Project To All Profiles" from "./fileMultiCommandUploadProjectToAllProfiles.ts" [10-25 16:17:34] [debug] register command "Upload To All Profiles" from "./fileMultiCommandUploadToAllProfiles.ts" [10-25 16:17:35] [info] config at /home/ferma//www {"remotePath":"/www//","uploadOnSave":false,"useTempFile":false,"openSsh":false,"downloadOnOpen":false,"ignore":[],"concurrency":4,"protocol":"ftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"remoteTimeOffsetInHours":0,"remoteExplorer":{"order":0},"name":"Test Environment, ","host":"","port":21,"username":"**","password":"**","context":"www"} [10-25 16:17:41] [trace] run command 'Upload Active File' [10-25 16:17:41] [warn] The "Upload Active File" command get canceled because of missing targets. [10-25 16:17:45] [trace] run command 'Toggle Output Panel'

alex1yaremchuk commented 2 hours ago

I can add to this issue: it happens when image is open (Upload Active file).

If trying to upload from context menu from file explorer then the file gets uploaded, but it ignores Context setting!