This project is archived and is in readonly mode.
Weird classes namespace whith cache_classes = false
-
Bruno Michel
I've addded the failing test case.
-
Bruno Michel
For the record, this bug seems related to #5383 AS dependencies resolver broken: not missing constant error
-
Bruno Michel
#2548 Model namespace trouble is the same bug.
-
Bruno Michel
In my example, Redaction is a module, and the bug is only if the nesting namesapce is a module (not a class). So i've updated my test case to reflect that.
I've tried to fix this bug, but I can't find how to differentiate
A::Bfrommodule A; B; endin the autoloading stuff. -
David Trasbo
- State changed from new to incomplete
- Importance changed from to Low
The patch with the failing test case no longer seems to apply cleanly:
Applying: Failing test case for #5735 fatal: corrupt patch at line 23 Patch failed at 0001 Failing test case for #5735 When you have resolved this problem run "git am --resolved". If you would prefer to skip this patch, instead run "git am --skip". To restore the original branch and stop patching run "git am --abort".Could you please update it, and perhaps provide a fix if you figured it out?
-
Bruno Michel
I've updated the patch for the failing test case, but I didn't figure how to fix it without breaking others tests. Seems like it's a complex task, that needs a deep comprehension of loading of classes and modules.
-
David Trasbo
- State changed from incomplete to open
-
Jeff Kreeftmeijer
- State changed from open to incomplete
- Tag changed from cache_classes, namespace to cache_classes, namespace, patch
Please use the "patch" tag when adding a patch to make sure patched tickets end up in the open patches bin. :)
-
Ryan Bigg
Automatic cleanup of spam.
-
Bruno Michel
Jeff: I haven't use the patch tag on purpose, because it's only a failing test case and I haven't figured how to fix it (and even if it's possible to do that).
-
Jeff Kreeftmeijer
- State changed from incomplete to open
- Tag set to cache_classes, namespace
Bruno: I guess I didn't see that was a failing-test-patch. I have no clue why I marked it as incomplete either. My bad, sorry.
-
Santiago Pastorino
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
Santiago Pastorino
- State changed from open to stale
-
Bruno Michel
- State changed from stale to open
I've update the failing test case for 3-0-stable. I don't have any idea on how to fix it but I hope someone else will be able to help me on that.
[state:open]
-
rails
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
rails
- State changed from open to stale
