xray-rails icon indicating copy to clipboard operation
xray-rails copied to clipboard

atom editor not working

Open mysticaltech opened this issue 8 years ago • 5 comments

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 ?

mysticaltech avatar Nov 17 '16 10:11 mysticaltech

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

judewang avatar Nov 21 '16 05:11 judewang

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?

mattbrictson avatar Dec 04 '16 21:12 mattbrictson

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

mysticaltech avatar Dec 04 '16 22:12 mysticaltech

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?

mattbrictson avatar Dec 05 '16 00:12 mattbrictson

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.

mysticaltech avatar Dec 05 '16 10:12 mysticaltech