ianhattendorf / autocomplete-ruby

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

Rsense can not start on OSX #40

Closed mrkaspa closed 7 years ago

mrkaspa commented 7 years ago

I use ruby 2.4.1 and rvm

autocomplete-ruby: exec error: Error: Command failed: rsense start --port 47367 --path /Users/mrkaspa/code/rs/rsdemo /Users/mrkaspa/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems.rb:271:in find_spec_for_exe': can't find gem rsense (>= 0.a) (Gem::GemNotFoundException) from /Users/mrkaspa/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems.rb:299:inactivate_bin_path' from /Users/mrkaspa/.rvm/gems/ruby-2.4.1/bin/rsense:23:in <main>' from /Users/mrkaspa/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:ineval' from /Users/mrkaspa/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `

' (You might need to set the rsense path, see the readme)

ianhattendorf commented 7 years ago

What happens when you execute which rsense? Did you look at the readme regarding setting the rsense path?

mrkaspa commented 7 years ago

I got this /Users/mrkaspa/.rvm/gems/ruby-2.4.1/bin/rsense and in the atom conf I have this /Users/mrkaspa/.rvm/rubies/ruby-2.4.1/bin/rsense but in that path I have

ls .rvm/rubies/ruby-2.4.1/bin/
erb  gem  irb  rake rdoc ri   ruby
mrkaspa commented 7 years ago

It's weird but now it works