-
Notifications
You must be signed in to change notification settings - Fork 5
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
Not working on Mac for me. #16
Comments
I have the exact same issue, can't bring solargaph to work with atom. VSCode works fine... |
The current versions (ruby-solargraph 0.6.1 and solargraph 0.37.2) work just fine on my Mac with Ruby 2.6.5 installed from source with ruby-install and managed by chruby. You might want to check the settings of the ruby-solargraph package in Atom and make sure, the path to the solargraph binary is correct. I use the following to update this setting on the CLI after every Ruby upgrade:
As an alternative, just edit this setting in Atom yourself. To figure out the solargraph binary path to use:
|
I just installed on Mac too, and have checked all the obvious things and still doesn't seem to work. Did you guys get it working eventually? |
Same issue for me. I've followed all the above steps and still couldn't able to figure out the solution |
Revisiting this. Today I tried again. Note I use MacOS Mojave 10.14.6 I installed And nothing happens. I type variable-name.<space / tab / first-letter-of-method> => nothing. @svoop - what combination of keystrokes (on a Mac) do you use to trigger autocomplete? Can you see anything missing from the steps above? |
@castwide any comment? |
@crush-157 The extension is only confirmed to work with rvm and rbenv, so chruby might pose a problem. I'll test on a MacBook and see what I can figure out. If anyone has had success with MacOS and chruby, please let us know. |
@castwide @crush-157 I got it to work on a Mac with Install the atom-solagraph package, then create a wrapper for the binary as
Make sure the wrapper is executable:
Then edit the path to the binary in
Finally, make sure the solargraph gem is installed on all Ruby versions you're using with Don't forget to restart Atom to make sure it picks up the changes. At least my Atom didn't without a restart. |
@castwide I tried setting up solargraph as per instruction on Mac and ruby **ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin19] |
@svoop I have tried doing as you said and it made no difference. Question: what keystrokes are you using, if any, on a mac, to start code completion? |
@crush-157 I'm kinda peculiar with keystrokes and configured all kind of search and autocomplete stuff on combinations of ctrl, alt, cmd and space. For solargraph, I've assigned cmd-space which usually opens Spotlight. (I don't use Spotlight very often and therefore disabled cmd-space systemwide in sysprefs, so no collision there.) |
@svoop sadly I use spotlight all the time! Another thing I'm curious about is why the wrapper? I followed your directions in a cargo - cult fashion just to see if it helped but it didn't. I wasn't that surprised, since |
I'm using a Mac (Mojave 10.14.5)
I have installed
ruby-solargraph
0.4.0 in AtomI have installed the
solargraph
gem (0.33.2)I have restarted Atom.
I start typing in a Ruby file and nothing happens. The keystroke suggested for a manual search is ctrl+space, but that doesn't work on a mac and command+space just opens spotlight search.
I also tried using the online demo (solargraph.org/demo), this time from my Chromebook and I don't get any code completion there either.
Any suggestions for getting ruby-solargraph working for Atom on the Mac?
The text was updated successfully, but these errors were encountered: