ianhattendorf / autocomplete-ruby

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

Not work at macOS 10.12 #25

Closed ghost closed 7 years ago

ghost commented 7 years ago

I tried it several times ,but never work。 this is error information: autocomplete-ruby: exec error: Error: Command failed: ~/.rvm/gems/ruby-2.3.3/bin/rsense start --port 47367 --path . env: ruby_executable_hooks: No such file or directory

here is my gem env: RubyGems Environment:

I don't konw how to add rsense to EXECUTABLE DIRECTORY. like you say at ReadMe.md :" If you need to set up the rsense path, execute gem environment: Then take the EXECUTABLE DIRECTORY, add rsense and put this into the rsense executable path." Am i install's way not correct??? thank you very much !

ianhattendorf commented 7 years ago

I just released v0.2.5 which contains #19 to better detect the rsense directory. Give this version a shot and let me know the result.

ghost commented 7 years ago

It doesn't work. Here is error's description: autocomplete-ruby: exec error: Error: Command failed: /Users/OSX/.rvm/gems/ruby-2.3.3/bin/rsense start --port 47367 --path /Users/OSX/Desktop/Ruby env: ruby_executable_hooks: No such file or directory

The path of rsenes in my computer is: '/Users/OSX/.rvm/gems/ruby-2.3.3/bin/rsense'

ianhattendorf commented 7 years ago

This is with v0.2.5? If the auto detection fails, you'll need to set the rsense path config in the plugin settings to /Users/OSX/.rvm/gems/ruby-2.3.3/bin/rsense.

ghost commented 7 years ago

yeah, v2.0.5,the newest one, if I don't set the detection path, the error's description :/bin/sh: /usr/local/bin/rsense: No such file or directory

if I set the rsense path,'/Users/OSX/.rvm/gems/ruby-2.3.3/bin/rsense', then report error like begin.

Here is some screenshots:

screen shot 2017-01-28 at 13 12 49 screen shot 2017-01-28 at 13 13 17 screen shot 2017-01-28 at 13 13 50 screen shot 2017-01-28 at 13 14 18 screen shot 2017-01-28 at 13 14 34
ianhattendorf commented 7 years ago

What happens if you cd to your project directory and run /Users/OSX/.rvm/gems/ruby-2.3.3/bin/rsense start --port 47367 --path .?

This looks like an RVM issue: https://stackoverflow.com/questions/18936933/bundle-update-env-ruby-executable-hooks-no-such-file-or-directory, not sure what to do about it.

ghost commented 7 years ago

yeah, it's RVM issue .

ghost commented 7 years ago

now I use this lib with manual....cry

ghost commented 7 years ago

close issue, thanks a lot