Skip to content
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

lib/models没有生成文件 #56

Open
jinlu2010 opened this issue Aug 10, 2022 · 0 comments
Open

lib/models没有生成文件 #56

jinlu2010 opened this issue Aug 10, 2022 · 0 comments

Comments

@jinlu2010
Copy link

执行flutter packages pub run json_model后,lib/models并没有生成文件

PS E:\AndroidStudio\github_client_app> flutter packages pub run json_model
Unhandled exception:
FormatException: Unexpected character (at line 2, character 18)
"enable":true, // 是否启用缓存
^

#0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1405:5)
#1 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:935:48)
#2 _parseJson (dart:convert-patch/convert_patch.dart:40:10)
#3 JsonDecoder.convert (dart:convert/json.dart:506:36)
#4 JsonCodec.decode (dart:convert/json.dart:157:41)
#5 generateModelClass. (file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/json_model-1.0.0/bin/json_model.dart:83:24)
#6 List.forEach (dart:core-patch/growable_array.dart:410:8)
#7 generateModelClass (file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/json_model-1.0.0/bin/json_model.dart:71:12)
#8 main (file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/json_model-1.0.0/bin/json_model.dart:46:14)
#9 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:295:32)
#10 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)
pub finished with exit code 255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant