-
Notifications
You must be signed in to change notification settings - Fork 55
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
Not extracting Strings #109
Comments
Thanks @dpedrinha for reporting this. However, I still don't understand how to reproduce or what is the problem? What version of the plugin are you using? Make sure you're using 1.1.4 (latest) as it fixes a couple of issues with previous versions. |
@noordawod Thank you for your response. I was using 1.1.2 which was released to fix my last complain about not generating the i18n.dart file (remember me now? :). And I it doesn't even work on a brand new Flutter project. I can upload a test project here but I don't think it's necessary. You can create a new project and test it without changing a single line of code. Create a Flutter project, open /lib/screens/home_page.dart, ALT + Enter on any String and Extract. Check .arb file, it's empty when it should have the extracted string. |
Thanks for the detailed description! 👍 Any chance you could upload a couple of screenshots showing this behavior? |
I'll see to it |
Brand new Flutter project main.dart open ALT+ENTER on a String -> click on first option Pop-up shows up. Select the .arb files and click OK .dart file is updated as if the String exists but it can't find it Sorry but I don't know how to make the images show here automatically. I shared the links with OneDrive. |
Perfect, now I understand what's going on! |
I don't know how to verify this. If you can walk me through I'd gladly do it. But I remember I updated the plugin to 1.1.1 and the i18n.dart wasn't being generated. Then it got fixed with 1.1.2 and this feature didn't work anymore (I don't know if this feature was working when on 1.1.1). I truly don't remember which version I was using before. But this is a feature of this plugin... |
I am also facing this problem. |
Yea, me too. |
I'm having the same problem. A few weeks ago, I created all my .arb files (17), got them translated and the i18n.dart file successfully generated. All good. Then yesterday I decided to include some new strings that I had to add to my app. Pressing alt-enter on the string and selecting 'Extract the string resource' brings up the arb file dialogue as expected. I select all my arb files (or just the en one) and select Ok. I get the message "Create string value resource 'no_internet_access'" on the status bar and the string in my code file changes to 'S.of(context).no_internet_access' but nothing else happens - no error message, no updated arb files and hence no new i18n.dart. Just a sad red line under my new variable name. Hope you have some idea of what the problem is....don't wanna go back to manual i18n. Your great plugin has spoilt me. Versions: |
Just realised I have the exact same issue. Plugin version: 1.1.4-191 When extracting strings they won't automatically be added to the .arb files. I have to do that manually. |
I have the same issue too. Everything is exactly as @dpedrinha described. |
Same for me UPDATE: Last working version is 1.0.6 |
Same here, any update on this? |
Been busy lately so not had time to look into this, sorry guys... |
No worries, it is worth waiting for. Also, really looking forward to it working in VSCode...my much preferred IDE (people call it an editor but it is way more). 👍 |
Hi @noordawod , I am having the same issue (no strings added to .arb file even though the string is replaced with key in the .dart file) I have tried with
Both have the same issue TIA |
Problem still here :'( EDIT : FIX My ide was with multiple project, so i open only once and the plugin works well. |
DialogWrapper has a bug , submit a PR to fix |
Hi Noor, |
Same for me |
Any updates? |
Compiled plugin with @paul1992li PR fix: 192 - for idea 2019.2 |
@paul1992li @xBioDreadx Thank you very much !! It works perfectly. I really appreciate it.. |
@xBioDreadx Thanks a lot. works well on IntelliJ 2019.2 |
@xBioDreadx Works perfectly on Android Studio 3.5.2. Thanks very much for stepping up here...needed to be fixed. |
@xBioDreadx Thank you very much! |
@xBioDreadx, thank you! |
@paul1992li Sorry, forgot to thank you also for the original fix. |
@xBioDreadx Thank you very much. Works on Android Studio 3.5.2 |
@xBioDreadx Thank you very much. Works on Android Studio 3.5.2 |
Hi.
Since latest updates the extract feature isn't updating the .arb files anymore.
How to reproduce: Create new Flutter project. Alt+Enter a String -> extract. It doesn't change the .arb files.
Android Studio 3.5.1
Build #AI-191.8026.42.35.5900203, built on September 25, 2019
JRE: 1.8.0_202-release-1483-b03 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
The text was updated successfully, but these errors were encountered: