-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neovim can't find neovim-ruby-host #7730
Comments
Guess the provider needs to be enhanced. @alexgenco any reason a global install would be required? |
Ruby was compiled with
|
Can't you fix this by overriding |
I'm not sure if that applies to my system, but I'm not an expert on ruby so excuse my ignorance - I didn't install the neovim gem using rvm. I was just able to download ruby and gem from my package manager (opensuse, zypper) and install neovim as I described above. Would the solution mentioned in that PR require neovim was installed using rvm? |
@cbcoutinho in your case you could add to your init.vim:
RVM was just used as an example in that PR; any arbitrary path or command can be used. |
Alrighty, that's a good enough workaround for me. Thanks again!
…On Dec 16, 2017 23:29, "Alex Genco" ***@***.***> wrote:
@cbcoutinho <https://github.com/cbcoutinho> in your case you could add to
your init.vim:
let g:ruby_host_prog = '/home/chris/.gem/ruby/2.4.0/bin/neovim-ruby-host.ruby2.4'
RVM was just used as an example in that PR; any arbitrary path or command
can be used.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7730 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AMTd7C2MxvjWbF4P_c9vkVNSLft5HNNEks5tBERUgaJpZM4RENDC>
.
|
Should we add some information about |
Sure |
i am using asdf as my version manager and I have set |
@alexzaizar09 this makes sense if The health check might need to be a little smarter when |
yes, ruby and node are working inside the working directory without any problem, but neovim does not detect them |
Is |
gem is inside the asdf installation, and not it is not in my path cause that is the reason for using a version manager. I need to switch between different versions of ruby, including the gem executable that is why you point neovim to some specific version you want to reference, not? |
Is the only problem here that your healthcheck is returning an error? If you just want a clean health check, setting the path as I mentioned should fix it. We could probably add something like |
no, the problem is that plugins that depend upon ruby or node are not working for example COC |
Ok sorry, I misunderstood. As far as I know (this may have changed), the
Unfortunately I can't really help with node.js. |
hum, really curious, there is nothing inside the |
Do you mean printing from an nvim command, e.g.
How isn't it working? Is there an error message? I looked a little bit into |
The ruby script ran from the command line as ruby main.rb is correctly printing "HI", while also the console responds with the correct ruby version. COC is not working because it is nor detecting errors nor completing any word. Pointing asdf exec neovim || gem || ruby doesn't work, the check health keeps throwing the same error messages and COC still is not working |
Can you please run The |
Just don't understand how this works guess just new |
the provider is working for both if that is your test, but the plugins are not, so which is it? To be clear, |
@alexzaizar09 Then the problem is likely with your COC configuration, not with the Ruby provider, which is working. |
@alexgenco the thing is that if I switch into a folder where I define through asdf the same versions I'm pointing to in the *_prog declarations suddenly it all works, Node and Ruby so how about that? |
So the ruby portion is working, I didn't change anything it is simply working, but the node portion change the error for this: |
Neovim can't find the latest version of
neovim-ruby-host
on my machine. Installing the neovim gem into my user directory by executing the following:Results in a binary with the ruby version attached to it as a suffix:
$ find / -iname 'neovim-ruby-host*' /home/chris/.gem/ruby/2.4.0/bin/neovim-ruby-host.ruby2.4
Running
vim +CheckHealth
results in an error of not being able to locate the neovim ruby binding; however, if I copyneovim-ruby-host.ruby24
toneovim-ruby-host
, then the health check works fine. Is there a simple way of making the health check a bit more lenient?My
gem environment
:The text was updated successfully, but these errors were encountered: