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

Error: No such file VS CODE 1.56

Open rogerthedeveloper opened this issue 4 years ago • 17 comments

[05-26 19:55:06] [info] remote ➞ local /dashboard.php [05-26 19:55:11] [info] [file-save] /dashboard.php [05-26 19:55:12] [error] Error: No such file at SFTPStream._transform (/Users/rspro/.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 (/Users/rspro/.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 Channel.EventEmitter.emit (domain.js:467:12) 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. (/Users/rspro/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2/lib/Channel.js:167:15) at SSH2Stream.emit (events.js:315:20) at SSH2Stream.EventEmitter.emit (domain.js:467:12) at parsePacket (/Users/rspro/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/ssh.js:3288:10) at SSH2Stream._transform (/Users/rspro/.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 (/Users/rspro/.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 Socket.EventEmitter.emit (domain.js:467:12) 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 /dashboard.php

rogerthedeveloper avatar May 27 '21 02:05 rogerthedeveloper

I have the same issue over sftp

Dennislampert avatar May 27 '21 06:05 Dennislampert

Same issue over sftp same stack trace

eco747 avatar May 27 '21 07:05 eco747

found this: https://github.com/liximomo/vscode-sftp/issues/919#issuecomment-838586635

Dennislampert avatar May 27 '21 08:05 Dennislampert

Just for anyone not wanting to follow the #919 comment:

Do a search inside ~/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/sftp.js for options.emitClose = false; Add options.autoDestroy = false; after both instances.

This solved this incredibly annoying issue for me

RPINerd avatar May 27 '21 18:05 RPINerd

Still got error, i have put both options emitclose.

any other recommended alternative for this kind of extension?

mgilank avatar May 28 '21 03:05 mgilank

1.5.5 works

suqingdong avatar May 28 '21 06:05 suqingdong

Some files are corrupted on upload :(

eco747 avatar May 28 '21 10:05 eco747

Still got error, i have put both options emitclose.

any other recommended alternative for this kind of extension?

Happened to me too but it's resolved once i restarted vscode.

rarahim75 avatar May 30 '21 02:05 rarahim75

@RPINerd Thanks

ZellerDorjee avatar May 31 '21 06:05 ZellerDorjee

@RPINerd Thanks!!

brett-shenk avatar Jun 10 '21 11:06 brett-shenk

Just for anyone not wanting to follow the #919 comment:

Do a search inside ~/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/sftp.js for options.emitClose = false; Add options.autoDestroy = false; after both instances.

This solved this incredibly annoying issue for me

Fixed for me on Windows 10 with sftp plugin version 1.12.9. The VSCode extensions path on Windows is likely in %userprofile%\.vscode\extensions\. From there you should be able to find the path/file mentioned by @RPINerd

caleywoods avatar Jun 11 '21 14:06 caleywoods

https://github.com/liximomo/vscode-sftp/issues/919

bitbytebit1 avatar Jul 01 '21 15:07 bitbytebit1

You can try my version, i've fixed a lot of bugs, maybe this will fix yours 🙂 https://github.com/Natizyskunk/vscode-sftp/releases

Natizyskunk avatar Jul 06 '21 01:07 Natizyskunk

Thanks @RPINerd worked fine here (OS X 10.15.7)

t0in avatar Jul 20 '21 17:07 t0in

thanks @Natizyskunk work fine!!!!

fbastos avatar Jul 22 '21 14:07 fbastos

This also fixed the issue for me... very frustrated first user experience...

atoomic avatar Jul 28 '21 05:07 atoomic

https://github.com/liximomo/vscode-sftp/issues/941#issuecomment-849849554

fixed it.

clayms avatar Dec 22 '21 18:12 clayms