Closed disonwei closed 1 month ago
➜ dart run build_runner watch
[INFO] Generating build script completed, took 201ms
[INFO] Setting up file watchers completed, took 5ms
[INFO] Waiting for all file watchers to be ready completed, took 200ms
[INFO] Reading cached asset graph completed, took 247ms
[INFO] Checking for updates since last build completed, took 1.0s
[INFO] Running build completed, took 31ms
[INFO] Caching finalized dependency graph completed, took 128ms
[INFO] Succeeded after 163ms with 0 outputs (0 actions)
[INFO] ------------------------------------------------------------------------
[INFO] Starting Build
[INFO] Updating asset graph completed, took 9ms
[WARNING] drift_dev on lib/app/db/database.dart:
line 36, column 7 of package:min_budget_flutter/app/db/database.dart: Could not read tables from @DriftDatabase annotation!
Please make sure that all table classes exist.
╷
36 │ class AppDatabase extends _$AppDatabase {
│ ^^^^^^^^^^^
╵
[INFO] Running build completed, took 11.7s
[INFO] Caching finalized dependency graph completed, took 139ms
[INFO] Succeeded after 11.9s with 203 outputs (403 actions)
I created a base table with some public fields. Then use other tables to inherit it, but when I do dart run build_runner watch it reports an error.
The generated datebase.g.dart has only the following content: