Vscode generates a file error from downloading from the server: [error] Error: No such file [Although the file was downloaded, the error was not resolved]

Problem Description

I did an experiment and wanted to download the generated data, but an error was reported, and it was a long mess.

[02-11 10:22:44] [error] Error: No such file
	at 101 (/home/LIST_2080Ti/.vscode-server/extensions/natizyskunk.sftp-1.16.1/node_modules/ssh2/lib/protocol/SFTP.js:2704:19)
	at SFTP.push (/home/LIST_2080Ti/.vscode-server/extensions/natizyskunk.sftp-1.16.1/node_modules/ssh2/lib/protocol/SFTP.js:278:11)
	at CHANNEL_DATA (/home/LIST_2080Ti/.vscode-server/extensions/natizyskunk.sftp-1.16.1/node_modules/ssh2/lib/client.js:525:23)
	at 94 (/home/LIST_2080Ti/.vscode-server/extensions/natizyskunk.sftp-1.16.1/node_modules/ssh2/lib/protocol/handlers.misc.js:859:16)
	at Protocol.onPayload (/home/LIST_2080Ti/.vscode-server/extensions/natizyskunk.sftp-1.16.1/node_modules/ssh2/lib/protocol/Protocol.js:2025:10)
	at AESGCMDecipherNative.decrypt (/home/LIST_2080Ti/.vscode-server/extensions/natizyskunk.sftp-1.16.1/node_modules/ssh2/lib/protocol/crypto.js:987:26)
	at Protocol.parsePacket [as _parse] (/home/LIST_2080Ti/.vscode-server/extensions/natizyskunk.sftp-1.16.1/node_modules/ssh2/lib/protocol/Protocol.js:1994:25)
	at Protocol.parse (/home/LIST_2080Ti/.vscode-server/extensions/natizyskunk.sftp-1.16.1/node_modules/ssh2/lib/protocol/Protocol.js:293:16)
	at Socket.<anonymous> (/home/LIST_2080Ti/.vscode-server/extensions/natizyskunk.sftp-1.16.1/node_modules/ssh2/lib/client.js:713:21)
	at Socket.emit (node:events:526:28)
	at addChunk (node:internal/streams/readable:315:12)
	at readableAddChunk (node:internal/streams/readable:289:9)
	at Socket.Readable.push (node:internal/streams/readable:228:10)
	at TCP.onStreamRead (node:internal/stream_base_commons:190:23) 

Screenshot below:

 

solution

While reporting an error, my files can be uploaded locally. But once downloaded, an error is reported.

Until later, when I was exploring locally, I found that the function of downloading from the server can be realized locally, as long as your vscode has the sftp plug-in installed. There is no need to download from the server at all.

Select the folder you want to synchronize locally, and the files generated on the server can be synchronized locally. One click to get it done. No trouble at all. 

Although this problem has been solved, but in terms of error reporting, it has not been solved. There is just a way to accomplish the purpose.

And the problem itself has not been resolved.

for reference only.

Guess you like

Origin blog.csdn.net/a1456123a/article/details/128991050