Can't get update_translations.dart to work
Sorry to bother you again. Building the app worked fine, only the process of converting translation to dart files in lib/i18n
failed for me.
I made sure to follow all instructions in the Readme.
Also all the following tests were done with a freshly cloned repository to make sure I didn't mess up something.
I always tried to run the following command flutter pub run quinb:update_translations
.
-
This was the first error I got:
No .dart_tool/package_config.json file found, please run "pub get" first. Starting with Dart 2.7 this file configures the resolution of package import URIs. Running "pub get" will generate this file. pub finished with exit code 65
-
So I ran
pub get
. When running the script again, I received the following error:PS G:\Sonstiges\Quinb_Fresh> flutter pub run quinb:update_translations Translations successfully updated! Formatting code... CreateProcessW failed 2 Unable to run 'flutter format lib'
-
I then proceeded to remov the formatting section in the build script (maybe that was stupid, but I'll write this in case it helps) and the script ran through but deleted all the files in
lib/i18n
and didn't generate updated ones.
Flutter doctor output
In case it is system- or installation dependent. If you need more information contact me.
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel unknown, v1.17.3, on Microsoft Windows [Version 10.0.18363.1082], locale de-DE)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Android Studio (version 4.0)
[√] Connected device (1 available)
• No issues found!