Closed spatindsaongo closed 7 years ago
Do you have ruby installed?
Yes, I have ruby installed.
What happens when you run which gem
from the terminal? If you launch atom from the terminal by running atom
, do you get the same error? Can you paste the results from gem environment
?
Hi.
which gem
, i got this
/home/username/.rbenv/shims/gem
gem environment
:
- RUBYGEMS VERSION: 2.5.1
- RUBY VERSION: 2.3.1 (2016-04-26 patchlevel 112) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/username/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0
- USER INSTALLATION DIRECTORY: /home/username/.gem/ruby/2.3.0
- RUBY EXECUTABLE: /home/username/.rbenv/versions/2.3.1/bin/ruby
- EXECUTABLE DIRECTORY: /home/username/.rbenv/versions/2.3.1/bin
- SPEC CACHE DIRECTORY: /home/username/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /home/username/.rbenv/versions/2.3.1/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/username/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0
- /home/username/.gem/ruby/2.3.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /home/username/.rbenv/versions/2.3.1/bin
- /home/username/.rbenv/libexec
- /home/username/.rbenv/plugins/ruby-build/bin
- /home/username/.rbenv/plugins/ruby-build/bin
- /home/username/.rbenv/shims
- /home/username/.rbenv/bin
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
- /usr/games
- /usr/local/games
- /snap/bin
Odd, the error you're getting is because the plugin runs the command gem environment
but can't find the gem
executable in your path. I've seen issues with atom not loading the correct path when launched through the shortcut, but not when launched from the terminal.
When you launch it from the terminal, you're getting the same error regarding gem environment
or do you get an error about rsense
? If so, I'm not sure what the problem could be... Somehow atom isn't getting the correct path
.
Hi. I think that error is about rsense
. I launched atom from terminal and i got this message :
autocomplete-ruby: exec error: Error: Command failed: /home/username/.rbenv/versions/2.3.1/bin/rsense start --port 47367 --path /home/username/rubylearning
/bin/sh: 1: /home/username/.rbenv/versions/2.3.1/bin/rsense: not found
(You might need to set the rsense path, see the readme)
I found the cause of error. I didn't have rsense
installed. I install it and when launch atom
from the terminal there is no error. But i still have error with gem environment
, when i launch atom from application menu.
Good to hear! Sounds like you have your path set/modified in ~/.bashrc
, ~/.bash_profile
, or ~/.bash_login
. This works fine for your terminal, however apps launched from your desktop environment won't see these modifications. Try making all your path changes in ~/.profile
or maybe ~/.pam_environment
, and sourcing these files from one of the ~/.bash*
files you were using before (if needed). Take a look here for more info on this: https://help.ubuntu.com/community/EnvironmentVariables#A.2BAH4-.2F.pam_environment
I'll go ahead and close this since it looks like you got it working. Feel free to comment again if you need more help getting the path working from your desktop environment.
@ianhattendorf Thanks for the info.
I had the same error but when I'm opening from the terminal I still get the following error:
autocomplete-ruby: exec error: Error: Command failed: /home/ngondo/.rvm/gems/ruby-2.3.3/rsense start --port 47367 --path /home/ngondo/MORINGA/moringacore-android /bin/sh: 1: /home/ngondo/.rvm/gems/ruby-2.3.3/rsense: not found (You might need to set the rsense path, see the readme)
I have tried looking at the path issue to no avail. Kindly assist.
@cngondo Do you have rsense installed? If so, what's the output of which rsense
? Take the output of that and put it in the rsense path
setting for this plugin and try again.
[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