vscode-sftp icon indicating copy to clipboard operation
vscode-sftp copied to clipboard

sftp sync failed with VSC updated

Open n0423321346 opened this issue 3 years ago • 7 comments

Issue Type: Bug

The sftp config path is locate project/.vsccode/sftp.json, not here "C:\Users\Darren.ssh\config". But when VSC updated to 1.56.1,this is not working.

LOG: [05-12 13:32:54] [info] config at d:\Darren_work\wagon\uwamp\www\git_einvoice\git_einvoicenew {"remotePath":"/data/www/einvoicenew","uploadOnSave":true,"downloadOnOpen":false,"ignore":[],"concurrency":4,"protocol":"sftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"remoteTimeOffsetInHours":0,"name":"TEST","host":"XXXXXXXX","port":22,"username":"","password":""} [05-12 13:32:59] [warn] ENOENT: no such file or directory, open 'C:\Users\Darren.ssh\config' load C:\Users\Darren.ssh\config failed [05-12 13:32:59] [info] [file-save] d:\Darren_work\wagon\uwamp\www\git_einvoice\git_einvoicenew\modules\H1006\H1006DetailsView.php [05-12 13:33:08] [warn] Can't set modified time to the file because Failure [05-12 13:33:08] [error] Error: No such file

[05-12 13:44:29] [info] [file-save] d:\Darren_work\wagon\uwamp\www\git_einvoice\git_einvoicenew\modules\H1006\H1006DetailsView.php [05-12 13:44:30] [error] Error: No such file at SFTPStream._transform (c:\Users\Darren.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2-streams\lib\sftp.js:412:27) at SFTPStream.Transform._read (internal/streams/transform.js:205:10) at SFTPStream._read (c:\Users\Darren.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2-streams\lib\sftp.js:183:15) at SFTPStream.Transform._write (internal/streams/transform.js:193:12) at writeOrBuffer (internal/streams/writable.js:358:12) at SFTPStream.Writable.write (internal/streams/writable.js:303:10) at Channel.ondata (internal/streams/readable.js:719:22) at Channel.emit (events.js:315:20) at addChunk (internal/streams/readable.js:309:12) at readableAddChunk (internal/streams/readable.js:284:9) at Channel.Readable.push (internal/streams/readable.js:223:10) at SSH2Stream. (c:\Users\Darren.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2\lib\Channel.js:167:15) at SSH2Stream.emit (events.js:315:20) at parsePacket (c:\Users\Darren.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2-streams\lib\ssh.js:3288:10) at SSH2Stream._transform (c:\Users\Darren.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2-streams\lib\ssh.js:694:13) at SSH2Stream.Transform._read (internal/streams/transform.js:205:10) at SSH2Stream._read (c:\Users\Darren.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2-streams\lib\ssh.js:253:15) at SSH2Stream.Transform._write (internal/streams/transform.js:193:12) at writeOrBuffer (internal/streams/writable.js:358:12) at SSH2Stream.Writable.write (internal/streams/writable.js:303:10) at Socket.ondata (internal/streams/readable.js:719:22) at Socket.emit (events.js:315:20) at addChunk (internal/streams/readable.js:309:12) at readableAddChunk (internal/streams/readable.js:284:9) at Socket.Readable.push (internal/streams/readable.js:223:10) at TCP.onStreamRead (internal/stream_base_commons.js:188:23) when local ➞ remote d:\Darren_work\wagon\uwamp\www\git_einvoice\git_einvoicenew\modules\H1006\H1006DetailsView.php

Extension version: 1.12.9 VS Code version: Code 1.56.1 (e713fe9b05fc24facbec8f34fb1017133858842b, 2021-05-06T10:08:05.141Z) OS version: Windows_NT x64 10.0.19041

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.70GB (3.03GB free)
Process Argv --crash-reporter-id e01f325e-8006-4d0d-bec6-d8a0d4c0381e
Screen Reader no
VM 57%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt943:30300582
pythonvspyt551cf:30291415
vspre833cf:30267465
pythonptprofiler:30281270
vshan820:30294714
pythondataviewer:30285071
vscus158:30286553
vscgsv2ct:30294353
bridgeflightcf:30299255

n0423321346 avatar May 12 '21 05:05 n0423321346

Same issue here. After updating I am getting the same error.

mntolia avatar May 12 '21 08:05 mntolia

Same problem here after update to new VS Code. SFTP v1.12.9 VS CODE Version: 1.56.0 Commit: cfa2e218100323074ac1948c885448fdf4de2a7f Date: 2021-05-04T21:58:14.757Z Electron: 12.0.4 Chrome: 89.0.4389.114 Node.js: 14.16.0 V8: 8.9.255.24-electron.0 OS: Linux x64 4.15.0-135-generic

jdrescher2006 avatar May 12 '21 08:05 jdrescher2006

The error occurs when uploading file to server. Seems like the file was uploaded successfully, and the modification time was set too. It just shows a false error message anyway.

fengberd avatar May 12 '21 08:05 fengberd

Is this the 'no such file' error? If so there's a fix here: #919

mrjcgoodwin avatar May 12 '21 09:05 mrjcgoodwin

Same problem

ScorpioT1000 avatar May 12 '21 10:05 ScorpioT1000

@mrjcgoodwin : thanks for the suggestion, indeed it is exactly this problem. I was able to fix it like it is suggested in #919

jdrescher2006 avatar May 12 '21 10:05 jdrescher2006

POSTED TO Stack Overflow: https://stackoverflow.com/questions/67506693/vscode-error-no-such-file-sftp-liximomo-extension/67524099#67524099

See post in Issue #934.

jewettg avatar May 13 '21 21:05 jewettg