-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
2.5.0 update causes new autoloading bug with #hash method. #188
Comments
Interesting, there's new code that assumes classes and modules that act as namespaces are hashable. But yours shows that assumption cannot be made. Thanks for giving 2.5.0 a try so quickly, I'll think about it and will come back. |
Awesome. Thank you! Fwiw, there's not a heavy commitment to this code pattern in our case. Eg, if you were to come back and say that certain methods are incompatible with zeitwerk support, then we could work around it. Looking forward to hearing what you decide. |
@ethn that's very helpful to know. I believe I know how to get rid of that hash, but if I am wrong, I'll take that into account ❤️. |
I've published 2.5.1 with the fix. Thanks again for testing 2.5.0 so quickly and reporting this regression :). |
Wow, fantastic. Thanks for the quick fix! |
I'm afraid I don't have time to generate a test, but the short version is that the call
include Card::Env::Location
triggers the autoloading of card/env.rb, which contains the method:full file here
After the 2.5.0 update, this generates the following new error:
ArgumentError: wrong number of arguments (given 0, expected 1)
backtrace:
The text was updated successfully, but these errors were encountered: