dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.23k stars 1.57k forks source link

Customer-reported issue with NNBD migration tool: Failed to rerun migration #43110

Closed Hixie closed 11 months ago

Hixie commented 4 years ago

Failed to rerun migration

Error: Instance of 'MigrationExit'

Please fill in the following:

Name of package being migrated (if public): flutter/rendering What I was doing when this issue occurred: in custom_layout.dart I replaced the _idToChild declaration and the next line with:

  /*late*/ final Map<Object/*!*/, RenderBox>/*!*/ _idToChild;
  /*late*/ final Set<RenderBox/*!*/>/*!*/ _debugChildrenNeedingLayout;

Is it possible to work around this issue: yes Has this issue happened before, and if so, how often: first time Dart SDK version: 2.10.0-42.0.dev Additional details:

Thanks for filing!

Stacktrace: auto populated by migration preview tool.

#0      MigrationCliRunner._exceptionReported (package:nnbd_migration/migration_cli.dart:842:7)
#1      NullabilityMigrationAdapter.reportException (package:nnbd_migration/src/front_end/non_nullable_fix.dart:451:29)
#2      PermissiveModeVisitor.reportExceptionsIfPermissive (package:nnbd_migration/src/utilities/permissive_mode.dart:28:18)
#3      CompletenessTracker.visitCompilationUnit (package:nnbd_migration/src/utilities/completeness_tracker.dart:43:5)
#4      CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2119:49)
#5      NullabilityMigrationImpl.processInput (package:nnbd_migration/src/nullability_migration_impl.dart:190:12)
#6      NonNullableFix.processUnit (package:nnbd_migration/src/front_end/non_nullable_fix.dart:159:15)
#7      _FixCodeProcessor.runLaterPhases.<anonymous closure> (package:nnbd_migration/migration_cli.dart:1019:19)
#8      _FixCodeProcessor.processResources (package:nnbd_migration/migration_cli.dart:963:30)
<asynchronous suspension>
#9      _FixCodeProcessor.runLaterPhases (package:nnbd_migration/migration_cli.dart:1017:11)
#10     MigrationCliRunner._rerunFunction (package:nnbd_migration/migration_cli.dart:857:29)
<asynchronous suspension>
#11     NonNullableFix.rerun (package:nnbd_migration/src/front_end/non_nullable_fix.dart:164:24)
#12     PreviewSite.rerunMigration (package:nnbd_migration/src/preview/preview_site.dart:357:41)
#13     PreviewSite.handlePostRequest (package:nnbd_migration/src/preview/preview_site.dart:221:15)
#14     HttpPreviewServer._handlePostRequest (package:nnbd_migration/src/preview/http_preview_server.dart:107:23)
#15     HttpPreviewServer._handleServer.<anonymous closure> (package:nnbd_migration/src/preview/http_preview_server.dart:117:15)
#16     _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)
#17     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#18     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
#19     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:808:19)
#20     _StreamController._add (dart:async/stream_controller.dart:682:7)
#21     _StreamController.add (dart:async/stream_controller.dart:624:5)
#22     _HttpServer._handleRequest (dart:_http/http_impl.dart:2949:19)
#23     new _HttpConnection.<anonymous closure> (dart:_http/http_impl.dart:2704:19)
#24     _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)
#25     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#26     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
#27     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:808:19)
#28     _StreamController._add (dart:async/stream_controller.dart:682:7)
#29     _StreamController.add (dart:async/stream_controller.dart:624:5)
#30     _HttpParser._headersEnd (dart:_http/http_parser.dart:393:19)
#31     _HttpParser._doParse (dart:_http/http_parser.dart:739:15)
#32     _HttpParser._parse (dart:_http/http_parser.dart:323:7)
#33     _HttpParser._onData (dart:_http/http_parser.dart:852:5)
#34     _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)
#35     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#36     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
#37     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:808:19)
#38     _StreamController._add (dart:async/stream_controller.dart:682:7)
#39     _StreamController.add (dart:async/stream_controller.dart:624:5)
#40     _Socket._onData (dart:io-patch/socket_patch.dart:2044:41)
#41     _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)
#42     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#43     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
#44     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:808:19)
#45     _StreamController._add (dart:async/stream_controller.dart:682:7)
#46     _StreamController.add (dart:async/stream_controller.dart:624:5)
#47     new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1580:33)
#48     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1076:14)
#49     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#50     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#51     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#52     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
stereotype441 commented 11 months ago

As of 1c7fe7196dd7a542f7f91cd6ea2ac81e1a13146c, the null safety migration tool has been removed from active development and retired. No further work on the tool is planned.

If you still need help, or you believe this issue has been closed in error, please feel free to reopen.