Rodsevich / arb_utils

A set of tools for working with .arb files (the preferred Dart way of dealing with i18n/l10n/translations)
https://pub.dev/packages/arb_utils
BSD 3-Clause "New" or "Revised" License
19 stars 12 forks source link

Incompatibility with Dart 3.4 Due to Removal of waitFor #28

Closed nicolantean closed 5 months ago

nicolantean commented 5 months ago

I'm experiencing a build error when using arb_utils 0.8.0 and Dart 3.4 in a Flutter project. We are not using the library as a dependency of the project, instead, we are installing it on the CI running a step with the following command: dart pub global activate arb_utils

This is the specific error message I encountered while trying to install it:

Failed to build arb_utils:arb_utils:
../../../.pub-cache/hosted/pub.dev/dcli-3.4.0/lib/src/util/wait_for_ex.dart:38:17: Error: Method not found: 'waitFor'.
    value = cli.waitFor<T>(wrapped);

The error comes from the arb_utils dependency on an outdated version of dcli. In dcli 4.0.0, the waitFor method has been completely removed because it is no longer supported in Dart 3.4. As a result, projects using Dart 3.4 and arb_utils face compatibility issues. Could you please update the dependency to align with the latest dcli version? Thanks.

Rodsevich commented 5 months ago

Sure, @nicolantean. Just make the PR and I publish it this very night.

thiagotognoli commented 5 months ago

Hi @Rodsevich, #29 , please publish this pr

Thanks

Rodsevich commented 5 months ago

Done! Thanks a lot, guys.