remote-ftp
remote-ftp copied to clipboard
Cannot read property "length" of undefined
Prerequisites
- [X] Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?q=is%3Aissue+user%3Aatom
- Checked that there is not already an Pulsar package that provides the described functionality: https://atom.io/packages
Description
When attempting to access a remote file, this error occurs instead.
Steps to Reproduce
- Login to remote SFTP server using Remote Ftp pliugin
- 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