-
Notifications
You must be signed in to change notification settings - Fork 122
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
Rubygems 3.4.12 "silence_warnings: uninitialized constant Gem::DefaultUserInteraction
(NameError
)"
#1485
Comments
Yes looks like in since v3.3.4 it's not loaded by default. We can manually load it in tapioca. However, it's recommended that you use the binstubs tapioca generates instead which resolves the issue as well: |
The binstub version does work, so that's good, but it's inconvenient that the globally installed one does not. Should be an easy fix. |
If I understand this thread correctly, the fix is to |
Gem::DefaultUserInteraction (NameError)
"
Gem::DefaultUserInteraction (NameError)
"Gem::DefaultUserInteraction
(NameError
)"
I confirmed that this was solved with the merge of #1650. This bug will be gone in the next release :) |
There might be a compatibility issue with Rubygems where
Gem::DefaultUserInteraction
is not automatically loaded, as in:$ tapioca dsl .../.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/tapioca-0.11.5/lib/tapioca.rb:22:in `silence_warnings': uninitialized constant Gem::DefaultUserInteraction (NameError)
Likely because of this:
For what it's worth, force-requiring it does make that visible:
Though
silence_warnings
doesn't do this currently, and doesn't check that it's loaded before exercising theuse_ui
method.This is with Rubygems 3.4.12 and Tapioca v0.11.5 on macOS 13.3.1.
The text was updated successfully, but these errors were encountered: