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] Cannot read property 'length' of undefined #136

Closed
Offerel opened this issue Mar 17, 2018 · 2 comments
Closed

[sftp] Cannot read property 'length' of undefined #136

Offerel opened this issue Mar 17, 2018 · 2 comments

Comments

@Offerel
Copy link

Offerel commented Mar 17, 2018

Expected Behavior

Open configuration

Actual Behavior

a error message appears "[sftp] Cannot read property 'length' of undefined"

Steps to Reproduce the Problem

  1. fresh install of vsc 1.21.1
  2. fresh install of sftp 1.1.2
  3. restart vsc
  4. press ctrl+shift+p
  5. enter "sftp"
  6. choose "sftp: config"

Requisites (important to diagnose the problem!)

Extension Logs

 [error] TypeError: Cannot read property 'length' of undefined
	at editConfig (C:\Users\sebas\.vscode\extensions\liximomo.sftp-1.1.2\out\src\actions\config.js:8:25)
	at Command.args [as handler] (C:\Users\sebas\.vscode\extensions\liximomo.sftp-1.1.2\out\src\commands\Command.js:36:29)
	at Command.<anonymous> (C:\Users\sebas\.vscode\extensions\liximomo.sftp-1.1.2\out\src\commands\Command.js:46:28)
	at Generator.next (<anonymous>)
	at C:\Users\sebas\.vscode\extensions\liximomo.sftp-1.1.2\out\src\commands\Command.js:7:71
	at Promise (<anonymous>)
	at __awaiter (C:\Users\sebas\.vscode\extensions\liximomo.sftp-1.1.2\out\src\commands\Command.js:3:12)
	at Command.run (C:\Users\sebas\.vscode\extensions\liximomo.sftp-1.1.2\out\src\commands\Command.js:43:16)
	at e._executeContributedCommand (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:620:380)
	at e.$executeContributedCommand (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:620:797)

Specifications

  • Version: vsc 1.21.1
  • Platform: Windows 10 Home 64bit
@Offerel
Copy link
Author

Offerel commented Mar 17, 2018

Ahh, i have to open first a workspace. If that's the case and i have a workspace open, no such error message comes out. That should be noted in the documentation.

@liximomo
Copy link
Owner

I will show an error message when you try to use sftp without an open workspace folder.

liximomo pushed a commit that referenced this issue Mar 18, 2018
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

2 participants