Open illuminated opened 1 year ago
My bad, haven't included the generator.... but it creates now a whole new problem:
→ flutter packages pub run build_runner build
[INFO] Generating build script...
[INFO] Generating build script completed, took 444ms
[INFO] Initializing inputs
[INFO] Reading cached asset graph...
[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....
[INFO] Cleaning up outputs from previous builds. completed, took 3ms
[INFO] Generating build script...
[INFO] Generating build script completed, took 71ms
[WARNING] Invalidated precompiled build script due to missing asset graph.
[INFO] Precompiling build script......
[INFO] Precompiling build script... completed, took 7.5s
[INFO] Initializing inputs
[INFO] Building new asset graph...
[INFO] Building new asset graph completed, took 653ms
[INFO] Checking for unexpected pre-existing outputs....
[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms
[INFO] Running build...
[INFO] Generating SDK summary...
[SEVERE] flutter_sheet_localization_generator:flutter_sheet_localization on test/widget_test.dart:
Bad state: Unexpected diagnostics:
/Users/milan/development/flutter/bin/cache/dart-sdk/lib/core/date_time.dart:919:64 - Expected to find '('.
/Users/milan/development/flutter/bin/cache/dart-sdk/lib/core/date_time.dart:919:64 - Expected an identifier.
/Users/milan/development/flutter/bin/cache/dart-sdk/lib/core/date_time.dart:919:61 - Expected an identifier.
[SEVERE] flutter_sheet_localization_generator:flutter_sheet_localization on lib/main.dart:
Bad state: Unexpected diagnostics:
/Users/milan/development/flutter/bin/cache/dart-sdk/lib/core/date_time.dart:919:64 - Expected to find '('.
/Users/milan/development/flutter/bin/cache/dart-sdk/lib/core/date_time.dart:919:64 - Expected an identifier.
/Users/milan/development/flutter/bin/cache/dart-sdk/lib/core/date_time.dart:919:61 - Expected an identifier.
[SEVERE] flutter_sheet_localization_generator:flutter_sheet_localization on lib/localization.dart:
Bad state: Unexpected diagnostics:
/Users/milan/development/flutter/bin/cache/dart-sdk/lib/core/date_time.dart:919:64 - Expected to find '('.
/Users/milan/development/flutter/bin/cache/dart-sdk/lib/core/date_time.dart:919:64 - Expected an identifier.
/Users/milan/development/flutter/bin/cache/dart-sdk/lib/core/date_time.dart:919:61 - Expected an identifier.
[SEVERE] flutter_sheet_localization_generator:flutter_sheet_localization on lib/presentation/start.dart:
Bad state: Unexpected diagnostics:
/Users/milan/development/flutter/bin/cache/dart-sdk/lib/core/date_time.dart:919:64 - Expected to find '('.
/Users/milan/development/flutter/bin/cache/dart-sdk/lib/core/date_time.dart:919:64 - Expected an identifier.
/Users/milan/development/flutter/bin/cache/dart-sdk/lib/core/date_time.dart:919:61 - Expected an identifier.
[INFO] Running build completed, took 576ms
[INFO] Caching finalized dependency graph...
[INFO] Caching finalized dependency graph completed, took 35ms
[SEVERE] Failed after 622ms
pub finished with exit code 1
My pubspec is the following (it's a new project):
environment:
sdk: '>=2.19.0 <3.0.0'
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
flutter_sheet_localization: ^5.1.1
cupertino_icons: ^1.0.5
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.1
flutter_sheet_localization_generator: ^5.1.1
build_runner: 2.2.0
@illuminated I'm getting same error after flutter and dependencies updates
Also I'm getting same error after flutter and dependencies updates Are there any package updates ?
As this package seems abandoned, see #61 for how to use a working fork.
Coming back to sheet_localization after several years and I'm struggling with the initial setup.
Running the build_runner reports a "severe" issue and nothing is generated:
The
localization.dart
is as in the ReadMe, placed in/lib
folder:This happens on a MacOS.
Any help appreciated.