-
Notifications
You must be signed in to change notification settings - Fork 258
This problem appears in a loop and does not create anything from the files #229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Did you upgrade to the latest json_serializable? |
h use upgrade to the latest json_serializable
retrofit: ^1.3.4
logger: ^0.8.3
dio: ^3.0.9
pretty_dio_logger: ^1.1.1
json_annotation : ^3.0.1
dev_dependencies:
flutter_test:
sdk: flutter
retrofit_generator: ^1.3.7+5
build_runner: ^1.2.2+1
json_serializable: ^3.4.0
NFO] Initializing inputs
[INFO] Building new asset graph...
[INFO] Building new asset graph completed, took 862ms
[INFO] Checking for unexpected pre-existing outputs....
[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms
[INFO] Running build...
[INFO] Generating SDK summary...
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[INFO] 1.7s elapsed, 1/17 actions completed.
[INFO] 2.8s elapsed, 1/17 actions completed.
Terminate batch job (Y/N)? y
E:\project\wafeer\wafeer>C:\Users\pc\flutter\bin\flutter.bat pub run
build_runner clear
Could not find a command named "clear".
Usage: build_runner <command> [arguments]
Global options:
-h, --help Print this usage information.
Available commands:
build Performs a single build on the specified targets and then exits.
clean Cleans up output from previous builds. Does not clean up --output
directories.
run Performs a single build, and executes a Dart script with the given
arguments.
serve Runs a development server that serves the specified targets and
runs
builds based on file system updates.
test Performs a single build of the test directory only and then runs
tests
using the compiled assets.
watch Builds the specified targets, watching the file system for
updates and
rebuilding as appropriate.
Run "build_runner help <command>" for more information about a command.
pub finished with exit code 64
E:\project\wafeer\wafeer>C:\Users\pc\flutter\bin\flutter.bat pub run
build_runner --output
Could not find an option named "output".
Usage: build_runner <command> [arguments]
Global options:
-h, --help Print this usage information.
Available commands:
build Performs a single build on the specified targets and then exits.
clean Cleans up output from previous builds. Does not clean up --output
directories.
run Performs a single build, and executes a Dart script with the given
arguments.
serve Runs a development server that serves the specified targets and
runs
builds based on file system updates.
test Performs a single build of the test directory only and then runs
tests
using the compiled assets.
watch Builds the specified targets, watching the file system for
updates and
rebuilding as appropriate.
Run "build_runner help <command>" for more information about a command.
pub finished with exit code 64
E:\project\wafeer\wafeer>C:\Users\pc\flutter\bin\flutter.bat pub run
build_runner clean
[WARNING] Deleting cache and generated source files.
This shouldn't be necessary for most applications, unless you have made
intentional edits to generated files (i.e. for testing). Consider filing a
bug at https://github.com/dart-lang/build/issues/new if you are
using this to work around an apparent (and reproducible) bug.
[INFO] Cleaning up source outputs...
[WARNING] No asset graph found. Skipping cleanup of generated files in
source directories.
[INFO] Cleaning up source outputs completed, took 1ms
[INFO] Cleaning up cache directory...
[INFO] Cleaning up cache directory completed, took 8ms
E:\project\wafeer\wafeer>C:\Users\pc\flutter\bin\flutter.bat pub run
build_runner build
[INFO] Generating build script...
[INFO] Generating build script completed, took 394ms
[INFO] Creating build script snapshot......
[INFO] Creating build script snapshot... completed, took 15.7s
[INFO] Initializing inputs
[INFO] Building new asset graph...
[INFO] Building new asset graph completed, took 866ms
[INFO] Checking for unexpected pre-existing outputs....
[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms
[INFO] Running build...
[INFO] Generating SDK summary...
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[SEVERE] json_serializable:json_serializable on
lib/data/api/api_client.dart:
Bad state: Unexpected diagnostics:
C:\Users\pc\flutter\bin\cache\dart-sdk\lib\core\uri.dart:3259:39 - Expected
an identifier.
[INFO] 1.7s elapsed, 1/17 actions completed.
[INFO] 2.7s elapsed, 1/17 actions completed.
[INFO] 3.8s elapsed, 1/17 actions completed.
[INFO] 4.8s elapsed, 1/17 actions completed.
[INFO] 5.9s elapsed, 1/17 actions completed.
[INFO] 7.0s elapsed, 1/17 actions completed.
[INFO] 8.1s elapsed, 1/17 actions completed.
[INFO] 9.1s elapsed, 1/17 actions completed.
[INFO] 10.1s elapsed, 1/17 actions completed.
[INFO] 11.2s elapsed, 1/17 actions completed.
[INFO] 12.2s elapsed, 1/17 actions completed.
[INFO] 13.3s elapsed, 1/17 actions completed.
[INFO] 14.3s elapsed, 1/17 actions completed.
[INFO] 15.4s elapsed, 1/17 actions completed.
[WARNING] No actions completed for 15.0s, waiting on:
- json_serializable:json_serializable on
lib/data/model/categories/categories.dart
- json_serializable:json_serializable on
lib/data/model/categories/data_categories.dart
- json_serializable:json_serializable on
lib/data/model/categories/data_categories_pagination.dart
- json_serializable:json_serializable on
lib/data/model/city_model/city.dart
- json_serializable:json_serializable on
lib/data/model/city_model/data_city.dart
.. and 11 more
[INFO] 16.7s elapsed, 1/17 actions completed.
[INFO] 17.8s elapsed, 1/17 actions completed.
[INFO] 18.9s elapsed, 1/17 actions completed.
[INFO] 19.9s elapsed, 1/17 actions completed.
[INFO] 20.9s elapsed, 1/17 actions completed.
[INFO] 22.0s elapsed, 1/17 actions completed.
[INFO] 23.0s elapsed, 1/17 actions completed.
[INFO] 24.1s elapsed, 1/17 actions completed.
[INFO] 25.2s elapsed, 1/17 actions completed.
[INFO] 26.2s elapsed, 1/17 actions completed.
[INFO] 27.3s elapsed, 1/17 actions completed.
[INFO] 28.3s elapsed, 1/17 actions completed.
[INFO] 29.4s elapsed, 1/17 actions completed.
[INFO] 30.4s elapsed, 1/17 actions completed.
[WARNING] No actions completed for 15.1s, waiting on:
- json_serializable:json_serializable on
lib/data/model/categories/categories.dart
- json_serializable:json_serializable on
lib/data/model/categories/data_categories.dart
- json_serializable:json_serializable on
lib/data/model/categories/data_categories_pagination.dart
- json_serializable:json_serializable on
lib/data/model/city_model/city.dart
- json_serializable:json_serializable on
lib/data/model/city_model/data_city.dart
.. and 11 more
[INFO] 31.8s elapsed, 1/17 actions completed.
^A[INFO] 32.9s elapsed, 1/17 actions completed.
^A[INFO] 33.9s elapsed, 1/17 actions completed.
[INFO] 35.0s elapsed, 1/17 actions completed.
[INFO] 36.1s elapsed, 1/17 actions completed.
[INFO] 37.2s elapsed, 1/17 actions completed.
[INFO] 38.3s elapsed, 1/17 actions completed.
[INFO] 39.4s elapsed, 1/17 actions completed.
[INFO] 40.5s elapsed, 1/17 actions completed.
[INFO] 41.6s elapsed, 1/17 actions completed.
[INFO] 42.6s elapsed, 1/17 actions completed.
[INFO] 43.7s elapsed, 1/17 actions completed.
[INFO] 44.8s elapsed, 1/17 actions completed.
…On Thu, 13 Aug 2020 at 02:58, Trevor Wang ***@***.***> wrote:
Did you upgrade to the latest json_serializable?
It seems that it was caused by it
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#229 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMONK4ID3BNDV5I2YNKPHPTSAM3EJANCNFSM4P5OG6OQ>
.
|
I have the same problem `.
[INFO] 1m 49s elapsed, 1/5 actions completed. |
show me the result of |
Doctor summary (to see all details, run flutter doctor -v): [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) ! Doctor found issues in 2 categories. |
due to google/json_serializable.dart#679 dart-lang/build#2763 It's not caused by retrofit.dart itself |
Use version flutter 17
…On Fri, 14 Aug 2020, 7:39 am Mohammad Baqer Fakuri, < ***@***.***> wrote:
show me the result of flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.20.2, on Linux, locale en_US.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK version
29.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor
--android-licenses
[✓] Android Studio (version 4.0)
[!] Android Studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
✗ android-studio-dir =
/media/mf/HardDisk/Developer/Develop_Applications_AND_SKDS/Android_Studio_Linux/bin/studio.sh
✗ Android Studio not found at
/media/mf/HardDisk/Developer/Develop_Applications_AND_SKDS/Android_Studio_Linux/bin/studio.sh
[✓] VS Code (version 1.47.3)
[!] Connected device
! No devices available
! Doctor found issues in 3 categories.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#229 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMONK4MK5MT7P36IJ3EADCTSATEZFANCNFSM4P5OG6OQ>
.
|
I do not know, but when I put the recitations in the yaml file as follows, the problem is solved!
|
Lifesaver for me... I put the reflectable dependencies and it works. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Uh oh!
There was an error while loading. Please reload this page.
The text was updated successfully, but these errors were encountered: