simolus3 / drift

Drift is an easy to use, reactive, typesafe persistence library for Dart & Flutter.
https://drift.simonbinder.eu/
MIT License
2.57k stars 366 forks source link

Suspecting drift not to be compatible with `fe_analyzer_shared:52.0.0` or `analyzer:5.4.0` #2261

Closed RoarGronmo closed 1 year ago

RoarGronmo commented 1 year ago

Describe the bug

  1. Run flutter pub upgrade -> flutter upgrades _fe_analyzer_shared to 52.0.0 and analyzer to 5.4.0
  2. Run flutter pub run build_runner build --delete-conflicting-outputs
  3. Following output is produced:
PS C:\FlutterProjects\mwork> flutter pub run build_runner build --delete-conflicting-outputs
[INFO] Generating build script...
[INFO] Generating build script completed, took 465ms

[INFO] Initializing inputs
[INFO] Reading cached asset graph...
[INFO] Reading cached asset graph completed, took 366ms

[INFO] Checking for updates since last build...
[INFO] Checking for updates since last build completed, took 930ms

[WARNING] Invalidating asset graph due to build script update!
[INFO] Cleaning up outputs from previous builds....
[INFO] Cleaning up outputs from previous builds. completed, took 16ms

[INFO] Generating build script...
[INFO] Generating build script completed, took 147ms

[WARNING] Invalidated precompiled build script due to missing asset graph.
[INFO] Precompiling build script......
[INFO] Precompiling build script... completed, took 9.6s

[INFO] Initializing inputs
[INFO] Building new asset graph...
[INFO] Building new asset graph completed, took 918ms

[INFO] Checking for unexpected pre-existing outputs....
[INFO] Checking for unexpected pre-existing outputs. completed, took 0ms

[INFO] Running build...
[INFO] 2.6s elapsed, 0/2 actions completed.
[INFO] 6.2s elapsed, 1/2 actions completed.
[INFO] Generating SDK summary...
[INFO] 9.4s elapsed, 2/18 actions completed.
[INFO] 11.4s elapsed, 2/18 actions completed.
[INFO] 12.5s elapsed, 2/18 actions completed.
[INFO] Generating SDK summary completed, took 6.3s

[SEVERE] chopper_generator on lib/services/drift/database/m_work_database.dart:

This builder requires Dart inputs without syntax errors.
However, package:mwork/services/drift/database/m_work_database.dart (or an existing part) contains the following errors.
m_work_database.dart:37:1: Expected a method, getter, setter or operator declaration.
m_work_database.dart:38:3: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
m_work_database.dart:38:3: Expected to find ';'.
And 11 more...

Try fixing the errors and re-running the build.

[INFO] 13.9s elapsed, 44/60 actions completed.
[INFO] 14.9s elapsed, 44/60 actions completed.
[INFO] 16.0s elapsed, 45/60 actions completed.
[INFO] 22.3s elapsed, 58/74 actions completed.
[INFO] 23.3s elapsed, 170/172 actions completed.
[INFO] 24.3s elapsed, 172/188 actions completed.
[INFO] 25.4s elapsed, 172/188 actions completed.
[INFO] 26.6s elapsed, 172/188 actions completed.
[INFO] 28.9s elapsed, 173/189 actions completed.
[INFO] 30.2s elapsed, 188/204 actions completed.
[WARNING] drift_dev on lib/services/drift/database/m_work_database.dart:
Could not resolve Dart library package:mwork/services/drift/database/m_work_database.dart
This builder requires Dart inputs without syntax errors.
However, package:mwork/services/drift/database/m_work_database.dart (or an existing part) contains the following errors.
m_work_database.dart:37:1: Expected a method, getter, setter or operator declaration.
m_work_database.dart:38:3: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
m_work_database.dart:38:3: Expected to find ';'.
And 11 more...

Try fixing the errors and re-running the build.

[INFO] 32.2s elapsed, 216/232 actions completed.
[INFO] 33.3s elapsed, 216/232 actions completed.
[INFO] 34.3s elapsed, 241/257 actions completed.
[INFO] 35.4s elapsed, 265/278 actions completed.
[INFO] 36.6s elapsed, 286/302 actions completed.
[INFO] 37.6s elapsed, 305/321 actions completed.
[INFO] 38.6s elapsed, 323/338 actions completed.
[INFO] 39.9s elapsed, 532/548 actions completed.
[SEVERE] json_serializable on lib/services/drift/database/m_work_database.dart:

This builder requires Dart inputs without syntax errors.
However, package:mwork/services/drift/database/m_work_database.dart (or an existing part) contains the following errors.
m_work_database.dart:37:1: Expected a method, getter, setter or operator declaration.
m_work_database.dart:38:3: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
m_work_database.dart:38:3: Expected to find ';'.
And 11 more...

Try fixing the errors and re-running the build.

[INFO] 41.6s elapsed, 606/621 actions completed.
[INFO] 42.6s elapsed, 633/648 actions completed.
[INFO] 43.7s elapsed, 656/671 actions completed.
[WARNING] json_serializable on lib/services/api/generated/mwork_api.swagger.dart:
Could not read the "pubspec.yaml` file associated with this package. Usage of package:json_annotation could not be verified.
[INFO] 45.6s elapsed, 849/849 actions completed.
[INFO] Running build completed, took 45.8s

[INFO] Caching finalized dependency graph...
[INFO] Caching finalized dependency graph completed, took 203ms

[SEVERE] Failed after 46.0s
pub finished with exit code 1

It seems that '*.g.dart' files aren't generated anymore. image

Short term remedy

  1. Pin versions of _fe_analyzer_shared to 51.0.0 and analyzer to 5.3.1

    dependencies:
    _fe_analyzer_shared: 51.0.0
    analyzer: 5.3.1
  2. Run 'flutter pub upgrade'

  3. flutter pub run build_runner build --delete-conflicting-outputs runs smoothly again.

pubspec.yaml:

name: mwork
description: A tool for handling orders in Norva24.

# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.1.1+21

