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

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 opened this issue Sep 15, 2023 · 1 comment
Labels
area-migration (deprecated) Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool).

Comments

@Raj-impetrosys
Copy link

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)

@lrhn lrhn added the area-migration (deprecated) Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool). label Sep 15, 2023
@stereotype441
Copy link
Member

As of 1c7fe71, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-migration (deprecated) Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool).
Projects
None yet
Development

No branches or pull requests

3 participants