App does not run in checked mode
artisonian opened this issue · 2 comments
artisonian commented
Running the crashes in checked mode:
Server started on port: 8000
Uncaught Error: type '_LinkedHashMapValueIterable' is not a subtype of type 'List<Object>' of 'function result'.
Stack Trace:
#0 Dirty.values (package:dirty/dirty.dart:53:36)
#1 Comics.index (file:///Users/leroy/repos/git/dart-comics/app.dart:43:14)
#2 main.<anonymous closure>.<anonymous closure> (file:///Users/leroy/repos/git/dart-comics/app.dart:16:28)
#3 _rootRunUnary (dart:async/zone.dart:695)
#4 _RootZone.runUnary (dart:async/zone.dart:834)
#5 _BaseZone.runUnaryGuarded (dart:async/zone.dart:546)
#6 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:333)
#7 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263)
#8 _StreamController&_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:529)
#9 _StreamController._add (dart:async/stream_controller.dart:438)
#10 _StreamController.add (dart:async/stream_controller.dart:395)
#11 _HttpServer._handleRequest (http_impl.dart:2119)
#12 _HttpConnection._HttpConnection.<anonymous closure> (http_impl.dart:1955)
#13 _rootRunUnary (dart:async/zone.dart:695)
#14 _RootZone.runUnary (dart:async/zone.dart:834)
#15 _BaseZone.runUnaryGuarded (dart:async/zone.dart:546)
#16 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:333)
#17 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263)
#18 _StreamController&_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:529)
#19 _StreamController._add (dart:async/stream_controller.dart:438)
#20 _StreamController.add (dart:async/stream_controller.dart:395)
#21 _HttpParser._doParse (http_parser.dart:596)
#22 _HttpParser._parse (http_parser.dart:256)
#23 _onData (http_parser.dart:722)
#24 _rootRunUnary (dart:async/zone.dart:695)
#25 _RootZone.runUnary (dart:async/zone.dart:834)
#26 _BaseZone.runUnaryGuarded (dart:async/zone.dart:546)
#27 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:333)
#28 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263)
#29 _StreamController&_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:529)
#30 _StreamController._add (dart:async/stream_controller.dart:438)
#31 _StreamController.add (dart:async/stream_controller.dart:395)
#32 _onData (dart:io-patch/socket_patch.dart:1355)
#33 _rootRunUnary (dart:async/zone.dart:695)
#34 _RootZone.runUnary (dart:async/zone.dart:834)
#35 _BaseZone.runUnaryGuarded (dart:async/zone.dart:546)
#36 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:333)
#37 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263)
#38 _StreamController&_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:529)
#39 _StreamController._add (dart:async/stream_controller.dart:438)
#40 _StreamController.add (dart:async/stream_controller.dart:395)
#41 _RawSocket._RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:950)
#42 multiplex (dart:io-patch/socket_patch.dart:604)
#43 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:115)
Unhandled exception:
type '_LinkedHashMapValueIterable' is not a subtype of type 'List<Object>' of 'function result'.
#0 _rootHandleUncaughtError.<anonymous closure>.<anonymous closure> (dart:async/zone.dart:677)
#1 _asyncRunCallback (dart:async/schedule_microtask.dart:18)
#2 _asyncRunCallback (dart:async/schedule_microtask.dart:21)
#3 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:119)
eee-c commented
Much thanks for the report. It'll probably be a week or so before I can get to it (pull requests welcome in the meantime!). But thanks, I'll get it fixed!
eee-c commented
Perfect. Thanks for tracking that down. An updated version of dart-dirty is up on pub.dartlang.org. I appreciate it!