remote-edit-ni icon indicating copy to clipboard operation
remote-edit-ni copied to clipboard

Uncaught TypeError: Cannot read property 'activateItemForURI' of undefined

Open pdux opened this issue 6 years ago • 4 comments

Steps to reproduce

  1. open ATOM
  2. Packages -> Remote Edit -> Browse Hosts
  3. Connect by sftp to any host with RSA key
  4. try to open any txt file

Atom: 1.29.0 x64 Electron: 2.0.5 OS: Mac OS X 10.13.6 Thrown From: remote-edit-ni package 3.5.1

Stack Trace

Uncaught TypeError: Cannot read property 'activateItemForURI' of undefined

At /Users/abc/.atom/packages/remote-edit-ni/lib/view/tree-view.coffee:275

TypeError: Cannot read property 'activateItemForURI' of undefined
    at /packages/remote-edit-ni/lib/view/tree-view.coffee:275:20)
    at HTMLDivElement.dispatch (/packages/remote-edit-ni/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLDivElement.elemData.handle (/packages/remote-edit-ni/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -4:43 remote-edit:browse (input.hidden-input)
     -3:57.1.0 remote-edit:close-all-connections (atom-pane.pane.active)
     -3:37.5.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
     -1:45.1.0 remote-edit:browse (div.package-detail.panels-item)

Non-Core Packages

remote-edit-ni 3.5.1 

pdux avatar Aug 22 '18 08:08 pdux

Hi @pdux

Can you reproduce this every time? I have tried this on Linux (Ubuntu) with both atom 1.23.3 and 1.29.0 by sshing to localhost (using the default .ssh/id_rsa) and I cannot make it happen?!

I will try again on my work Mac and let you know. It would help if you can confirm the above steps you made and if this happens all the time

In any case, cheers for let us know :)

urban-1 avatar Aug 25 '18 14:08 urban-1

Hi, yes I can confirm it still there, I can't edit remotely. I've disabled firewall also. It happened first time after ATOM update.

pdux avatar Aug 27 '18 07:08 pdux

I am not able to reproduce this on my macbook air. It just seems to work.

What is the OS of the host you do log into?

On the mac I have another 'problem', which requires me to login using ssh to some host first. Only then will the ssh agent be available for remote-edit.

newinnovations avatar Aug 27 '18 17:08 newinnovations

I got this error today. The situation was that the file was not in a tab, but it was shown in the open files list. The exception occurred when I clicked on the filename in the list. Cannot remember closing the file explicitly. Somehow the open file list can get out of sync with reality. Another issue is that the file list is not populated after restarting atom.

newinnovations avatar Nov 08 '18 09:11 newinnovations