Closed Freivincampbell closed 7 years ago
Hello, for my error solve it in a somewhat convensional way, the error occurs in line 6 of the file: "/home/your_username/.atom/packages/autocomplete-ruby/lib/gem-home.coffee". I went to my terminal and run the command that gives error and is: "gem environment" find the line that is needed and paste it, I hope it works for something while they deliver error. regards
I've just updated the readme with a "Known Issues" section. Have you tried launching atom from the terminal? Most likely you have a custom path/environment setting in your bash/zsh config that isn't being picked up when launching atom from its launcher.
I assume you were able to get this working due to the thumbs up, closing.
Error starting rsense
autocomplete-ruby: exec error: Error: Command failed: /home/Crow/.rvm/gems/ruby-2.4.2/bin/rsense start --port 47367 --path .
/usr/bin/env: ‘ruby_executable_hooks’: No such file or directory
(You might need to set the rsense path, see the readme
I had done what you had told me.But I can't use autocomplete-ruby normally Could you help me? Thank you very much!
The error you're getting (‘ruby_executable_hooks’: No such file or directory
) looks to be an issue with your installation, possibly RVM.
I would recommend searching for the error on Google and seeing if you find anything that solves your problem. For example: https://stackoverflow.com/questions/26247926/how-to-solve-usr-bin-env-ruby-executable-hooks-no-such-file-or-directory
I'm sorry to reply to your mail so late,it isn't an easy thing to use gmail in China. The reason ,emmmmm, I think you know it.
That problem I haven't solved,I'll try what you have recommended.
Now I use the Plug named "Ruby Solargraph" on vscode for Ruby-auto-completation
And I'm sorry that my English is so bad.
Well,I still have to thank you very much.
(Some of the contents are Machine Translation,I'm sorry)
谢谢你
2018-01-19 0:52 GMT+08:00 Ian Hattendorf notifications@github.com:
The error you're getting (‘ruby_executable_hooks’: No such file or directory) looks to be an issue with your installation, possibly RVM.
I would recommend searching for the error on Google and seeing if you find anything that solves your problem. For example: https://stackoverflow.com/ questions/26247926/how-to-solve-usr-bin-env-ruby- executable-hooks-no-such-file-or-directory
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ianhattendorf/autocomplete-ruby/issues/36#issuecomment-358708736, or mute the thread https://github.com/notifications/unsubscribe-auth/AbgZfdvY8zn8YBAhPEAcdyZqyY8y9GFrks5tL3bFgaJpZM4M9-TM .
I'm using this package on atom 1.38.beta-0
on Ubuntu 64bit + RVM
To makeit work on my machine, I changed this line on $HOME/.atom/packages/autocomplete-ruby/lib/gem-home.coffee
stdout = execSync 'gem environment'
to
stdout = execSync "$SHELL -l -c 'gem environment'"
and change this too on $HOME/.atom/packages/autocomplete-ruby/lib/autocomplete-ruby-client.coffee
exec("#{@rsensePath} start --port #{@port} --path #{@projectPath}",
to
exec("$SHELL -l -c '#{@rsensePath} start --port #{@port} --path #{@projectPath}'",
and also the stopRsense: =>
block.
[Enter steps to reproduce:]
Atom: 1.15.0 x64 Electron: 1.3.13 OS: Ubuntu 16.04.2 Thrown From: autocomplete-ruby package 0.2.6
Stack Trace
Failed to activate the autocomplete-ruby package
Commands
Non-Core Packages