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

Uncaught TypeError: Cannot read property 'activateItemForURI' of undefined #30

Open
pdux opened this issue Aug 22, 2018 · 4 comments
Open

Comments

@pdux
Copy link

pdux commented Aug 22, 2018

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 
@urban-1
Copy link

urban-1 commented Aug 25, 2018

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 :)

@pdux
Copy link
Author

pdux commented Aug 27, 2018

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.

@newinnovations
Copy link
Owner

newinnovations commented Aug 27, 2018

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
Copy link
Owner

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.

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

No branches or pull requests

3 participants