localizely / flutter-intl-vscode

This VS Code extension generates boilerplate code for localization of Flutter apps with official Dart Intl library
MIT License
87 stars 1 forks source link

Flutter Intl: Upload or Download fails #93

Closed adiospace closed 2 years ago

adiospace commented 2 years ago

My configuration:

flutter_intl:
  enabled: true
  localizely:
    project_id: xxxxxxxx
    download_empty_as: main

If i manually upload or download using the flutter pub run intl_utils:localizely_upload_main and flutter pub run intl_utils:localizely_download everything works as expected but when I do it trough the Flutter Intl: Upload main ARB file and Flutter Intl: Download ARB files commands in VSCode it fails with "Failed to download ARB files from Localizely".

I have vscode 1.67.2 and flutter intl 1.18.2 installed.

Is there a way to know why it fails?

EDIT this happens to an existing configured project which worked till now...

lzoran commented 2 years ago

Hi @adiospace,

I've checked upload and download commands through the Flutter Intl extension (VS Code 1.67.2, Flutter Intl 1.18.2, Flutter 3.0.1, Windows), and everything works fine on my machine.

I'm not sure what could be the cause of this problem.

Some hints:

  1. Could you check the Output window for more details?

    flutter-intl-vs-code-output-window

  2. Could you try to re-activate the global intl_utils package (known flutter cache issue after upgrade)?

    flutter pub global deactivate intl_utils

    Once you've deactivated the global intl_utils package, run the upload or download command through the Flutter Intl extension, which will activate the appropriate version of the intl_utils package again.

adiospace commented 2 years ago

Hey @lzoran, thank you for getting back to me so quickly.

The Output window was of no help, as it just shows ERROR: Failed to upload main ARB file to Localizely. Maybe a more comprehensive log would be more helpful for debugging.

BUT,

After running flutter pub global deactivate intl_utils everything is working now.

Thank you!