environment:
  sdk: ">=2.16.0-80.1.beta <4.0.0"

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:

  _fe_analyzer_shared: 51.0.0
  analyzer: 5.3.1
  #camera_web: ^0.3.0
  #characters: ^1.2.1
  #material_color_utilities: ^0.1.5

  #flutter_webview_plugin:
  #  git: https://github.com/nuc134r/flutter_webview_plugin.git

  msal_js: ^2.14.0
  aad_oauth: ^0.4.1
  provider: ^6.0.3
  path_to_regexp: ^0.4.0
  quiver: ^3.1.0
  #introduction_screen: ^3.0.2
  intl: ^0.18.0
  #socket_io_client: ^2.0.0-beta.4-nullsafety.0
  flutter:
    sdk: flutter

  #--jwt--- makes it possible to analyze jwt

  jwt_decode: ^0.3.1

  #---Swagger changes---
  chopper: ^6.0.0
  json_annotation: ^4.5.0

  #---Google Maps---
  google_maps_flutter: ^2.1.7
  google_maps_flutter_web: ^0.4.0

  #---Location data (GPS)---
  #location: ^4.4.0
  location: ^5.0.0-dev.8

  #---Get---
  get: ^4.6.5

  #---Flutter Bloc---
  flutter_bloc: ^8.0.1

  #---Settings / preferences ---
  #flutter_settings_screens: ^0.3.2-null-safety
  pref: ^2.6.0

  #---Camera function---
  camera: ^0.10.0+1
  path_provider: ^2.0.11
  path: ^1.8.1

  #---Floor functionality---
  #floor: ^1.2.0

  #---Drift functionality---
  drift: ^2.3.0
  #drift:
  #  git:
  #    url: https://github.com/simolus3/drift.git
  #    ref: develop
  #    path: drift
  #drift: 1.7.1
  sqlite3_flutter_libs: ^0.5.7

  #---Url launcher
  url_launcher: ^6.1.3

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.5

  #---badges for icons
  badges: ^2.0.3

  #---flutter webview plugin displace
  #flutter_webview_plugin:
  #    git: https://github.com/nuc134r/flutter_webview_plugin.git

  #---logging:
  logging: ^1.0.2
  firebase_core: ^2.0.0
  firebase_crashlytics: ^3.0.1
  package_info_plus: ^3.0.0
  firebase_performance: ^0.9.0+1

  #---db_inspector
  drift_db_viewer: ^2.0.0

  #---validators
  email_validator: ^2.1.17

  #---list extensions
  collection: ^1.16.0

  #---flag
  flag: ^6.0.0

  #---flutter_native_splash
  #flutter_native_splash: ^2.2.16

  #---Animated splashscreen:
  #animated_splash_screen: ^1.3.0
#---Icons---

flutter_icons:
  android: "launcher_icon"
  ios: true
  image_path: "assets/icons/logo_round.png"
  adaptive_icon_background: "#666666"

dev_dependencies:
  flutter_test:
    sdk: flutter

  #---swagger changes---
  build_runner: ^2.1.11
  chopper_generator: ^6.0.0
  json_serializable: ^6.2.0
  swagger_dart_code_generator: ^2.8.7

  #---Launcher icons---
  flutter_launcher_icons: ^0.11.0

  #---floor generators---
  #floor_generator: ^1.2.0

  #---drift generators---
  drift_dev: ^2.3.0
  #drift_dev: 1.7.1

  #--- analyzer
  #analyzer: ^4.1.0

  # The "flutter_lints" package below contains a set of recommended lints to
  # encourage good coding practices. The lint set provided by the package is
  # activated in the `analysis_options.yaml` file located at the root of your
  # package. See that file for information about deactivating specific lint
  # rules and activating additional ones.
  flutter_lints: ^2.0.1

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  assets:
    - assets/icons/

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

build.yaml:

