ianhattendorf / autocomplete-ruby

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

Error starting rsense #44

Open alecha opened 6 years ago

alecha commented 6 years ago

Hi, I've installed rsense trought gem install rsense (and also installed the JDK). I've also changed the path in settings but when I start Atom (both from launcher or command line from the project dir), I'm receiving this error:

autocomplete-ruby: exec error: Error: Command failed: ~/.rbenv/shims/rsense start --port 47367 --path /Users/alessio/src/intercom
rbenv: rsense: command not found
The `rsense' command exists in these Ruby versions:
  2.3.3
(You might need to set the rsense path, see the readme)

Running on Mac 10.13.3 and latest version of Atom.

I've looked at the other closed issues but I wasn't able to solve the problem, any ideas? Thanks!

ianhattendorf commented 6 years ago

Can you run the command ~/.rbenv/shims/rsense start --port 47367 --path /Users/alessio/src/intercom in a terminal yourself? This looks like a configuration error with rbenv, where you installed rsense in one ruby version but Atom is configured to use another.

alecha commented 6 years ago

It seems to start well, the output is

rsense version: 0.5.18
logs at: /tmp/rsense.log
process running at: 41023
ianhattendorf commented 6 years ago

What's the output of:

Also, can you try launching atom through the terminal (atom .)?

alecha commented 6 years ago

I've tried to start atom from the terminal but nothing changes :/

ianhattendorf commented 6 years ago

Hmm, that's odd. Maybe try uninstalling rbenv and try installing rsense and running atom with system ruby only? Other than that I'm not sure what else it could be.

skovsboll commented 6 years ago

Here's what I did to make it work:

cd /Applications/Atom.app/Contents
rbenv local 2.5.0
gem install rsense
rbenv rehash