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

Can't invoke ruby when set to system with shell #32

Open
danny8376 opened this issue Sep 1, 2024 · 1 comment
Open

Can't invoke ruby when set to system with shell #32

danny8376 opened this issue Sep 1, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@danny8376
Copy link

Can't invoke ruby when set to system with shell due to it try to find version system in rbenv path
ruby.d should call get_ruby_bin_path_for_version instead.
Maybe rbenv-shell.ps1 should also add actual path from system ruby, but removing it might be annoying, so i'm not sure

@ccmywish ccmywish self-assigned this Sep 2, 2024
@ccmywish ccmywish added the bug Something isn't working label Sep 2, 2024
ccmywish added a commit that referenced this issue Sep 2, 2024
ccmywish added a commit that referenced this issue Sep 2, 2024
@ccmywish
Copy link
Collaborator

ccmywish commented Sep 2, 2024

Hi @danny8376

Thank you for reporting the bug! 🤝

And thank you again for pointing out to use get_ruby_bin_path_for_version() directly 👍

rbenv-shell.ps1 indeed adds the system ruby to the top of the $PATH, that's how it works.


I've moved the repo to my organization, so the URL has changed. Just run rbenv update TWICE
You may encouter error the first run, ignore it, the next run will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants