Skip to content
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

CheckHealth fails after gem install neovim using asdf #28859

Closed
npearson72 opened this issue May 20, 2024 · 3 comments
Closed

CheckHealth fails after gem install neovim using asdf #28859

npearson72 opened this issue May 20, 2024 · 3 comments
Labels
bug issues reporting wrong behavior closed:duplicate issues that are closed as duplicates of other issues provider

Comments

@npearson72
Copy link

Problem

I've tried setting the following, but it hasn't helped:

let g:ruby_host_prog="$HOME/.asdf/shims/neovim-ruby-host"

The ASDF Ruby is set globally and works just fine.

➜ ruby -v
ruby 3.3.1 (2024-04-23 revision c56cd86388) [x86_64-darwin23]

The gem is installed

➜ gem list | grep neovim
neovim (0.9.1)

I'm able to access the neovim-ruby-host

➜ $HOME/.asdf/shims/neovim-ruby-host
Can't run neovim-ruby-host interactively.

But when I do a :checkhealth I get:

provider.ruby: require("provider.ruby.health").check()

Ruby provider (optional) ~
- Ruby: ruby 3.3.1 (2024-04-23 revision c56cd86388) [x86_64-darwin23]
- WARNING `neovim-ruby-host` not found.
  - ADVICE:
    - Run `gem install neovim` to ensure the neovim RubyGem is installed.
    - Run `gem environment` to ensure the gem bin directory is in $PATH.
    - If you are using rvm/rbenv/chruby, try "rehashing".
    - See :help |g:ruby_host_prog| for non-standard gem installations.
    - You may disable this provider (and warning) by adding `let g:loaded_ruby_provider = 0` to your init.vim

Steps to reproduce

Call :checkhealth

Expected behavior

I would expect that neovim-ruby-host would be found.

Neovim version (nvim -v)

0.10.0

Vim (not Nvim) behaves the same?

no such command

Operating system/version

macOS 14.5 (23F79)

Terminal name/version

alacritty 0.14.0-dev

$TERM environment variable

tmux-256color

Installation

homebrew

@npearson72 npearson72 added the bug issues reporting wrong behavior label May 20, 2024
@matthewrosse

This comment has been minimized.

@wookayin
Copy link
Member

wookayin commented May 21, 2024

Duplicate of #28642: ruby checkhealth is broken, a regression bug in v0.10.

This should be already fixed in #28804. Can you try on the latest master or 11.0-dev nightly versions, and let us know if the problem still remains.

@wookayin wookayin added the closed:duplicate issues that are closed as duplicates of other issues label May 21, 2024
@wookayin wookayin closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
@npearson72
Copy link
Author

Thanks @wookayin. Confirm that it works in 11.0-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior closed:duplicate issues that are closed as duplicates of other issues provider
Projects
None yet
Development

No branches or pull requests

4 participants