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.24k stars 1.57k forks source link

Aborting migration due to an exception. This most likely is due to a bug in the migration tool. Please consider filing a bug report at: #53538

Closed Raj-impetrosys closed 11 months ago

Raj-impetrosys commented 1 year ago

rajkumar@RAJKUMARs-MacBook-Pro Sound_Chat_Radio % dart migrate
Migrating /Users/rajkumar/Desktop/Raj/Flutter Projects/Sound_Chat_Radio

See https://dart.dev/go/null-safety-migration for a migration guide.

Analyzing project... [------------------------------------------------------------------------------------------]No analysis issues found.

Generating migration suggestions... [---------/ ]Aborting migration due to an exception. This most likely is due to a bug in the migration tool. Please consider filing a bug report at:

https://github.com/dart-lang/sdk/issues/new Please include the SDK version (2.19.6) in your bug report.

To attempt to perform migration anyway, you may re-run with --ignore-exceptions.

Exception details:

type 'MixinElementImpl' is not a subtype of type 'ClassElement' in type cast at offset 4698 in /Users/rajkumar/Desktop/Raj/Flutter Projects/Sound_Chat_Radio/lib/screens/tv/tv_tab_controller.dart (@override void dispose() {focusNode0.dispose(); focusNode1.dispose(); focusNode2.dispose(); focusNode3.dispose(); focusNode5.dispose(); super.dispose();})

0 EdgeBuilder._handleExecutableOverriddenDeclaration (package:nnbd_migration/src/edge_builder.dart:2774:62)

1 EdgeBuilder._handleExecutableDeclaration (package:nnbd_migration/src/edge_builder.dart:2694:13)

2 EdgeBuilder.visitMethodDeclaration (package:nnbd_migration/src/edge_builder.dart:1393:5)

3 MethodDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:8533:50)

4 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2375:24)

5 EdgeBuilder._dispatchList (package:nnbd_migration/src/edge_builder.dart:2393:7)

6 EdgeBuilder.visitClassOrMixinOrExtensionDeclaration (package:nnbd_migration/src/edge_builder.dart:717:7)

7 EdgeBuilder.visitClassDeclaration (package:nnbd_migration/src/edge_builder.dart:676:5)

8 ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:2000:50)

9 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2375:24)

10 EdgeBuilder.visitNode (package:nnbd_migration/src/edge_builder.dart:1567:9)

11 GeneralizingAstVisitor.visitCompilationUnit (package:analyzer/dart/ast/visitor.dart:216:52)

12 CompletenessTracker.visitCompilationUnit. (package:nnbd_migration/src/utilities/completeness_tracker.dart:52:24)

13 PermissiveModeVisitor.reportExceptionsIfPermissive (package:nnbd_migration/src/utilities/permissive_mode.dart:26:24)

14 CompletenessTracker.visitCompilationUnit (package:nnbd_migration/src/utilities/completeness_tracker.dart:43:5)

15 CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2501:50)

16 NullabilityMigrationImpl.processInput (package:nnbd_migration/src/nullability_migration_impl.dart:224:12)

17 NonNullableFix.processUnit (package:nnbd_migration/src/front_end/non_nullable_fix.dart:162:16)

18 _FixCodeProcessor.runLaterPhases. (package:nnbd_migration/migration_cli.dart:1088:19)

19 _FixCodeProcessor.processResources (package:nnbd_migration/migration_cli.dart:1020:26)

#20 _FixCodeProcessor.runLaterPhases (package:nnbd_migration/migration_cli.dart:1086:5) #21 MigrationCliRunner.run (package:nnbd_migration/migration_cli.dart:695:24) #22 MigrateCommand.run (package:dartdev/src/commands/migrate.dart:37:7) #23 CommandRunner.runCommand (package:args/command_runner.dart:212:13) #24 DartdevRunner.runCommand (package:dartdev/dartdev.dart:241:18) #25 runDartdev (package:dartdev/dartdev.dart:65:18) #26 main (file:///opt/s/w/ir/x/w/sdk/pkg/dartdev/bin/dartdev.dart:11:3)
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.