-
Notifications
You must be signed in to change notification settings - Fork 100
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
Rails console broken #292
Comments
sorry, but how is this related to the facets project? |
I'm getting a similar issue, when trying to run tests.
|
Running into a similar issue when adding the Facets gem to an existing project. When just adding the gem: WARN: NoMethodError: private method `redefine_method' called for #<Class:ActiveModel::Error>
singleton_class.redefine_method(method, &block)
^^^^^^^^^^^^^^^^
Did you mean? define_method
WARN: /usr/local/bundle/gems/activesupport-6.1.7/lib/active_support/core_ext/module/redefine_method.rb:27:in `redefine_singleton_method'
/usr/local/bundle/gems/activemodel-6.1.7/lib/active_model/error.rb:13:in `i18n_customize_full_message='
/usr/local/bundle/gems/activesupport-6.1.7/lib/active_support/core_ext/class/attribute.rb:129:in `public_send'
/usr/local/bundle/gems/activesupport-6.1.7/lib/active_support/core_ext/class/attribute.rb:129:in `block in class_attribute'
/usr/local/bundle/gems/activesupport-6.1.7/lib/active_support/core_ext/class/attribute.rb:129:in `each'
/usr/local/bundle/gems/activesupport-6.1.7/lib/active_support/core_ext/class/attribute.rb:129:in `class_attribute' This is very similar to both of the errors listed above, just with a newer version of ActiveStorage. observed by trishtzy
observed by OBCENEIKON
researching this error lead me to this issue and the suggestions here. Applying the most recent suggestion, without cherry picking results in a different /usr/local/bundle/gems/activesupport-6.1.7/lib/active_support/core_ext/module/attr_internal.rb:33:in `public_send': protected method `attr_reader' called for ActionView::Helpers::ControllerHelper:Module (NoMethodError)
public_send("attr_#{type}", internal_name)
^^^^^^^^^^^
Did you mean? cattr_reader
mattr_reader
attr_setter
from /usr/local/bundle/gems/activesupport-6.1.7/lib/active_support/core_ext/module/attr_internal.rb:33:in `attr_internal_define' When cherry picking just "facets/string", this introduces an error with WARN: NameError: wrong constant name stringSymbolOrProcSetting
raise ArgumentError, "Unknown type: #{type}" unless ActiveAdmin.const_defined?(klass)
^^^^^^^^^^^^^^^
2022-10-19T20:15:16.800Z pid=37 tid=8el WARN: /usr/local/bundle/gems/activeadmin-2.10.1/lib/active_admin/dynamic_setting.rb:11:in `const_defined?' when cherry picking "facets/string/snakecase", we are back to WARN: NameError: uninitialized constant ActionText::ContentHelper
2022-10-19T20:18:22.709Z pid=1 tid=8fd WARN: /usr/local/bundle/gems/activesupport-6.1.7/lib/active_support/inflector/methods.rb:288:in `const_get'
/usr/local/bundle/gems/activesupport-6.1.7/lib/active_support/inflector/methods.rb:288:in `block in constantize'
/usr/local/bundle/gems/activesupport-6.1.7/lib/active_support/inflector/methods.rb:284:in `each' |
Getting this error repeatedly when running
bundle exec rails c
. Did anyone encounter this before?The text was updated successfully, but these errors were encountered: