You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When analyzer 3.3.1 is combined with json_serializable, run build_runner build succeeds, but when combined with analyzer 3.4.0, run build_runner build fails.
$ dart run build_runner build --delete-conflicting-outputs
Building package executable... (5.1s)
Built build_runner:build_runner.
[INFO] Generating build script completed, took 605ms
[INFO] Precompiling build script... completed, took 769ms
[INFO] Building new asset graph completed, took 539ms
[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms
[SEVERE] freezed:freezed on lib/model/person.dart:
InconsistentAnalysisException: Requested result might be inconsistent with previously returned results
[SEVERE] json_serializable:json_serializable on lib/model/person.dart:
InconsistentAnalysisException: Requested result might be inconsistent with previously returned results
[SEVERE] json_serializable:json_serializable on lib/model/api_response.dart:
InconsistentAnalysisException: Requested result might be inconsistent with previously returned results
[SEVERE] json_serializable:json_serializable on lib/main.dart:
InconsistentAnalysisException: Requested result might be inconsistent with previously returned results
[INFO] Running build completed, took 12.1s
[INFO] Caching finalized dependency graph completed, took 32ms
[SEVERE] Failed after 12.1s
When analyzer 3.3.1 is combined with json_serializable,
run build_runner build
succeeds, but when combined with analyzer 3.4.0,run build_runner build
fails.https://pub.dev/packages/analyzer/versions/3.3.1
https://pub.dev/packages/analyzer/versions/3.4.0
I have created a project to reproduce it.
Update
analyzer: 3.3.1
in pubspec.yaml toanalyzer: 3.4.0
and run build_runner.https://github.com/koji-1009/dart_analyzer_340_json_error
error log
The text was updated successfully, but these errors were encountered: