remote-ftp icon indicating copy to clipboard operation
remote-ftp copied to clipboard

Cannot read property "length" of undefined

Open notklaatu opened this issue 2 years ago • 0 comments

Prerequisites

Description

When attempting to access a remote file, this error occurs instead.

Steps to Reproduce

  1. Login to remote SFTP server using Remote Ftp pliugin
  2. Double-click a text file in $HOME of remote computer

Expected behavior:

File should open in Pulsar

Actual behavior:

This error. The file does not open.

Versions

Pulsar: 1.108.0 x64 Electron: 12.2.3 OS: linux 6.4.13-200.fc38.x86_64 Thrown From: remote-ftp package 2.2.4

Stack Trace

Uncaught TypeError: Cannot read property 'length' of undefined

At /var/home/skenlon/.var/app/dev.pulsar_edit.Pulsar/data/packages/remote-ftp/lib/client.js:628

TypeError: Cannot read property 'length' of undefined
    at Client.toLocal (client.js:628:43)
    at ConnectorSFTP.get (sftp.js:271:31)
    at Client.<anonymous> (client.js:730:24)
    at Client._next (client.js:650:39)
    at Client._enqueue (client.js:661:56)
    at Client.<anonymous> (client.js:729:12)
    at Client.onceConnected (client.js:397:17)
    at Client.download (client.js:728:10)
    at File.open (file.js:47:12)
    at FileView.open (file-view.js:144:15)
    at HTMLLIElement.<anonymous> (file-view.js:110:12)
    at HTMLLIElement.dispatch (/packages/git-plus/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLLIElement.elemData.handle (/packages/git-plus/node_modules/jquery/dist/jquery.js:4121:28)

Commands

Non-Core Packages

git-plus 8.7.1 
platformio-ide-terminal 2.10.1 
remote-ftp 2.2.4 

notklaatu avatar Sep 05 '23 07:09 notklaatu