targets:
  $default:
    sources:
      - swaggers/**
      - lib/**
      - lib/native/drift/native/**
      - $package$
    builders:
      chopper_generator:
        options:
          header: "//Generated code"
      swagger_dart_code_generator:
        options:
          input_folder: "swaggers/"
          output_folder: "lib/services/api/generated"

Please give a note if you neeed db files to investigate.

simolus3 commented 1 year ago

I couldn't reproduce the issue in this repository after upgrading to the latest analyzer packages. That said,

[WARNING] drift_dev on lib/services/drift/database/m_work_database.dart:
Could not resolve Dart library package:mwork/services/drift/database/m_work_database.dart
This builder requires Dart inputs without syntax errors.
However, package:mwork/services/drift/database/m_work_database.dart (or an existing part) contains the following errors.
m_work_database.dart:37:1: Expected a method, getter, setter or operator declaration.
m_work_database.dart:38:3: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
m_work_database.dart:38:3: Expected to find ';'.
And 11 more...

Are these syntax errors legit? If they are, can you fix them in m_work_database.dart? If not, having the source file would help investigate :+1:

RoarGronmo commented 1 year ago

The clue is that the m_work_database.g.dart file isn't created at all with the newest ones, so all references to m_work_database.g.dart are broken...

All works fine with

dependencies:
  _fe_analyzer_shared: 51.0.0
  analyzer: 5.3.1

Broken with:

dependencies:
  _fe_analyzer_shared: 52.0.0
  analyzer: 5.4.0

What files do you need ?

simolus3 commented 1 year ago

The build log says that there are syntax errors in m_work_database.dart, which I assume is a regular source file (it's not a .g.dart file).

What files do you need ?

Having that source file would be good to check the syntax error.

RoarGronmo commented 1 year ago

The m_work_database.dart is ok, but it references m_work_database.g.dart which disappears when using the new analyzer files. (note "renamed" with .txt) m_work_database.dart.txt

There are approx 30 table files, do you need them too ?

RoarGronmo commented 1 year ago

Note, there are other files generated which is not directly related to drift, and those are generated ok. So there shouldn't be any influences from that library AFAIK.

  #---swagger changes---
  build_runner: ^2.1.11
  chopper_generator: ^6.0.0
  json_serializable: ^6.2.0
  swagger_dart_code_generator: ^2.8.7
RoarGronmo commented 1 year ago

I'll try to make a proof-of-concept project, just to pinpoint where the trouble is. But first I'll check some other (older) projects which uses drift first. It may take a while.

RoarGronmo commented 1 year ago

An older project, with similar (but not quite the same) setup works fine with newest analyzer files:

This pubspec.yaml is like this:

name: m_work_admin
description: mWork admin module.

# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.1.1+9

environment:
  sdk: ">=2.17.1 <3.0.0"

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
  flutter:
    sdk: flutter

  #---Google Maps---
  google_maps_flutter: ^2.1.12
  google_maps_flutter_web: ^0.4.0+2
  google_maps_cluster_manager: ^3.0.0+1
  flutter_google_street_view: ^3.0.0
  pointer_interceptor: ^0.9.3+2
  maps_toolkit: ^2.0.1

  #---Charts
  charts_flutter: ^0.12.0

  #---Dropdown menu 2
  dropdown_button2: ^1.7.2

  # ---logging
  logging: ^1.0.2

  # ---visibility detector
  visibility_detector: ^0.3.3

  # ---flutter settings screen //May be obsolete, no updates since april 2021 and upcoming errors
  #flutter_settings_screens: ^0.3.2-null-safety

  # ---new preference attempt
  pref: ^2.6.0

  # ---Microsoft Client Access Web
  msal_js: ^2.14.0

  #---Aad Oauth
  aad_oauth: ^0.4.0

  # ---Bidirectional listview
  bidirectional_listview: ^1.0.3
  infinite_listview: ^1.1.0

  #---ScrollableListView
  scrollable_positioned_list: ^0.3.2

  # ---Swagger changes
  chopper: ^6.0.0
  json_annotation: ^4.6.0

  #---linked_scroll_controller
  linked_scroll_controller: ^0.2.0

  # ---Drift
  #drift: ^1.7.1
  drift: ^2.0.2+1
  sqlite3_flutter_libs: ^0.5.9
  path_provider: ^2.0.11
  path: ^1.8.2

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.5

  #--Formatter
  intl: ^0.17.0

  #--package info
  package_info_plus: ^3.0.2
  firebase_core: ^2.3.0
  firebase_performance: ^0.9.0+6
  google_fonts: ^3.0.1

  collection: ^1.16.0

dev_dependencies:
  flutter_test:
    sdk: flutter

  # ---Swagger changes
  build_runner: ^2.2.0
  chopper_generator: ^6.0.0
  json_serializable: ^6.3.1
  swagger_dart_code_generator: ^2.7.4

  # ---Drift
  #drift_dev: ^1.7.0
  drift_dev: ^2.0.2

  # The "flutter_lints" package below contains a set of recommended lints to
  # encourage good coding practices. The lint set provided by the package is
  # activated in the `analysis_options.yaml` file located at the root of your
  # package. See that file for information about deactivating specific lint
  # rules and activating additional ones.
  flutter_lints: ^2.0.1

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  # assets:
  #   - images/a_dot_burr.jpeg
  #   - images/a_dot_ham.jpeg

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  #fonts:
  #  - family: RobotoMono
  #    fonts:
  #      - asset: fonts/RobotoMono-Regular.ttf
  #      - asset: fonts/RobotoMono-Bold.ttf
  #        weight: 700
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

So the problem lies within the difference between those two projects somewhere...

RoarGronmo commented 1 year ago

Is there some verbose parameter on the build_runner setup, since the error seems to be there ?

RoarGronmo commented 1 year ago

Libraries on project with no errors:

  _fe_analyzer_shared 52.0.0
  _flutterfire_internals 1.0.12
  aad_oauth 0.4.1
  analyzer 5.4.0
  analyzer_plugin 0.11.2
  args 2.3.1
  async 2.10.0
  bidirectional_listview 1.0.3
  boolean_selector 2.1.1
  build 2.3.1
  build_config 1.1.1
  build_daemon 3.1.0
  build_resolvers 2.1.0
  build_runner 2.3.3
  build_runner_core 7.2.7
  built_collection 5.1.1
  built_value 8.4.2
  characters 1.2.1
  charcode 1.3.1
  charts_common 0.12.0
  charts_flutter 0.12.0 (discontinued)
  checked_yaml 2.0.2
  chopper 6.0.0
  chopper_generator 6.0.0
  cli_util 0.3.5
  clock 1.1.1
  code_builder 4.4.0
  collection 1.17.0
  convert 3.1.1
  crypto 3.0.2
  csslib 0.17.2
  cupertino_icons 1.0.5
  dart_style 2.2.4
  dartz 0.10.1
  drift 2.4.2
  drift_dev 2.4.1
  dropdown_button2 1.9.2
  equatable 2.0.5
  fake_async 1.3.1
  ffi 2.0.1
  file 6.1.4
  firebase_core 2.4.1
  firebase_core_platform_interface 4.5.2
  firebase_core_web 2.1.0
  firebase_performance 0.9.0+9
  firebase_performance_platform_interface 0.1.1+29
  firebase_performance_web 0.1.1+18
  fixnum 1.0.1
  flutter 0.0.0 from sdk flutter
  flutter_google_street_view 3.1.2
  flutter_lints 2.0.1
  flutter_plugin_android_lifecycle 2.0.7
  flutter_secure_storage 6.1.0 (7.0.1 available)
  flutter_secure_storage_linux 1.1.2
  flutter_secure_storage_macos 1.1.2 (2.0.1 available)
  flutter_secure_storage_platform_interface 1.0.1
  flutter_secure_storage_web 1.1.1
  flutter_secure_storage_windows 1.1.3
  flutter_test 0.0.0 from sdk flutter
  flutter_web_plugins 0.0.0 from sdk flutter
  frontend_server_client 3.2.0
  glob 2.1.1
  google_fonts 3.0.1
  google_maps 6.2.0
  google_maps_cluster_manager 3.0.0+1
  google_maps_flutter 2.2.3
  google_maps_flutter_android 2.4.1
  google_maps_flutter_ios 2.1.12
  google_maps_flutter_platform_interface 2.2.4
  google_maps_flutter_web 0.4.0+3
  graphs 2.2.0
  html 0.15.1
  http 0.13.5
  http_multi_server 3.2.1
  http_parser 4.0.2
  infinite_listview 1.1.0
  intl 0.17.0 (0.18.0 available)
  io 1.0.3
  js 0.6.5 (0.6.6 available)
  js_wrapping 0.7.4
  json_annotation 4.7.0
  json_serializable 6.5.4
  kotlin_scope_function 1.0.2
  linked_scroll_controller 0.2.0
  lints 2.0.1
  logging 1.1.0
  maps_toolkit 2.0.1
  markdown 5.0.0 (6.0.1 available)
  matcher 0.12.13 (0.12.14 available)
  material_color_utilities 0.2.0
  meta 1.8.0
  mime 1.0.3
  msal_js 2.14.0
  package_config 2.1.0
  package_info_plus 3.0.2
  package_info_plus_platform_interface 2.0.1
  path 1.8.2 (1.8.3 available)
  path_provider 2.0.11
  path_provider_android 2.0.22
  path_provider_ios 2.0.11
  path_provider_linux 2.1.7
  path_provider_macos 2.0.6
  path_provider_platform_interface 2.0.5
  path_provider_windows 2.1.3
  pedantic 1.11.1
  platform 3.1.0
  plugin_platform_interface 2.1.3
  pointer_interceptor 0.9.3+3
  pool 1.5.1
  pref 2.7.0
  process 4.2.4
  pub_semver 2.1.3
  pubspec_parse 1.2.1
  recase 4.1.0
  sanitize_html 2.0.0
  scrollable_positioned_list 0.3.5
  shared_preferences 2.0.15
  shared_preferences_android 2.0.14
  shared_preferences_ios 2.1.1
  shared_preferences_linux 2.1.2
  shared_preferences_macos 2.0.5
  shared_preferences_platform_interface 2.1.0
  shared_preferences_web 2.0.4
  shared_preferences_windows 2.1.2
  shelf 1.4.0
  shelf_web_socket 1.0.3
  sky_engine 0.0.99 from sdk flutter
  source_gen 1.2.6
  source_helper 1.3.3
  source_span 1.9.1
  sqlite3 1.9.1
  sqlite3_flutter_libs 0.5.12
  sqlparser 0.26.0
  stack_trace 1.11.0
  stream_channel 2.1.1
  stream_transform 2.1.0
  street_view_platform_interface 1.0.8
  string_scanner 1.2.0
  swagger_dart_code_generator 2.9.0
  term_glyph 1.2.1
  test_api 0.4.16 (0.4.17 available)
  timing 1.0.0
  typed_data 1.3.1
  universal_io 2.0.4
  vector_math 2.1.4
  visibility_detector 0.3.3
  watcher 1.0.2
  web_socket_channel 2.2.0
  webview_flutter 3.0.4 (4.0.1 available)
  webview_flutter_android 2.10.4 (3.1.1 available)
  webview_flutter_platform_interface 1.9.5 (2.0.0 available)
  webview_flutter_wkwebview 2.9.5 (3.0.1 available)
  win32 3.1.3 (4.1.0 available)
  xdg_directories 0.2.0+2
  yaml 3.1.1

Libraries on project with errors

> _fe_analyzer_shared 52.0.0 (was 51.0.0)
  _flutterfire_internals 1.0.12
  aad_oauth 0.4.1
> analyzer 5.4.0 (was 5.3.1)
  analyzer_plugin 0.11.2
  archive 3.3.5
  args 2.3.1
  async 2.10.0
  badges 2.0.3
  bloc 8.1.0
  boolean_selector 2.1.1
  build 2.3.1
  build_config 1.1.1
  build_daemon 3.1.0
  build_resolvers 2.1.0
  build_runner 2.3.3
  build_runner_core 7.2.7
  built_collection 5.1.1
  built_value 8.4.2
  camera 0.10.1
  camera_android 0.10.2
  camera_avfoundation 0.9.10
  camera_platform_interface 2.3.2
  camera_web 0.3.1
  characters 1.2.1
  charcode 1.3.1
  checked_yaml 2.0.2
  chopper 6.0.0
  chopper_generator 6.0.0
  cli_util 0.3.5
  clock 1.1.1
  code_builder 4.4.0
  collection 1.17.0
  convert 3.1.1
  cross_file 0.3.3+2
  crypto 3.0.2
  csslib 0.17.2
  cupertino_icons 1.0.5
  dart_style 2.2.4
  dartz 0.10.1
  db_viewer 1.0.3
  drift 2.4.2
  drift_db_viewer 2.0.0
  drift_dev 2.4.1
  email_validator 2.1.17
  enum_to_string 2.0.1
  equatable 2.0.5
  fake_async 1.3.1
  ffi 2.0.1
  file 6.1.4
  firebase_core 2.4.1
  firebase_core_platform_interface 4.5.2
  firebase_core_web 2.1.0
  firebase_crashlytics 3.0.9
  firebase_crashlytics_platform_interface 3.3.10
  firebase_performance 0.9.0+9
  firebase_performance_platform_interface 0.1.1+29
  firebase_performance_web 0.1.1+18
  fixnum 1.0.1
  flag 6.0.0
  flutter 0.0.0 from sdk flutter
  flutter_bloc 8.1.1
  flutter_launcher_icons 0.11.0
  flutter_lints 2.0.1
  flutter_plugin_android_lifecycle 2.0.7
  flutter_secure_storage 6.1.0 (7.0.1 available)
  flutter_secure_storage_linux 1.1.2
  flutter_secure_storage_macos 1.1.2 (2.0.1 available)
  flutter_secure_storage_platform_interface 1.0.1
  flutter_secure_storage_web 1.1.1
  flutter_secure_storage_windows 1.1.3
  flutter_svg 1.1.6
  flutter_test 0.0.0 from sdk flutter
  flutter_web_plugins 0.0.0 from sdk flutter
  frontend_server_client 3.2.0
  get 4.6.5
  glob 2.1.1
  google_maps 6.2.0
  google_maps_flutter 2.2.3
  google_maps_flutter_android 2.4.1
  google_maps_flutter_ios 2.1.12
  google_maps_flutter_platform_interface 2.2.4
  google_maps_flutter_web 0.4.0+3
  graphs 2.2.0
  html 0.15.1
  http 0.13.5
  http_multi_server 3.2.1
  http_parser 4.0.2
  image 3.3.0 (4.0.8 available)
  intl 0.18.0
  io 1.0.3
  js 0.6.5 (0.6.6 available)
  js_wrapping 0.7.4
  json_annotation 4.7.0
  json_serializable 6.5.4
  jwt_decode 0.3.1
  lints 2.0.1
  location 5.0.0-dev.8
  location_android 5.0.0-dev.3
  location_ios 5.0.0-dev.4
  location_macos 5.0.0-dev.3
  location_platform_interface 5.0.0-dev.3
  location_web 5.0.0-dev.3
  logging 1.1.0
  markdown 5.0.0 (6.0.1 available)
  matcher 0.12.13 (0.12.14 available)
  material_color_utilities 0.2.0
  meta 1.8.0
  mime 1.0.3
  msal_js 2.14.0
  nested 1.0.0
  package_config 2.1.0
  package_info_plus 3.0.2
  package_info_plus_platform_interface 2.0.1
  path 1.8.2 (1.8.3 available)
  path_drawing 1.0.1
  path_parsing 1.0.1
  path_provider 2.0.11
  path_provider_android 2.0.22
  path_provider_ios 2.0.11
  path_provider_linux 2.1.7
  path_provider_macos 2.0.6
  path_provider_platform_interface 2.0.5
  path_provider_windows 2.1.3
  path_to_regexp 0.4.0
  pedantic 1.11.1
  petitparser 5.1.0
  platform 3.1.0
  plugin_platform_interface 2.1.3
  pointycastle 3.6.2
  pool 1.5.1
  pref 2.7.0
  process 4.2.4
  provider 6.0.5
  pub_semver 2.1.3
  pubspec_parse 1.2.1
  quiver 3.2.1
  recase 4.1.0
  sanitize_html 2.0.0
  shared_preferences 2.0.15
  shared_preferences_android 2.0.14
  shared_preferences_ios 2.1.1
  shared_preferences_linux 2.1.2
  shared_preferences_macos 2.0.5
  shared_preferences_platform_interface 2.1.0
  shared_preferences_web 2.0.4
  shared_preferences_windows 2.1.2
  shelf 1.4.0
  shelf_web_socket 1.0.3
  sky_engine 0.0.99 from sdk flutter
  source_gen 1.2.6
  source_helper 1.3.3
  source_span 1.9.1
  sqlite3 1.9.1
  sqlite3_flutter_libs 0.5.12
  sqlparser 0.26.0
  stack_trace 1.11.0
  stream_channel 2.1.1
  stream_transform 2.1.0
  string_scanner 1.2.0
  swagger_dart_code_generator 2.9.0
  term_glyph 1.2.1
  test_api 0.4.16 (0.4.17 available)
  timing 1.0.0
  typed_data 1.3.1
  universal_io 2.0.4
  url_launcher 6.1.7
  url_launcher_android 6.0.22
  url_launcher_ios 6.0.17
  url_launcher_linux 3.0.1
  url_launcher_macos 3.0.1
  url_launcher_platform_interface 2.1.1
  url_launcher_web 2.0.13
  url_launcher_windows 3.0.1
  vector_math 2.1.4
  watcher 1.0.2
  web_socket_channel 2.2.0
  webview_flutter 3.0.4 (4.0.1 available)
  webview_flutter_android 2.10.4 (3.1.1 available)
  webview_flutter_platform_interface 1.9.5 (2.0.0 available)
  webview_flutter_wkwebview 2.9.5 (3.0.1 available)
  win32 3.1.3 (4.1.0 available)
  xdg_directories 0.2.0+2
  xml 6.2.2
  yaml 3.1.1
RoarGronmo commented 1 year ago

I actually found a --verbose parameter to use. Same problem, no further info AFAIK.

PS C:\FlutterProjects\mwork> flutter pub run build_runner build --verbose --delete-conflicting-outputs
[  +27 ms] executing: [c:\Flutter\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +63 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 9b4416aaa79bf984d06aa40ab515a274a50a75a7
[        ] executing: [c:\Flutter\flutter/] git tag --points-at 9b4416aaa79bf984d06aa40ab515a274a50a75a7
[  +71 ms] Exit code 0 from: git tag --points-at 9b4416aaa79bf984d06aa40ab515a274a50a75a7
[        ] 3.7.0-1.3.pre
[  +14 ms] executing: [c:\Flutter\flutter/] git rev-parse --abbrev-ref --symbolic @{upstream}
[  +58 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{upstream}
[        ] origin/beta
[        ] executing: [c:\Flutter\flutter/] git ls-remote --get-url origin
[  +52 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +71 ms] executing: [c:\Flutter\flutter/] git rev-parse --abbrev-ref HEAD
[  +64 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] beta
[  +67 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +85 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[  +81 ms] executing: c:\Flutter\flutter\bin\cache\dart-sdk\bin\dart __deprecated_pub --color run build_runner build --verbose --delete-conflicting-outputs
[INFO] Entrypoint:Generating build script...
[INFO] Entrypoint:Generating build script completed, took 496ms

[INFO] BuildDefinition:Initializing inputs
[INFO] BuildDefinition:Reading cached asset graph...
[INFO] BuildDefinition:Reading cached asset graph completed, took 408ms

[INFO] BuildDefinition:Checking for updates since last build...
[INFO] BuildDefinition:Checking for updates since last build completed, took 3.3s

[WARNING] BuildDefinition:
Invalidating asset graph due to build script update!
[INFO] BuildDefinition:Cleaning up outputs from previous builds....
[INFO] BuildDefinition:Cleaning up outputs from previous builds. completed, took 20ms

[INFO] Entrypoint:Generating build script...
[INFO] Entrypoint:Generating build script completed, took 141ms

[WARNING] Bootstrap:
Invalidated precompiled build script due to missing asset graph.
[INFO] Bootstrap:Precompiling build script......
[INFO] Bootstrap:Precompiling build script... completed, took 12.3s

[INFO] BuildDefinition:Initializing inputs
[INFO] BuildDefinition:Building new asset graph...
[INFO] BuildDefinition:Building new asset graph completed, took 913ms

[INFO] BuildDefinition:Checking for unexpected pre-existing outputs....
[INFO] BuildDefinition:Checking for unexpected pre-existing outputs. completed, took 0ms

[INFO] Build:Running build...
[INFO] Heartbeat:2.7s elapsed, 0/2 actions completed.
[INFO] Heartbeat:6.8s elapsed, 1/2 actions completed.
[INFO] build_resolvers:Generating SDK summary...
[INFO] Heartbeat:10.2s elapsed, 2/18 actions completed.
[INFO] Heartbeat:12.4s elapsed, 2/18 actions completed.
[INFO] Heartbeat:13.6s elapsed, 2/18 actions completed.
[INFO] build_resolvers:Generating SDK summary completed, took 6.7s

[SEVERE] chopper_generator on lib/services/drift/database/m_work_database.dart:

This builder requires Dart inputs without syntax errors.
However, package:mwork/services/drift/database/m_work_database.dart (or an existing part) contains the following errors.
m_work_database.dart:37:1: Expected a method, getter, setter or operator declaration.
m_work_database.dart:38:3: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
m_work_database.dart:38:3: Expected to find ';'.
And 11 more...

Try fixing the errors and re-running the build.

package:build_resolvers/src/resolver.dart 225:9  AnalyzerResolver.compilationUnitFor.<fn>
package:pool/pool.dart 127:28                    Pool.withResource
package:source_gen/src/builder.dart 373:18       _hasAnyTopLevelAnnotations
package:source_gen/src/builder.dart 89:11        _Builder.build

[INFO] Heartbeat:14.9s elapsed, 44/60 actions completed.
[INFO] Heartbeat:15.9s elapsed, 44/60 actions completed.
[INFO] Heartbeat:16.9s elapsed, 44/60 actions completed.
[FINE] chopper_generator on lib/services/drift/tables/activity_appointments_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/activity_response_types_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/file_io_firms_orders_notes_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/file_io_firms_actors_notes_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/full_activity_appointments_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/file_io_firms_orders_order_line_notes_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/map_locations_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/order_firms_actors_contact_persons_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/orders_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/order_firms_actors_delivery_addresses_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/order_firms_actors_employees_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/order_firms_offices_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/order_firms_orders_activities_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/order_firms_sections_table.dart:Running ChopperGenerator
[INFO] Heartbeat:23.4s elapsed, 58/74 actions completed.
[FINE] chopper_generator on lib/services/drift/tables/order_firms_customers_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/order_firms_products_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/order_firms_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/order_firms_texts_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/order_firms_units_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/order_firm_countries_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/order_lines_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/order_line_notes_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/order_notes_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/order_text_types_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/report_form_connections_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/report_form_fields_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/user_multi_selections_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/drift/tables/user_selections_table.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/api/generated/mwork_api.swagger.dart:Running ChopperGenerator
[FINE] chopper_generator on lib/services/api/generated/mwork_api_5016.swagger.dart:Running ChopperGenerator
[INFO] Heartbeat:25.5s elapsed, 172/188 actions completed.
[INFO] Heartbeat:26.5s elapsed, 172/188 actions completed.
[INFO] Heartbeat:27.7s elapsed, 172/188 actions completed.
[INFO] Heartbeat:29.0s elapsed, 172/188 actions completed.
[INFO] Heartbeat:31.1s elapsed, 172/188 actions completed.
[INFO] Heartbeat:32.3s elapsed, 188/204 actions completed.
[WARNING] drift_dev on lib/services/drift/database/m_work_database.dart:
Could not resolve Dart library package:mwork/services/drift/database/m_work_database.dart
This builder requires Dart inputs without syntax errors.
However, package:mwork/services/drift/database/m_work_database.dart (or an existing part) contains the following errors.
m_work_database.dart:37:1: Expected a method, getter, setter or operator declaration.
m_work_database.dart:38:3: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
m_work_database.dart:38:3: Expected to find ';'.
And 11 more...

Try fixing the errors and re-running the build.

[INFO] Heartbeat:34.2s elapsed, 213/229 actions completed.
[INFO] Heartbeat:35.2s elapsed, 213/229 actions completed.
[INFO] Heartbeat:36.3s elapsed, 236/252 actions completed.
[INFO] Heartbeat:37.3s elapsed, 260/276 actions completed.
[INFO] Heartbeat:38.4s elapsed, 282/298 actions completed.
[INFO] Heartbeat:39.5s elapsed, 304/320 actions completed.
[INFO] Heartbeat:40.5s elapsed, 325/340 actions completed.
[FINE] json_serializable on lib/common/globals.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/common/globals.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/common/m_work_config.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/common/m_work_config.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/common/enums.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/common/enums.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/common/config.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/common/config.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/common/theme.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/common/theme.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/deprecated/order/deprecated/note.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/deprecated/order/deprecated/note.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/common/extensions.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/common/extensions.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/deprecated/order/order_heading/deprecated/order_leading_info.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/deprecated/order/order_heading/deprecated/order_leading_info.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/deprecated/order/order_heading/deprecated/order_title.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/deprecated/order/order_heading/deprecated/order_title.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/deprecated/order/deprecated/order_extended_info.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/deprecated/order/deprecated/order_extended_info.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/common/arrays.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/common/arrays.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/deprecated/order/order_heading/deprecated/order_subtitle.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/deprecated/order/order_heading/deprecated/order_subtitle.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/deprecated/order/order_heading/deprecated/display_date_widget.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/deprecated/order/order_heading/deprecated/display_date_widget.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/deprecated/order_line_page/deprecated/order_line_amount_tab.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/deprecated/order_line_page/deprecated/order_line_amount_tab.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/deprecated/order/order_heading/deprecated/order_heading.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/deprecated/order/order_heading/deprecated/order_heading.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/deprecated/orders/deprecated/order_list.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/deprecated/orders/deprecated/order_list.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/deprecated/order_line_page/deprecated/order_line_page.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/deprecated/order_line_page/deprecated/order_line_page.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/api/dynamic_data_types/order_line_appointment.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/api/dynamic_data_types/order_line_appointment.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/functions/parsers.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/functions/parsers.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/functions/selectors.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/functions/selectors.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/functions/extractors.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/functions/extractors.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/firebase_options.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/firebase_options.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/deprecated/order_line_page/deprecated/order_line_time_registration_tab.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/deprecated/order_line_page/deprecated/order_line_time_registration_tab.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/generated_plugin_registrant.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/generated_plugin_registrant.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/functions/jotforms.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/functions/jotforms.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/deprecated/order_line_page/deprecated/order_line_select_car_tab.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/deprecated/order_line_page/deprecated/order_line_select_car_tab.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/functions/linkify.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/functions/linkify.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/functions/loaders.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/functions/loaders.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/functions/processors.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/functions/processors.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/main.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/main.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/api/interface/mwork_api.interface.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/api/interface/mwork_api.interface.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/api/interface/mwork_api_5016.interface.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/api/interface/mwork_api_5016.interface.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/auth/auth_manager.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/auth/auth_manager.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/activity_appointments_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/activity_appointments_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/activity_response_types_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/activity_response_types_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/database/connection/connection.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/database/connection/connection.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/database/connection/unsupported.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/database/connection/unsupported.dart:Running JsonLiteralGenerator - 2 of 2
[SEVERE] json_serializable on lib/services/drift/database/m_work_database.dart:

This builder requires Dart inputs without syntax errors.
However, package:mwork/services/drift/database/m_work_database.dart (or an existing part) contains the following errors.
m_work_database.dart:37:1: Expected a method, getter, setter or operator declaration.
m_work_database.dart:38:3: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
m_work_database.dart:38:3: Expected to find ';'.
And 11 more...

Try fixing the errors and re-running the build.

package:build_resolvers/src/resolver.dart 253:9  AnalyzerResolver.libraryFor
package:source_gen/src/builder.dart 97:17        _Builder.build

[FINE] json_serializable on lib/services/drift/database/connection/web.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/database/connection/web.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/database/connection/native.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/database/connection/native.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/auth/auth_manager_interface.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/auth/auth_manager_interface.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/auth/auth_manager_native.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/auth/auth_manager_native.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/auth/auth_manager_stub.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/auth/auth_manager_stub.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/auth/auth_manager_web.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/auth/auth_manager_web.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/file_io_firms_actors_notes_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/file_io_firms_actors_notes_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/file_io_firms_orders_notes_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/file_io_firms_orders_notes_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/file_io_firms_orders_order_line_notes_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/file_io_firms_orders_order_line_notes_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/full_activity_appointments_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/full_activity_appointments_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/map_locations_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/map_locations_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/orders_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/orders_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_actors_contact_persons_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_actors_contact_persons_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_actors_delivery_addresses_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_actors_delivery_addresses_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_actors_employees_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_actors_employees_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_offices_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_offices_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_orders_activities_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_orders_activities_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_customers_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_customers_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_products_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_products_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_sections_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_sections_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_texts_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_texts_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_units_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firms_units_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firm_countries_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_firm_countries_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_lines_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_lines_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_line_notes_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_line_notes_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_notes_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_notes_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/order_text_types_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/order_text_types_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/post_order_lines_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/post_order_lines_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/post_order_notes_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/post_order_notes_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/report_form_connections_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/report_form_connections_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/report_form_fields_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/report_form_fields_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/user_multi_selections_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/user_multi_selections_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/drift/tables/user_selections_table.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/drift/tables/user_selections_table.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/utils/order_status_color_mapping.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/utils/order_status_color_mapping.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/utils/utils.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/utils/utils.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/utils/widgets/flex_icon_field.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/utils/widgets/flex_icon_field.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/utils/widgets/flex_icon_clock_field.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/utils/widgets/flex_icon_clock_field.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/utils/widgets/icon_edit_field.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/utils/widgets/icon_edit_field.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/fab/action_button.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/fab/action_button.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/utils/widgets/flex_icon_field_column.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/utils/widgets/flex_icon_field_column.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/utils/widgets/icon_field.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/utils/widgets/icon_field.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/forms/state_text_for_field.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/forms/state_text_for_field.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/fab/expandable_fab.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/fab/expandable_fab.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/forms/create_order_form.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/forms/create_order_form.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/camera/display_picture_screen.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/camera/display_picture_screen.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/message/message.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/message/message.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/m_work/m_work.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/m_work/m_work.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/create_new_order/deprecated/create_order.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/create_new_order/deprecated/create_order.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/camera/take_picture_screen.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/camera/take_picture_screen.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/create_new_order/create_new_order.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/create_new_order/create_new_order.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/create_new_order_line/create_new_order_line.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/create_new_order_line/create_new_order_line.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/drawers/onboarding_drawer.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/drawers/onboarding_drawer.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/drawers/test_drawer.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/drawers/test_drawer.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/drawers/test_drawer_no_map.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/drawers/test_drawer_no_map.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/deprecated/home_list.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/deprecated/home_list.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/deprecated/home_list_header.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/deprecated/home_list_header.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/deprecated/home_main_belonging_tabs.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/deprecated/home_main_belonging_tabs.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/deprecated/home_main_category_tabs.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/deprecated/home_main_category_tabs.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/deprecated/home_root.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/deprecated/home_root.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/home_list_2.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/home_list_2.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/home_page.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/home_page.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/main_list.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/main_list.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/narrow_page.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/narrow_page.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/orders_card/orders_card.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/orders_card/orders_card.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/filter_box/filter_box_calendar.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/filter_box/filter_box_calendar.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/deprecated/home_list_chip_menu.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/deprecated/home_list_chip_menu.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/filter_box/filter_box_categories.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/filter_box/filter_box_categories.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/filter_box/filter_box_occurrence.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/filter_box/filter_box_occurrence.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/filter_box/filter_box_car.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/filter_box/filter_box_car.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/filter_box/filter_box_office.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/filter_box/filter_box_office.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/home_list_sort_order_menu.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/home_list_sort_order_menu.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/filter_box/filter_box_operator.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/filter_box/filter_box_operator.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/home_list_filter_menu.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/home_list_filter_menu.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/sort_box/sort_box_direction.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/sort_box/sort_box_direction.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_line_card/order_line_card.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_line_card/order_line_card.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/sort_box/sort_box_order_by.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/order_filter/sort_box/sort_box_order_by.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/home/wide_page.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/home/wide_page.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/inspector_page/inspector_page.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/inspector_page/inspector_page.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/map/tile_provider.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/map/tile_provider.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/map/screen_map.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/map/screen_map.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/login/login_page.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/login/login_page.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/map/map_only_page.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/map/map_only_page.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_2.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_2.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_car_selector.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_car_selector.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_country_selector.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_country_selector.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_firm_selector.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_firm_selector.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_intro_selector.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_intro_selector.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_office_selector.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_office_selector.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_selector.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_selector.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_summarize_selector.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_summarize_selector.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_user_selector.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/on_boarding_2/on_boarding_user_selector.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/orderlines_list_3.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/orderlines_list_3.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/orderline_extension.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/orderline_extension.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/order_details_page_3.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/order_details_page_3.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/order_map.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/order_map.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/order_info.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/order_info.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/order_line_info.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/order_line_info.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/order_line_notes.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/order_line_notes.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/order_more.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/order_more.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/order_notes.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/deprecated/order_notes.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/order_details_narrow_portrait_page_4.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/order_details_narrow_portrait_page_4.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/order_details_page_tabs/order_map_tab.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/order_details_page_tabs/order_map_tab.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/order_details_page_tabs/order_info_tab.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/order_details_page_tabs/order_info_tab.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/order_details_page_tabs/order_lines_tab.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/order_details_page_tabs/order_lines_tab.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/order_details_page_tabs/order_notes_tab.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_details_page/order_details_page_tabs/order_notes_tab.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_page.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_page.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_item/order_line_details_register_amount_card.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_item/order_line_details_register_amount_card.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_item/order_line_details_register_landfill_amount_card.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_item/order_line_details_register_landfill_amount_card.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_item/order_line_details_register_landfill_danger_amount_card.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_item/order_line_details_register_landfill_danger_amount_card.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_item/order_line_details_register_prefilled_form_card.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_item/order_line_details_register_prefilled_form_card.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_item/order_line_details_register_time_card.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_item/order_line_details_register_time_card.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_tab/deprecated/order_line_details_register_time_tab.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_tab/deprecated/order_line_details_register_time_tab.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_tab/deprecated/order_line_details_register_amount_tab.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_tab/deprecated/order_line_details_register_amount_tab.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_tab/order_line_details_check_tab.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_tab/order_line_details_check_tab.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_tab/order_line_details_register_activites_2_tab.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_tab/order_line_details_register_activites_2_tab.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_tab/order_line_details_register_activities_tab.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_tab/order_line_details_register_activities_tab.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_tab/order_line_details_register_message_tab.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_tab/order_line_details_register_message_tab.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/settings/setting_keys.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/settings/setting_keys.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/timeline/timeline_large_landscape_page.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/timeline/timeline_large_landscape_page.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_tab/order_line_details_register_product_tab.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/order_line_details_page/order_line_details_register_tab/order_line_details_register_product_tab.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/settings/preferences.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/settings/preferences.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/timeline/timeline_large_portrait_page.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/timeline/timeline_large_portrait_page.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/timeline/timeline_small_landscape_page.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/timeline/timeline_small_landscape_page.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/timeline/timeline_page.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/timeline/timeline_page.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/timeline/timeline_small_portrait_page.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/timeline/timeline_small_portrait_page.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/widgets/screens/timeline/timeline_tabs/timeline_tab_current_day.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/widgets/screens/timeline/timeline_tabs/timeline_tab_current_day.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/api/generated/client_mapping.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/api/generated/client_mapping.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/api/generated/mwork_api.enums.swagger.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/api/generated/mwork_api.enums.swagger.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/api/generated/mwork_api.swagger.dart:Running JsonSerializableGenerator - 1 of 2
[WARNING] json_serializable on lib/services/api/generated/mwork_api.swagger.dart:
Could not read the "pubspec.yaml` file associated with this package. Usage of package:json_annotation could not be verified.
[FINE] json_serializable on lib/services/api/generated/client_index.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/api/generated/client_index.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/api/generated/mwork_api.swagger.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable on lib/services/api/generated/mwork_api_5016.swagger.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable on lib/services/api/generated/mwork_api_5016.swagger.dart:Running JsonLiteralGenerator - 2 of 2
[INFO] Heartbeat:48.1s elapsed, 835/835 actions completed.
[INFO] Build:Running build completed, took 48.4s

[INFO] Build:Caching finalized dependency graph...
[INFO] Build:Caching finalized dependency graph completed, took 268ms

[SEVERE] Build:
Failed after 48.7s
[+86191 ms] "flutter run" took 86 495ms.
[  +10 ms] pub finished with exit code 1
[   +2 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      _DefaultPub.interactively (package:flutter_tools/src/dart/pub.dart:586:7)
           <asynchronous suspension>
           #2      PackagesForwardCommand.runCommand (package:flutter_tools/src/commands/packages.dart:250:5)
           <asynchronous suspension>
           #3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1257:27)
           <asynchronous suspension>
           #4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #5      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #6      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:283:9)
           <asynchronous suspension>
           #7      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #8      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #9      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)
           <asynchronous suspension>
           #10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #11     main (package:flutter_tools/executable.dart:91:3)
           <asynchronous suspension>

[ +128 ms] ensureAnalyticsSent: 122ms
[   +1 ms] Running 0 shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1
simolus3 commented 1 year ago

Thanks for the details. As you can see in the build logs, all builders are tripping over that file (json serializable and chopper crash on the same file too).

This is actually a bug in the Dart parser used by the analyzer, and not a drift issue. I've opened https://github.com/dart-lang/sdk/issues/50975 on the Dart SDK to hopefully resolve this.

Essentially, you can work around this problem by not having whitespace between @DriftDatabase and the opening parenthesis. So don't write @DriftDatabase\n(, just write @DriftDatabase( (or use dart format). This might seem weird, but there's not much drift could do about that. We need the analyzer to be able to analyze your database and its tables. And since the analyzer now refuses to properly parse your database file, drift can't work with that either. This might be fixed in a future analyzer release. Until then, you need to format your sources to not have whitespace after the name of an annotation.

RoarGronmo commented 1 year ago

Thanx for clarifying!!

Will do the changes in the code !!

tir. 10. jan. 2023, 17:56 skrev Simon Binder @.***>:

Closed #2261 https://github.com/simolus3/drift/issues/2261 as completed.

— Reply to this email directly, view it on GitHub https://github.com/simolus3/drift/issues/2261#event-8194036624, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVSTEG6IXJHBTY4ULFQW4DWRWICZANCNFSM6AAAAAATWSTRUU . You are receiving this because you authored the thread.Message ID: @.***>

RoarGronmo commented 1 year ago

Confirming that the issue is solved