Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Version
5.8.0
Command type
build_runner (Default)
What happened?
Everything works fine until I add https://pub.dev/packages/localizely_sdk
When I try to start build, it completes but with the error
[INFO] Checking for unexpected pre-existing outputs. completed, took 0ms
[SEVERE] localizely_sdk:localizely_builder on
UnexpectedOutputException: client_app|lib/src/core/localization/generated/intl/localizely_localizations.dart
Expected only: {client_app|.dart_tool/flutter_gen/gen_l10n/localizely_localizations.dart}
Removing generate: true doesn't help, intl not synthetic already
Relevant a pubspec.yaml.
name: client_app
# Prevent accidental publishing to pub.dev.
publish_to: 'none'
version: 99.99.99+99
environment:
sdk: '>=3.0.5 <4.0.0'
flutter: '>=3.24.0 <3.30.0'
dependencies:
# Flutter SDK
flutter:
sdk: flutter
collection: 1.18.0
async: 2.11.0
meta: 1.15.0
# Localization
intl: 0.19.0
flutter_localizations:
sdk: flutter
drift: 2.21.0
drift_db_viewer: 2.1.0
sqlcipher_flutter_libs: 0.6.4
sqlite3: 2.4.7
go_router: 13.0.1
json_annotation: 4.8.1
localizely_sdk: 2.5.8
dev_dependencies:
# Utils
intl_utils: 2.8.7
build_runner: 2.4.12
drift_dev: 2.21.0
go_router_builder: 2.7.1
flutter_gen_runner: 5.8.0
json_serializable: 6.7.1
flutter:
uses-material-design: true
generate: true
assets:
- assets/images/
flutter_gen:
output: lib/src/core/assets/generated
line_length: 80
integrations:
flutter_svg: true
flare_flutter: false
rive: false
lottie: false
flutter_intl:
enabled: true
localizely:
ota_enabled: false
class_name: GeneratedLocalization
main_locale: en
arb_dir: lib/src/core/localization/translations
output_dir: lib/src/core/localization/generated
Relevant log output
Building package executable...
Built build_runner:build_runner.
[INFO] Generating build script completed, took 332ms
FlutterGen v5.6.0 Loading ... pubspec.yaml
[WARNING] Throwing away cached asset graph because the build phases have changed. This most commonly would happen as a result of adding a new dependency or updating your dependencies.
[WARNING] Throwing away cached asset graph because the language version of some package(s) changed. This would most commonly happen when updating dependencies or changing your min sdk constraint.
[INFO] Cleaning up outputs from previous builds. completed, took 165ms
[INFO] Generating build script completed, took 129ms
[WARNING] Invalidated precompiled build script due to missing asset graph.
[INFO] Precompiling build script... completed, took 9.5s
FlutterGen v5.8.0 Loading ...
Reading FlutterGen options from pubspec.yaml
[INFO] Building new asset graph completed, took 4.6s
[INFO] Checking for unexpected pre-existing outputs. completed, took 0ms
[SEVERE] localizely_sdk:localizely_builder on $package$:
UnexpectedOutputException: client_app|lib/src/core/localization/generated/intl/localizely_localizations.dart
Expected only: {client_app|.dart_tool/flutter_gen/gen_l10n/localizely_localizations.dart}
Generated: lib/src/core/assets/generated/assets.gen.dart
Generated: lib/src/core/assets/generated/fonts.gen.dart
FlutterGen finished.
[INFO] Running build completed, took 49.1s
[INFO] Caching finalized dependency graph completed, took 482ms
[SEVERE] Failed after 49.6s
Code of Conduct
- I agree to follow this project's Code of Conduct