-
Notifications
You must be signed in to change notification settings - Fork 87
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
Translations are dissapearing in umbrella #178
Comments
My current workaround: https://gist.github.com/amatalai/1877f48a195f578682cfd20e66c6544e |
Thanks @amatalai! Indeed gettext does not work across dependencies. One possibly solution to this problem is for us to add an option that specifies exactly which apps to run to extract the dependencies from. Although your work around is also fine for now (albeit slightly inefficient). |
@josevalim I'm having the same issue as well. Was there anything done in the meantime that should solve the issue? |
@amatalai's workaround seems to be the way to go for now. |
@josevalim Could the workaround be incorporated into the extract mix task directly? (Via Arg / Config / somehow detect the umbrella) |
(As always I'd be happy to provide a PR 😃 if that is welcome) |
I think the work around can be more efficient but I didn't have time to look at it yet, unfortunately. |
Using the workaround produces a few issues:
All of this can be reproduced when using |
Hi @maennchen, I will take some time this week to look at this. Can you please make sure those problems happen in the initial repo: https://github.com/amatalai/gettext_umbrella_issue - feel free to fork it. Looking at a minimal app is going to make it a bit easier for me to address it. :) |
@josevalim I'll have a look if I can reproduce it there. 👍 |
@maennchen I noticed this fell through my cracks. The offer still stands if you are game. :) |
@josevalim it also fell through my cracks. I'll have a look next week since I'm currently on vacation. |
Enjoy the holidays! |
@josevalim I'm having trouble reproducing it in a minimal repo. The things that are "special" about hygeia could be:
Do you have an idea how I could reproduce that in a minimal repo? The Hygeia repo itself should demonstrate the issue nicely, other than it compiling very slowly, it should demonstrate the issue. |
I assume you tried to reproduce from the bottom up. What if you try from the top down? I.e. by getting the current app and stripping as much code and deps as you can? |
@josevalim I haven't tried that yet. Mainly because it takes forever with the current compilation times. But there's probably no way around it than to do it in reverse. I'll give it a try. |
@josevalim I was able to reduce it a lot. It for sure has nothing to do with the compilation time or any of the apps... I removed so much that I can't see anymore how this would be different from any other project except the https://github.com/maennchen/elixir-gettext-issue-178 To Reproduce
ProblemsWarningThe following warning should not be logged:
|
@josevalim Is there anything else I can do to narrow down the issue? |
Hi @maennchen! Thanks for isolating it. I will probably have time to look at this in a week or two, meanwhile it will be sitting on my inbox, so I will get to it as soon as I can. :) |
@josevalim Thanks & no hurry, it's not super urgent for me. If I can be of further help, just let me know :) |
Folks, since you are active on the repo and I have been unable to deliver, I am leaving this in your capable hands. If you need any help or rubber ducking, I will be glad to be involved and I will still follow the issue. Sorry and thanks! |
I've made this task that seems to work. You can call it in this way:
In this example, The task creates I can create a sample project with this task if you think it would be useful |
When you run
mix gettext.extract
from umbrella root not every module is forced to recompile, which causes translations to disappear.Example repo: https://github.com/amatalai/gettext_umbrella_issue
Probably somehow related to #165
The text was updated successfully, but these errors were encountered: