-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
GlobalID errors #126
Comments
Huh that is weird, I haven't run into this in spite of doing a couple of fresh installs lately. Will investigate... |
It's even more weird because the GlobalID changelog mentions no code changes between 0.6.0 and 1.0.0 🤔 |
Results of debugging round two: it actually does work with |
Oh... imho that's even stranger... could you prepare an MVCE? |
Ahaaaa... okay I think I got it. Results of debugging round three: The app I was working on was an MVP so I skipped a lot of modules when doing Looking at the Re-enabling either of those two core modules resolves the issue; because both of them explicitly contain |
Great find 👏🏻 I think this would have surfaced earlier if futurism only included the respective rails submodules - which I intended to do, too 🙈 |
Confirmed adding Lines 1 to 3 in 8d352a5
Shall I PR it? It's a dependency of |
yeah, the question I'd like to pose is if we should actually move away from requiring the whole of rails and just require the necessary gems... there were some second thoughts in CR that led to stimulusreflex/cable_ready#175, thus excluding ActionMailbox from the slug size, for example... |
I think it makes sense to only have dependencies on global_id (and require it) and cable_ready. We also have some dependencies on the controller code, activerecord, etc. Do you think this list would do it? gem.add_dependency "actioncable"
gem.add_dependency "actionpack"
gem.add_dependency "actionview"
gem.add_dependency "activerecord"
gem.add_dependency "activesupport"
gem.add_dependency "railties"
gem.add_dependency "global_id"
gem.add_dependency "cable_ready" |
Yep. I'm not sure if ActiveModel should be in there. It's probably in every application anyway so we could just make it explicit? |
Is Futurism usable in non-Rails projects though? If it's not, then this extra granularity in the gemspec is moot, right? |
Not really, as pointed out in the referenced CR PR, because it blows up the memory slug size when you include action_mailbox and action_text by default, for example. |
Bug Report
Describe the bug
Trying out Futurism on a fresh app I'm getting fatal errors that seem to be a class-loading issue with GlobalID.
To Reproduce
The backtrace points to:
I notice in my Gemfile.lock I have
globalid
at version1.0.0
, which was added by default. If I downgrade and manually pin it to<= 0.6.0
instead, the issue is resolved.Versions
Futurism
External tools
The text was updated successfully, but these errors were encountered: