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

uninitialized constant Uber::Options #422

Closed
kapso opened this issue Jan 28, 2017 · 10 comments
Closed

uninitialized constant Uber::Options #422

kapso opened this issue Jan 28, 2017 · 10 comments

Comments

@kapso
Copy link

kapso commented Jan 28, 2017

Seeing the following error

NameError: uninitialized constant Uber::Options
2017-01-28T18:28:36.979725+00:00 app[web.1]:   /app/vendor/bundle/ruby/2.3.0/gems/reform-2.2.3/lib/reform/form/populator.rb:12

According to my Gemfile.lock I have uber (0.1.0)

@mensfeld
Copy link

Same for me after update

@mensfeld
Copy link

mensfeld commented Jan 28, 2017

@kapso for now you can fix that by requiring manually uber/options somewhere before you use that:

require 'uber/options'

@apotonick it seems you somehow forgot about that require as well ;)

@apotonick
Copy link
Member

apotonick commented Jan 28, 2017 via email

@kapso
Copy link
Author

kapso commented Jan 29, 2017

@apotonick yea the above error is fixed in master

but now seeing this error -

NoMethodError - undefined method `[]' for nil:NilClass:
  simple_form (3.4.0) lib/simple_form/components/errors.rb:41:in `errors_on_attribute'

@mensfeld
Copy link

@apotonick can't do - using trbr from a gem so only official releases :(

@apotonick
Copy link
Member

Finally, Reform 2.3 appears on the horizon and should be released in a few days. Then, never ever uber and Dry.RB problems.

@apotonick
Copy link
Member

Please update to Reform 2.2.4, it should do the trick. 😉

@mensfeld
Copy link

@apotonick co can we finally remove uber at all?

@apotonick
Copy link
Member

Uhm, not entirely, there are still places (e.g. in Cells and Reform) where we use its inheritable_attr, but other than that, I extracted logic to separate gems which allows easier API changes without breaking everything.

Does it work for you?

@mensfeld
Copy link

Yeah - I have uber in only 2 places so I will just remove it one day ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants