You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ruby-install sucessfully installs mruby-3.0.0 without errors. However, chruby reports a successful exit status under Bash, but still throws a Ruby exception when attempting to switch to mruby.
Whatever the underlying error is, it causes chruby-fish to exit non-zero, which prevents chruby from switching to mruby at all. This has been reported separately to chruby-fish as a related issue.
Steps To Reproduce
Steps to reproduce the bug:
ruby-install mruby-3.0.0
exec bash, which is required for chruby to pick up the newly installed Ruby
chruby mruby; echo or chruby mruby-3.0.0
Expected Behavior
chruby should either exit non-zero if there's an error during the switch, or not display an error if the Ruby exception raised is expected.
Actual Behavior
My default Ruby is currently set to Ruby 3.1.2. ruby-install mruby-3.0.0 succeeds without error. Under Bash, the following error occurs:
Ah, this was fixed by c44c6cc, which probably should get a patch release. The other bug is that chruby_use is not checking$? before executing the output of the ruby command. Something like this should catch it:
Description
ruby-install sucessfully installs mruby-3.0.0 without errors. However, chruby reports a successful exit status under Bash, but still throws a Ruby exception when attempting to switch to mruby.
Whatever the underlying error is, it causes chruby-fish to exit non-zero, which prevents chruby from switching to mruby at all. This has been reported separately to chruby-fish as a related issue.
Steps To Reproduce
Steps to reproduce the bug:
ruby-install mruby-3.0.0
exec bash
, which is required for chruby to pick up the newly installed Rubychruby mruby; echo
orchruby mruby-3.0.0
Expected Behavior
chruby should either exit non-zero if there's an error during the switch, or not display an error if the Ruby exception raised is expected.
Actual Behavior
My default Ruby is currently set to Ruby 3.1.2.
ruby-install mruby-3.0.0
succeeds without error. Under Bash, the following error occurs:The current Ruby is still changed to mruby-3.0.0, RUBY_ROOT is set correctly, and mirb is executable.
Environment
The text was updated successfully, but these errors were encountered: