Closed cartoush closed 8 years ago
Not really an issue for this package but for rsense https://github.com/rsense/rsense
Did you install Java and/or JRuby correctly? Try this: https://rvm.io/interpreters/jruby
I've also started getting an error like this since a recent update. It looks like someone has hard-coded this or one of the dependencies to look for a ruby 2.3.0 in their home directory instead of looking for the user's current ruby install.
That can be changed in your package settings.
Just found it, thanks. However, it's not great learning about this via a random atom startup error & going looking through addon bugs.
Yes, I agree. Maybe I will do a PR to update the readme. Or you are also more than welcome to :)
The owner of this package isn't using ruby or atom anymore, so it's up to the users to improve it.
Ah yes, looks like a side effect from #5.
Regarding the issue, is there any way we could detect if rsense is installed globally? Or do we need the full path? Either way a PR updating the readme would certainly be helpful.
Not sure. Wouldn't it be possible to just call rsense start
? So maybe just change the default to rsense
Could someone test changing this to rsense start
as a fix?
Been also having an error while starting Atom, is an error about the default directory of Rsense, i'm a Linux user, and the default install directory for Gems is /var/lib/gems/2.3.0/gems/
with an Rsense, version number on the folder, like /var/lib/gems/2.3.0/gems/rsense-0.5.18/ ,
not ~/.gem/ruby/2.3.0/bin/rsense
as the settings in the plug-in say, don't know if this is something specifically of my distro (elementaryOS) or linux systems in general, trying to fix such problem i copied the Rsense folder from the default system directory to the default directory addressed in settings and renamed it, which didn't really solve the problem, cause now i got a permission denied
error starting the Rsense package , changed the permission settings in the folder, didn't solve the problem either, making a rsense start
also doesn't solve the problem, plus trying to change the default port for Rsense server is a bit trickie.
I am getting this same error. Has anyone found a fix?
@alexdmz both the default port and the default path to rsense are in the settings for this plugin, did you try changing them there? You definitely don't want to blindly copy the gems directory somewhere else. Try setting the rsense path in settings to either rsense
or /var/lib/gems/2.3.0/gems/rsense-0.5.18/rsense
.
For future improvement if anyone wants to submit a PR:
gem environment
to find where rsense is installed. gem environment gemdir
seems to give the system gem directory, while gem environment gempath
gives both in PATH format.rsense
and checked the default path.@chrishough where is your rsense installed? Did you try changing the path in the autocomplete-ruby settings?
I was able to get around the initial error but updating the path, now it is showing this error...
I tried updating java but it did not fix it.
@chrishough looks like an issue with rsense, does this happen when running it through the command line? (running rsense start
in your project directory?)
For anyone else coming across this thread, you have to install the java jdk which does not come installed on osx sierra 10.12: http://mac.thetutorialfree.com/2016/08/01/how-to-quickstart-with-oracle-java-jdk-8-on-mac-os-x-10-12-sierra-easy-guide/
I am good to go now.
@ianhattendorf yep i did try to change port and default path in the settings, also changed the default directory to var/lib/gems/2.3.0/gems/rsense-0.5.18
where inside there is no actual only rsense
folder so i leave it , like var/lib/gems/2.3.0/gems/rsense-0.5.18
having no success and getting now a permission denied
error, even tried starting Atom as Sudo
I was also getting this error, here's what I did to fix it. (Note using cask for java install and rbenv)
I just fixed by doing:
gem install rsense
rsense
No more error.
Good to know that just rsense
worked for you, maybe someone could look into detecting if rsense
is available from the path or if we need to use GEM_HOME
.
Anyway I'm closing this for now. If someone wants to submit a PR to enhance rsense
detection that would be welcome.
Error starting rsense exec error: Error: Command failed: /bin/sh -c /home/artis/.rvm/gems/ruby-2.3.0/gems/rsense-0.5.18/bin/rsense start --port 47367 --path . /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in'
require': cannot load such file -- jruby-jars (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require' from /home/artis/.rvm/gems/ruby-2.3.0/gems/rsense-0.5.18/lib/rsense/client/daemon.rb:2:in<top (required)>' from /home/artis/.rvm/gems/ruby-2.3.0/gems/rsense-0.5.18/bin/rsense:3:in
require_relative' from /home/artis/.rvm/gems/ruby-2.3.0/gems/rsense-0.5.18/bin/rsense:3:in `