brentd / xray-rails

☠️ A development tool that reveals your UI's bones
MIT License
1.22k stars 79 forks source link

atom editor not working #79

Open mysticaltech opened 8 years ago

mysticaltech commented 8 years ago

Hello,

With subl everything works well. But I can't seem to make it work with atom.

I tried putting:

EDITOR = '/usr/local/bin/atom'

in my .env file, nothing happens when clicked.

Exact same behavior when I use ~/.xrayconfig with:

:editor: '/usr/local/bin/atom'

Any ideas ?

judewang commented 8 years ago

I have the same issue after updating to Atom v1.12.4.

mattbrictson commented 7 years ago

Does the binary exist?

ls -ld /usr/local/bin/atom

I'm not an atom user, so I don't see why this would stop working. Perhaps the location of the atom binary recently changed?

mysticaltech commented 7 years ago

yes.. here's the output:

lrwxr-xr-x 1 karim admin 53 Nov 18 17:31 /usr/local/bin/atom -> /Applications/Atom.app/Contents/Resources/app/atom.sh

mattbrictson commented 7 years ago

I just downloaded Atom 1.12.6 (Mac) from https://atom.io and it works fine for me. Here is what I put in ~/.xrayconfig:

---
:editor: /usr/local/bin/atom

I'm using xray-rails 0.2.0.

Are you getting a 500 error in the browser (check the network tab of the developer tools) or any messages in the Rails server output?

mysticaltech commented 7 years ago

Hey Matt, re-downloaded atom 1.12.6 from atom.io and put :editor: /usr/local/bin/atom in ~/.xrayconfig but nothing happens when clicked, just the GET request with open?=... No 500 errors. When I leave it without specifying atom, sublime text opens perfectly.

I'm not really using it right now, so it's not a problem for me personally, i work with sublime text too.

Thanks again for this great gem.