ianhattendorf / autocomplete-ruby

Provides intelligent code completion for Ruby in the Atom editor. Requires RSense.
MIT License
51 stars 9 forks source link

Autocomplete not working (rsense throwing net::ERR_CONNECTION_REFUSED errors) #42

Closed saadq closed 7 years ago

saadq commented 7 years ago

As I type code in my editor, no autocompletion happens and errors like these show up in the console:

screen shot 2017-07-20 at 4 46 23 pm

which rsense gives the same path that is being used in the config for autocomplete-ruby: /Users/squadri/.rvm/gems/ruby-2.4.1/bin/rsense

My Ruby version: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]

Let me know if I could provide any other details.

ianhattendorf commented 7 years ago

The plugin isn't able to talk with the rsense server. Can you check to see if it's running when this error occurs?

saadq commented 7 years ago

Admittedly, I know very little about the Ruby ecosystem. Do you mean to just run rsense start and then open Atom? I tried doing that, but the errors still seem to happen.

ianhattendorf commented 7 years ago

The RSense server is a separate process. Try the following:

saadq commented 7 years ago

Hmm, the errors are still there.

screen shot 2017-07-20 at 6 09 06 pm

screen shot 2017-07-20 at 6 05 44 pm

saadq commented 7 years ago

Although something kinda strange is happening.

screen shot 2017-07-20 at 6 10 48 pm

If I manually run rsense start, I'm not sure why the process isn't found when I try to kill it. Is it immediately stopping?

ianhattendorf commented 7 years ago

Looks like either rsense is crashing or never starting, have you looked at the logs at /tmp/rsense.log?

saadq commented 7 years ago

Yup, there are some errors in there that I will need to fix, looks like a few missing gems for some reason.

Anyways, I'm guessing this isn't an issue with your package. Thanks for your help with debugging!

sanchit121 commented 6 years ago

Hi, Anyone found the solution, I m also facing same. Please help

JonnyCBB commented 6 years ago

I'm facing the same issue. I've tried the steps above and nothing has helped.