Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFTP error upload no such file after update VS code 1.56.0 #919

Closed
Andika7 opened this issue May 6, 2021 · 122 comments
Closed

SFTP error upload no such file after update VS code 1.56.0 #919

Andika7 opened this issue May 6, 2021 · 122 comments

Comments

@Andika7
Copy link

Andika7 commented May 6, 2021

Issue Type: Bug

while upload a file from local to remote, it show an error no such file and connection time out 10000. but the file is uploading without problem, just showing an error. This happen because I am update VS code version to 1.56.0.

Extension version: 1.12.9
VS Code version: Code 1.56.0 (cfa2e218100323074ac1948c885448fdf4de2a7f, 2021-05-04T22:09:06.405Z)
OS version: Windows_NT x64 10.0.19041

System Info
Item Value
CPUs Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (4 x 2712)
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) 11.87GB (5.66GB free)
Process Argv --crash-reporter-id 1ad20214-094e-4571-829c-44d1a08acd9f
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt602cf:30294773
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30291489
pythontb:30283811
pythonvspyt551:30291414
vspre833cf:30267465
pythonptprofiler:30281270
vscnewfiletext:30294816
vshan820:30294714
pythondataviewer:30285071
vscus158:30286553
vscgsv2ct:30294353

@houguang
Copy link

houguang commented May 6, 2021

image

@Evllis
Copy link

Evllis commented May 6, 2021

image

The same problem

Version: 1.56.0 (user setup)
Commit: cfa2e218100323074ac1948c885448fdf4de2a7f
Date: 2021-05-04T22:09:06.405Z
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Windows_NT x64 10.0.19041

@Evllis
Copy link

Evllis commented May 6, 2021

After looking at the questions from other users, it was suggested that vscode should be downgraded to 1.55 to solve the problem.

But I don't want to be demoted and wait for another way.

@yayaw
Copy link

yayaw commented May 6, 2021

image

@Evllis
Copy link

Evllis commented May 6, 2021

Well, just now I went to the remote server to have a look.
Although it was said that there was an error prompt of no such file, the remote file has been updated, which does not affect the use.

@SebastianSava
Copy link

For now, you can change protocol from sftp to ftp, and port from 22 to 21. Just until get update :)

@Andika7
Copy link
Author

Andika7 commented May 6, 2021

Well, just now I went to the remote server to have a look.
Although it was said that there was an error prompt of no such file, the remote file has been updated, which does not affect the use.

well, your right I will wait for the update

@Andika7 Andika7 closed this as completed May 6, 2021
@Andika7 Andika7 reopened this May 6, 2021
@Gforky
Copy link

Gforky commented May 6, 2021

Same issue here under version 1.12.9, pop up "No such file error" while uploading file to remote, but actually the file has been successfully uploaded.

@alteco-usa
Copy link

Same issue here under version 1.12.9, pop up "No such file error" while uploading file to remote, but actually the file has been successfully uploaded.

Be careful with it, some times, when you update file, is can come empty. And if update folder, some files can be empty, some files may contain text from other files.
I downgraded my VSCode to previous version

@PolarAir
Copy link

PolarAir commented May 6, 2021

Same problem here.
The files have been uploaded successfully. Just 'set modify time' seems bugged

@Gforky
Copy link

Gforky commented May 6, 2021

Same issue here under version 1.12.9, pop up "No such file error" while uploading file to remote, but actually the file has been successfully uploaded.

Be careful with it, some times, when you update file, is can come empty. And if update folder, some files can be empty, some files may contain text from other files.
I downgraded my VSCode to previous version

Thanks for your remind, this issue is annoying...

@anphxyz
Copy link

anphxyz commented May 6, 2021

Same here!
File upload well with 1 popup error!

@mastercrys
Copy link

mastercrys commented May 6, 2021

Same problem here and cannot switch to ftp only mode and cannot downgrade le vscode version cause of infrastructure requirements.
Please fix asap

EDIT: can confirm that the file is successfully uploaded even if the error appears

@duduheihei
Copy link

Meet the same problem

@ShachMaT
Copy link

ShachMaT commented May 6, 2021

This could be problem with SSH executable path.

Same error happens when you use Proxy command in ssh config and try connecting through terminal directly.
Like this:
ProxyCommand ssh -W %h:%p x@y

Doing like so:
ProxyCommand C:\Windows\System32\OpenSSH\ssh.exe -W %h:%p x@y

Works.

Is there a setting for SSH executable path?!

@RadkoStulrajter
Copy link

Having the same issue. The extension is reporting error but the file is successfully uploaded to remote server:

image

[05-06 11:11:10] [error] Error: No such file
at SFTPStream._transform (c:\Users\USER.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\USER.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\USER.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\USER.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2-streams\lib\ssh.js:3288:10)
at SSH2Stream._transform (c:\Users\USER.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\USER.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 c:\Users\USER\Desktop\WORKDIR\Projects!AUTOMATION\gst_dev\apps\p2mp_inventory.py

liximomo.sftp version v1.12.9

Version: 1.56.0 (user setup)
Commit: cfa2e218100323074ac1948c885448fdf4de2a7f
Date: 2021-05-04T22:09:06.405Z
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Windows_NT x64 10.0.18363

@raedlime
Copy link

raedlime commented May 6, 2021

Yeah, same for me. Hopefully it's gonna be fixed soon :-)

@myfender
Copy link

myfender commented May 6, 2021

I have the same problem. MacBook Pro 16"

@dzw0218
Copy link

dzw0218 commented May 6, 2021

me too

@skoniks
Copy link

skoniks commented May 6, 2021

The same problem

@computertoucher
Copy link

Yeah this is annoying. And I'm not hoping for an update with 311 issues listed and the last commit 2 years ago... Is this extension abandoned?

@ghost
Copy link

ghost commented May 6, 2021

VSCode was recently bumped to node v14. I looked deeper into other packages (ssh2, ssh2-streams) and it lead me to ssh2-sftp-client package. In the overview it says that the node itself had some changes with streams that causes these errors. Node v15.3 had additional changes (or a rollback) that fixes the issue.

In any way, this extension uses ssh2 and probably that's where the code should be updated and errors handled to work with node v14. I tried updating ssh2 package on this extension, but it didn't seem to help either. Most likely we'll have to wait until VSCode node is bumped to v15.

@tinusg
Copy link

tinusg commented May 6, 2021

I downgraded but here are some pointers on how to fix it temporarily:
#915 (comment)

@mustadev
Copy link

mustadev commented May 6, 2021

same here. got this error after VSCode upgrade.
is this plugin still maintained tho?. last update was 2019.

@slawn
Copy link

slawn commented May 6, 2021

same here. got this error after VSCode upgrade.
is this plugin still maintained tho?. last update was 2019.

good question - anybody knows the answer if that's still maintained or should I start looking for alternative?

@izversky
Copy link

izversky commented May 6, 2021

It will be very sad to find out that the plugin has been abandoned :( I did not find a worthy alternative

@ghost
Copy link

ghost commented May 6, 2021

After creating .ssh/config file:

[05-06 21:39:31] [warn] Can't set modified time to the file because Failure
[05-06 21:39:31] [error] Error: No such file

@izversky
Copy link

izversky commented May 6, 2021

[05-06 21:39:31] [warn] Can't set modified time to the file because Failure

This warning disappears after adding this property to the configuration: "profiles": {}

@Carlos-Freire
Copy link

Thanks @sdir! Work fine for me, MacOs, VSCode 1.56.2, sftp v 1.12.9.

@lighthousebulb
Copy link

Sadly this repo looks like it is not maintained any more.
Any ideas for a good replacement for this vs-code-extensions?

@rw3iss
Copy link

rw3iss commented May 28, 2021

@lighthousebulb Yeah... read @Natizyskunk's post.

@ScorpioT1000
Copy link

It seems it's time to switch to rsync or use https://marketplace.visualstudio.com/items?itemName=mkloubert.vscode-deploy-reloaded

@IlanVivanco
Copy link

For Windows users using WSL (I tested it only with WSL2, but expecting the same results on WSL1):

@shivam-geek
Copy link

Updating the SSH2 package has fixed the issue for me,
just need to change the ssh2 version 1.1.0 in the package.json "extensions/liximomo.sftp-1.12.9/package.json,
and run npm install,
https://www.npmjs.com/package/ssh2

@yehudaTiram
Copy link

yehudaTiram commented Jun 12, 2021

Updating the SSH2 package has fixed the issue for me,
just need to change the ssh2 version 1.1.0 in the package.json "extensions/liximomo.sftp-1.12.9/package.json,
and run npm install,
https://www.npmjs.com/package/ssh2

@shivam-geek solution works for me. (Windows 10)
in ~.vscode\extensions\liximomo.sftp-1.12.9\package.json change "ssh2": "^x.x.x" to "ssh2": "^1.1.0"
then run in .vscode\extensions\liximomo.sftp-1.12.9> npm install

@speiffer829
Copy link

2\. options.autoDestroy = false;

I'll be damned it worked. thank you. I still do wish someone would either revive this repo or give me an equally solid alternative so I won't need work-arounds in the future. I almost went back to Atom over this.

@helmiItsavirus
Copy link

Hy Everyone

Please just change SSH2 version to 1.1.0 in package.json and run npm i

{
	"name": "sftp",
	"displayName": "SFTP",
	"description": "SFTP/FTP sync",
	"version": "1.12.9",
	"publisher": "liximomo",
	"author": "liximomo <liximomo@gmail.com> (https://liximomo.github.io/)",
	"engines": {
		"vscode": "^1.30.0"
	},
	"bugs": {
		"url": "https://github.com/liximomo/vscode-sftp/issues",
		"email": "liximomo@gmail.com"
	},
	"homepage": "https://github.com/liximomo/vscode-sftp/blob/master/README.md",
	"repository": {
		"type": "git",
		"url": "https://github.com/liximomo/vscode-sftp.git"
	},
	"categories": [
		"Other"
	],
	"keywords": [
		"ftp",
		"sftp",
		"sync",
		"remote"
	],
	"activationEvents": [
		"onCommand:sftp.config",
		"workspaceContains:.vscode/sftp.json"
	],
	"icon": "resources/icon.png",
	"main": "./dist/extension",
	"contributes": {
		"viewsContainers": {
			"activitybar": [
				{
					"id": "sftp",
					"title": "SFTP",
					"icon": "resources/remote-explorer.svg"
				}
			]
		},
		"views": {
			"sftp": [
				{
					"id": "remoteExplorer",
					"name": "Explorer",
					"when": "sftp.enabled"
				}
			]
		},
		"configuration": {
			"type": "object",
			"title": "sftp configuration",
			"properties": {
				"sftp.printDebugLog": {
					"type": "boolean",
					"default": false,
					"description": "print debug log on sftp output channel.(reload vscode when change this)"
				},
				"sftp.debug": {
					"type": "boolean",
					"default": false,
					"description": "print debug log on sftp output channel.(reload vscode when change this)"
				},
				"sftp.downloadWhenOpenInRemoteExplorer": {
					"type": "boolean",
					"default": false,
					"description": "\"Download\" instead of \"View Content\" when open file in Remote Explorer"
				}
			}
		},
		"commands": [
			{
				"command": "sftp.config",
				"title": "Config",
				"category": "SFTP"
			},
			{
				"command": "sftp.setProfile",
				"title": "Set Profile",
				"category": "SFTP"
			},
			{
				"command": "sftp.openConnectInTerminal",
				"title": "Open SSH in Terminal",
				"category": "SFTP"
			},
			{
				"command": "sftp.cancelAllTransfer",
				"title": "Cancel All Transfers",
				"category": "SFTP"
			},
			{
				"command": "sftp.upload.file",
				"title": "Upload",
				"category": "SFTP"
			},
			{
				"command": "sftp.upload.changedFiles",
				"title": "Upload Changed Files",
				"category": "SFTP",
				"icon": {
					"light": "resources/light/upload.svg",
					"dark": "resources/dark/upload.svg"
				}
			},
			{
				"command": "sftp.upload.activeFile",
				"title": "Upload Active File",
				"category": "SFTP"
			},
			{
				"command": "sftp.upload.folder",
				"title": "Upload Folder",
				"category": "SFTP"
			},
			{
				"command": "sftp.upload.activeFolder",
				"title": "Upload Active Folder",
				"category": "SFTP"
			},
			{
				"command": "sftp.upload.project",
				"title": "Upload Project",
				"category": "SFTP"
			},
			{
				"command": "sftp.forceUpload",
				"title": "Force Upload",
				"category": "SFTP"
			},
			{
				"command": "sftp.download.file",
				"title": "Download",
				"category": "SFTP"
			},
			{
				"command": "sftp.download.activeFile",
				"title": "Download Active File",
				"category": "SFTP"
			},
			{
				"command": "sftp.download.folder",
				"title": "Download Folder",
				"category": "SFTP"
			},
			{
				"command": "sftp.download.activeFolder",
				"title": "Download Active Folder",
				"category": "SFTP"
			},
			{
				"command": "sftp.download.project",
				"title": "Download Project",
				"category": "SFTP"
			},
			{
				"command": "sftp.forceDownload",
				"title": "Force Download",
				"category": "SFTP"
			},
			{
				"command": "sftp.sync.localToRemote",
				"title": "Sync Local -> Remote",
				"category": "SFTP"
			},
			{
				"command": "sftp.sync.remoteToLocal",
				"title": "Sync Remote -> Local",
				"category": "SFTP"
			},
			{
				"command": "sftp.sync.bothDirections",
				"title": "Sync Both Directions",
				"category": "SFTP"
			},
			{
				"command": "sftp.diff",
				"title": "Diff with Remote",
				"category": "SFTP"
			},
			{
				"command": "sftp.diff.activeFile",
				"title": "Diff Active File with Remote",
				"category": "SFTP"
			},
			{
				"command": "sftp.list",
				"title": "List",
				"category": "SFTP"
			},
			{
				"command": "sftp.listActiveFolder",
				"title": "List Active Folder",
				"category": "SFTP"
			},
			{
				"command": "sftp.listAll",
				"title": "List All",
				"category": "SFTP"
			},
			{
				"command": "sftp.delete.remote",
				"title": "Delete",
				"category": "SFTP"
			},
			{
				"command": "sftp.revealInExplorer",
				"title": "Reveal in Explorer",
				"category": "SFTP"
			},
			{
				"command": "sftp.revealInRemoteExplorer",
				"title": "Reveal in Remote Explorer",
				"category": "SFTP"
			},
			{
				"command": "sftp.remoteExplorer.editInLocal",
				"title": "Edit in Local",
				"category": "SFTP"
			},
			{
				"command": "sftp.viewContent",
				"title": "View Content",
				"category": "SFTP"
			},
			{
				"command": "sftp.remoteExplorer.refresh",
				"title": "Refresh",
				"icon": {
					"light": "resources/light/refresh.svg",
					"dark": "resources/dark/refresh.svg"
				}
			}
		],
		"menus": {
			"commandPalette": [
				{
					"command": "sftp.setProfile",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.openConnectInTerminal",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.cancelAllTransfer",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.upload.activeFile",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.upload.activeFolder",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.upload.project",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.download.activeFile",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.download.activeFolder",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.download.project",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.sync.localToRemote",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.sync.remoteToLocal",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.sync.bothDirections",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.diff.activeFile",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.list",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.listActiveFolder",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.listAll",
					"when": "sftp.enabled"
				},
				{
					"command": "sftp.upload.file",
					"when": "false"
				},
				{
					"command": "sftp.upload.changedFiles",
					"when": "false"
				},
				{
					"command": "sftp.upload.folder",
					"when": "false"
				},
				{
					"command": "sftp.forceUpload",
					"when": "false"
				},
				{
					"command": "sftp.download.file",
					"when": "false"
				},
				{
					"command": "sftp.download.folder",
					"when": "false"
				},
				{
					"command": "sftp.forceDownload",
					"when": "false"
				},
				{
					"command": "sftp.diff",
					"when": "false"
				},
				{
					"command": "sftp.delete.remote",
					"when": "false"
				},
				{
					"command": "sftp.revealInExplorer",
					"when": "false"
				},
				{
					"command": "sftp.revealInRemoteExplorer",
					"when": "false"
				},
				{
					"command": "sftp.remoteExplorer.editInLocal",
					"when": "false"
				},
				{
					"command": "sftp.viewContent",
					"when": "false"
				},
				{
					"command": "sftp.remoteExplorer.refresh",
					"when": "false"
				}
			],
			"explorer/context": [
				{
					"command": "sftp.revealInRemoteExplorer",
					"group": "navigation@20",
					"when": "sftp.enabled && !explorerResourceIsRoot"
				},
				{
					"command": "sftp.diff",
					"group": "3_compare",
					"when": "sftp.enabled && !explorerResourceIsRoot && !explorerResourceIsFolder"
				},
				{
					"command": "sftp.sync.localToRemote",
					"group": "sftp.sync@1",
					"when": "sftp.enabled && explorerResourceIsFolder"
				},
				{
					"command": "sftp.sync.remoteToLocal",
					"group": "sftp.sync@2",
					"when": "sftp.enabled && explorerResourceIsFolder"
				},
				{
					"command": "sftp.sync.bothDirections",
					"group": "sftp.sync@3",
					"when": "sftp.enabled && explorerResourceIsFolder"
				},
				{
					"command": "sftp.upload.file",
					"group": "sftp.trans@1",
					"when": "sftp.enabled && !explorerResourceIsRoot && !explorerResourceIsFolder"
				},
				{
					"command": "sftp.upload.folder",
					"group": "sftp.trans@1",
					"alt": "sftp.forceUpload",
					"when": "sftp.enabled && explorerResourceIsFolder"
				},
				{
					"command": "sftp.download.file",
					"group": "sftp.trans@2",
					"when": "sftp.enabled && !explorerResourceIsRoot && !explorerResourceIsFolder"
				},
				{
					"command": "sftp.download.folder",
					"group": "sftp.trans@2",
					"alt": "sftp.forceDownload",
					"when": "sftp.enabled && explorerResourceIsFolder"
				}
			],
			"editor/context": [
				{
					"command": "sftp.upload.file",
					"group": "sftp.trans@1",
					"when": "sftp.enabled && resourceScheme == file"
				},
				{
					"command": "sftp.download.file",
					"group": "sftp.trans@2",
					"when": "sftp.enabled && resourceScheme == file"
				},
				{
					"command": "sftp.diff",
					"group": "3_compare",
					"when": "sftp.enabled && resourceScheme == file"
				},
				{
					"command": "sftp.remoteExplorer.editInLocal",
					"group": "2_files",
					"when": "sftp.enabled && resourceScheme == remote"
				}
			],
			"editor/title/context": [
				{
					"command": "sftp.revealInExplorer",
					"group": "2_files",
					"when": "sftp.enabled && resourceScheme == remote"
				},
				{
					"command": "sftp.revealInRemoteExplorer",
					"when": "sftp.enabled && resourceScheme == file",
					"group": "2_files"
				}
			],
			"view/title": [
				{
					"command": "sftp.remoteExplorer.refresh",
					"when": "view == remoteExplorer",
					"group": "navigation"
				}
			],
			"view/item/context": [
				{
					"command": "sftp.openConnectInTerminal",
					"group": "navigation",
					"when": "view == remoteExplorer && viewItem == root"
				},
				{
					"command": "sftp.remoteExplorer.editInLocal",
					"group": "2_files",
					"when": "view == remoteExplorer && viewItem == file && !config.sftp.downloadWhenOpenInRemoteExplorer"
				},
				{
					"command": "sftp.viewContent",
					"group": "2_files",
					"when": "view == remoteExplorer && viewItem == file && config.sftp.downloadWhenOpenInRemoteExplorer"
				},
				{
					"command": "sftp.revealInExplorer",
					"group": "2_files",
					"when": "view == remoteExplorer && viewItem != root"
				},
				{
					"command": "sftp.delete.remote",
					"group": "7_modification",
					"when": "view == remoteExplorer && viewItem != root"
				}
			],
			"scm/title": [
				{
					"command": "sftp.upload.changedFiles",
					"group": "sftp",
					"when": "sftp.enabled && scmProvider == git && !gitFreshRepository"
				}
			],
			"scm/resourceGroup/context": [
				{
					"command": "sftp.upload.changedFiles",
					"group": "inline",
					"when": "sftp.enabled && scmProvider == git && scmResourceGroup == workingTree && !gitFreshRepository"
				},
				{
					"command": "sftp.upload.changedFiles",
					"group": "sftp",
					"when": "sftp.enabled && scmProvider == git && scmResourceGroup == workingTree && !gitFreshRepository"
				},
				{
					"command": "sftp.upload.changedFiles",
					"group": "inline",
					"when": "sftp.enabled && scmProvider == git && scmResourceGroup == index && !gitFreshRepository"
				},
				{
					"command": "sftp.upload.changedFiles",
					"group": "sftp",
					"when": "sftp.enabled && scmProvider == git && scmResourceGroup == index && !gitFreshRepository"
				}
			]
		},
		"jsonValidation": [
			{
				"fileMatch": ".vscode/sftp.json",
				"url": "./schema/config.schema.json"
			}
		],
		"resourceLabelFormatters": [
			{
				"scheme": "remote",
				"formatting": {
					"label": "${path}",
					"separator": "/"
				}
			}
		]
	},
	"scripts": {
		"vscode:prepublish": "npm run compile",
		"compile": "webpack --mode production",
		"dev": "webpack --mode development --watch",
		"test": "jest",
		"package": "vsce package",
		"pub:debug": "rm -rf _debug && mkdir _debug && vsce package --out _debug/sftp-debug.vsix && cd _debug && git init && git commit --allow-empty -m 'update debug package' && git checkout -b debug-pacakge && cp ../INSTALL_DEBUG.md README.md  && git add . && git commit -am 'update debug package' && git push git@github.com:liximomo/vscode-sftp.git debug-pacakge --force"
	},
	"devDependencies": {
		"@types/fs-extra": "^5.0.4",
		"@types/jest": "^23.3.5",
		"@types/lru-cache": "^4.1.1",
		"@types/node": "^8.10.25",
		"@types/vscode": "1.30",
		"@types/webpack-env": "^1.13.6",
		"jest": "^20.0.4",
		"memfs": "^2.15.5",
		"rimraf": "^2.6.2",
		"ts-loader": "^5.3.0",
		"tslint": "^5.11.0",
		"typescript": "3.1.6",
		"typescript-tslint-plugin": "^0.0.6",
		"webpack": "^4.25.1",
		"webpack-cli": "^3.1.2"
	},
	"dependencies": {
		"async": "^2.6.0",
		"fs-extra": "^5.0.0",
		"ftp": "^0.3.10",
		"ignore": "^5.0.2",
		"joi": "^10.6.0",
		"lodash.debounce": "^4.0.8",
		"lru-cache": "^4.1.3",
		"p-queue": "2.4.2",
		"ssh-config": "^1.1.3",
		"ssh2": "^1.1.0",
		"tmp": "^0.0.33",
		"upath": "^1.0.0"
	},
	"jest": {
		"verbose": true,
		"moduleFileExtensions": [
			"ts",
			"js"
		],
		"transform": {
			"^.+\\.ts$": "<rootDir>/test/preprocessor.js"
		},
		"testMatch": [
			"<rootDir>/test/**/*.spec.js",
			"<rootDir>/**/*/__tests__/*.ts"
		]
	},
	"__metadata": {
		"id": "ed3575fb-5812-4a43-9efb-c19649137420",
		"publisherId": "191ff983-e777-479d-b38d-a496aa4cf49a",
		"publisherDisplayName": "liximomo",
		"installedTimestamp": 1625380324260
	}
}


@Natizyskunk
Copy link

Just use my version (v1.13.0) that implement the new ssh2 v1.1.0 version that fix every problem 🙂 https://github.com/Natizyskunk/vscode-sftp/releases

@nlp4whp
Copy link

nlp4whp commented Jul 12, 2021

Just use my version (v1.13.0) that implement the new ssh2 v1.1.0 version that fix every problem 🙂 https://github.com/Natizyskunk/vscode-sftp/releases

thanks a lot!

@lackneets
Copy link

The problem is still existing on VSCode 1.58. Why is this issue been closed? 🙁

@Natizyskunk
Copy link

@lackneets,
As i've stated above :

Just use my version that implement the new ssh2 v1.1.0 version that fix every problem 🙂 https://github.com/Natizyskunk/vscode-sftp/releases

@Natizyskunk
Copy link

Natizyskunk commented Jul 13, 2021

@nlp4whp,

Just use my version (v1.13.0) that implement the new ssh2 v1.1.0 version that fix every problem 🙂 https://github.com/Natizyskunk/vscode-sftp/releases

thanks a lot!

No problem 😀

@IlanVivanco
Copy link

@Natizyskunk are you planning to maintain the new fork?

@Natizyskunk
Copy link

Natizyskunk commented Jul 13, 2021

@IlanVivanco,

@Natizyskunk are you planning to maintain the new fork?

Yes for sure, i'll try my best to keep it up to date and to fix most of the problems people will come across.

@nazadounet
Copy link

Just use my version (v1.13.0) that implement the new ssh2 v1.1.0 version that fix every problem 🙂 https://github.com/Natizyskunk/vscode-sftp/releases

Work perfectly :) thx mate

@CCYYZZNN
Copy link

CCYYZZNN commented Sep 2, 2021

Updating the SSH2 package has fixed the issue for me,
just need to change the ssh2 version 1.1.0 in the package.json "extensions/liximomo.sftp-1.12.9/package.json,
and run npm install,
https://www.npmjs.com/package/ssh2

@shivam-geek solution works for me. (Windows 10)
in ~.vscode\extensions\liximomo.sftp-1.12.9\package.json change "ssh2": "^x.x.x" to "ssh2": "^1.1.0"
then run in .vscode\extensions\liximomo.sftp-1.12.9> npm install

it works

@PaPa31
Copy link

PaPa31 commented Nov 10, 2021

I made a new build of sftp.vsix file.

This build makes Upload Changed Files command visible.

And it adds "Ctrl+Alt+U" keyboard shortcut to the Upload Changed Files command.

You can download the build and install with:

  • open Command Palette (press F1)
  • enter Extensions: Install from VSIX command
  • press Enter
  • locate sftp-workaround-upload-bug.vsix
  • press Install

I also wrote not a small post how to rebuild vsix extension.

@Natizyskunk
Copy link

@PaPa31,

Why not just use my version. I've take over this extension and I'm actively mainting it and adding new features.

You can find it here.

Cheers :)

@PaPa31
Copy link

PaPa31 commented Nov 12, 2021

@PaPa31,

Why not just use my version. I've take over this extension and I'm actively mainting it and adding new features.

You can find it here.

Cheers :)

Because your version doesn't work!

I mean the 'Upload Changed Files' command doesn't work.

UNDERSTAND!!!!

@Natizyskunk
Copy link

Natizyskunk commented Nov 12, 2021

@PaPa31,

Then just make a pull request and i'll hapilly merged it :)
I see that you wrote a post on how to rebuild the extension so I suppose you're easily able to do that and it would be cool if you can do it.

You can follow the pull request template available here.

Thanks in advance !

@PaPa31
Copy link

PaPa31 commented Nov 12, 2021

Natizyskunk

Ok! I'll do this!

@Natizyskunk
Copy link

@PaPa31,

Thx a lot ! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests