Skip to content

Cannot read property "length" of undefined #1406

Description

@notklaatu

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 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions