Natizyskunk / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
373 stars 68 forks source link

Error: prop "host" fails because ["host" is required] #459

Open yehudaTiram opened 6 months ago

yehudaTiram commented 6 months ago

Do you read the FAQ?

Describe the bug When I activate a scss watcher I can see in the log [error] Error: Config validation fail: prop "host" fails because ["host" is required]. You might want to set a profile first. But host is defined and actually the upload is working. Also when I unset a profile the status bar does not update to reflect this change.

To Reproduce Steps to reproduce the behavior: activate a watcher or Just unset profile

Expected behavior The Error should disappear and the status bar should update and remove the profile name when unset.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Extension Logs from Startup - required [12-04 18:14:28] [debug] register command "Cancel All Transfer" from "./commandCancelAllTransfer.ts" [12-04 18:14:28] [debug] register command "Config" from "./commandConfig.ts" [12-04 18:14:28] [debug] register command "List Active Folder" from "./commandListActiveFolder.ts" [12-04 18:14:28] [debug] register command "Open Ssh Connection" from "./commandOpenSshConnection.ts" [12-04 18:14:28] [debug] register command "Set Profile" from "./commandSetProfile.ts" [12-04 18:14:28] [debug] register command "Toggle Output Panel" from "./commandToggleOutputPanel.ts" [12-04 18:14:28] [debug] register command "Upload Changed Files" from "./commandUploadChangedFiles.ts" [12-04 18:14:28] [debug] register command "Create File" from "./fileCommandCreateFile.ts" [12-04 18:14:28] [debug] register command "Create Folder" from "./fileCommandCreateFolder.ts" [12-04 18:14:28] [debug] register command "Delete Remote" from "./fileCommandDeleteRemote.ts" [12-04 18:14:28] [debug] register command "Diff" from "./fileCommandDiff.ts" [12-04 18:14:28] [debug] register command "Diff Active File" from "./fileCommandDiffActiveFile.ts" [12-04 18:14:28] [debug] register command "Download" from "./fileCommandDownload.ts" [12-04 18:14:28] [debug] register command "Download Active File" from "./fileCommandDownloadActiveFile.ts" [12-04 18:14:28] [debug] register command "Download Active Folder" from "./fileCommandDownloadActiveFolder.ts" [12-04 18:14:28] [debug] register command "Download File" from "./fileCommandDownloadFile.ts" [12-04 18:14:28] [debug] register command "Download Folder" from "./fileCommandDownloadFolder.ts" [12-04 18:14:28] [debug] register command "Download Force" from "./fileCommandDownloadForce.ts" [12-04 18:14:28] [debug] register command "Download Project" from "./fileCommandDownloadProject.ts" [12-04 18:14:28] [debug] register command "Edit In Local" from "./fileCommandEditInLocal.ts" [12-04 18:14:28] [debug] register command "List" from "./fileCommandList.ts" [12-04 18:14:28] [debug] register command "List All" from "./fileCommandListAll.ts" [12-04 18:14:28] [debug] register command "Reveal In Explorer" from "./fileCommandRevealInExplorer.ts" [12-04 18:14:28] [debug] register command "Reveal In Remote Explorer" from "./fileCommandRevealInRemoteExplorer.ts" [12-04 18:14:28] [debug] register command "Sync Both Directions" from "./fileCommandSyncBothDirections.ts" [12-04 18:14:28] [debug] register command "Sync Local To Remote" from "./fileCommandSyncLocalToRemote.ts" [12-04 18:14:28] [debug] register command "Sync Remote To Local" from "./fileCommandSyncRemoteToLocal.ts" [12-04 18:14:28] [debug] register command "Upload" from "./fileCommandUpload.ts" [12-04 18:14:28] [debug] register command "Upload Active File" from "./fileCommandUploadActiveFile.ts" [12-04 18:14:28] [debug] register command "Upload Active Folder" from "./fileCommandUploadActiveFolder.ts" [12-04 18:14:28] [debug] register command "Upload File" from "./fileCommandUploadFile.ts" [12-04 18:14:28] [debug] register command "Upload Folder" from "./fileCommandUploadFolder.ts" [12-04 18:14:28] [debug] register command "Upload Force" from "./fileCommandUploadForce.ts" [12-04 18:14:28] [debug] register command "Upload Project" from "./fileCommandUploadProject.ts" [12-04 18:14:28] [debug] register command "Upload Active File To All Profiles" from "./fileMultiCommandUploadActiveFileToAllProfiles.ts" [12-04 18:14:28] [debug] register command "Upload Active Folder To All Profiles" from "./fileMultiCommandUploadActiveFolderToAllProfiles.ts" [12-04 18:14:28] [debug] register command "Upload File To All Profiles" from "./fileMultiCommandUploadFileToAllProfiles.ts" [12-04 18:14:28] [debug] register command "Upload Folder To All Profiles" from "./fileMultiCommandUploadFolderToAllProfiles.ts" [12-04 18:14:28] [debug] register command "Upload Force To All Profiles" from "./fileMultiCommandUploadForceToAllProfiles.ts" [12-04 18:14:28] [debug] register command "Upload Project To All Profiles" from "./fileMultiCommandUploadProjectToAllProfiles.ts" [12-04 18:14:28] [debug] register command "Upload To All Profiles" from "./fileMultiCommandUploadToAllProfiles.ts" [12-04 18:14:28] [info] config at d:\local-clients-sites\barlaw.local\wp-content\themes\Barnea {"remotePath":"./","uploadOnSave":false,"useTempFile":false,"openSsh":false,"downloadOnOpen":false,"ignore":[".vscode",".DS_Store","__debug_bin","*.exe",".git",".gitignore",".history","node_modules","SQL-clauses"],"concurrency":4,"protocol":"sftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"remoteTimeOffsetInHours":0,"remoteExplorer":{"order":0},"name":"barnea_theme_dev","watcher":{"files":"*/.{css,css.map,js}","autoUpload":true,"autoDelete":false},"profiles":{"barnea_theme_dev":{"protocol":"ftp","host":"68.183.221.64","username":"barneadev1@barlaw.co.il","password":"h74xPEjNe9KO","remotePath":"/wp-content/themes/Barnea/","uploadOnSave":true,"printDebugLog":true}}} [12-04 18:14:38] [info] [watcher/updated] d:\local-clients-sites\barlaw.local\wp-content\themes\Barnea\style.css.map [12-04 18:14:38] [warn] ENOENT: no such file or directory, open 'C:\Users\xxxxx.ssh\config' load C:\Users\xxxxx.ssh\config failed [12-04 18:14:38] [error] Error: Config validation fail: prop "host" fails because ["host" is required]. You might want to set a profile first. at t.default.getConfig (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:259698) at l (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:296263) at Object. (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:296960) at Generator.next () at c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:295920 at new Promise () at n (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:295665) at Object. (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:296899) at c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:325919 at Generator.next () at c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:325361 at new Promise () at n (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:325106) at c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:325767 at Array.forEach () at c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:325755 at E (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:169908) at g (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:169964) at v (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:170283) at h.E [as value] (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:326490) at c.y (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:1902) at c.fire (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:2119) at h.value (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:127:29108) at c.y (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:1902) at c.z (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:1972) at c.fire (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:2188) at P.$onFileEvent (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:127:30522) at n.S (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:134:10836) at n.Q (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:134:10602) at n.M (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:134:9686) at n.L (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:134:8762) at h.value (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:134:7565) at c.y (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:1902) at c.fire (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:2119) at d.fire (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:96:14047) at h.value (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:153:7918) at c.y (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:1902) at c.fire (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:2119) at d.fire (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:96:14047) at MessagePortMain. (c:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:153:6198) at MessagePortMain.emit (node:events:513:28) at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:367) upload d:\local-clients-sites\barlaw.local\wp-content\themes\Barnea\style.css.map [12-04 18:14:39] [info] [watcher/updated] d:\local-clients-sites\barlaw.local\wp-content\themes\Barnea\style.css [12-04 18:14:39] [error] Error: Config validation fail: prop "host" fails because ["host" is required]. You might want to set a profile first. at t.default.getConfig (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:259698) at l (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:296263) at Object. (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:296960) at Generator.next () at c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:295920 at new Promise () at n (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:295665) at Object. (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:296899) at c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:325919 at Generator.next () at c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:325361 at new Promise () at n (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:325106) at c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:325767 at Array.forEach () at c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:325755 at E (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:169908) at D (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:170183) at Timeout.y [as _onTimeout] (c:\Users\xxxxx.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:170073) at listOnTimeout (node:internal/timers:569:17) at processTimers (node:internal/timers:512:7) upload d:\local-clients-sites\barlaw.local\wp-content\themes\Barnea\style.css .