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

BUg in dart migration tool, version 2.19.0 #54261

Closed
mboyanna opened this issue Dec 7, 2023 · 2 comments
Closed

BUg in dart migration tool, version 2.19.0 #54261

mboyanna opened this issue Dec 7, 2023 · 2 comments
Labels
area-migration (deprecated) Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool).

Comments

@mboyanna
Copy link

mboyanna commented Dec 7, 2023

Attempted to use the dart migration tool for null safety enforcement.

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.0) 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 1543 in /Users/mboyanna/Documents/fa-ver0.1-test/debate-ai/lib/views/auth/login_view.dart (@OverRide void dispose() {_signInEmailController.dispose(); _signInPasswordController.dispose(); _singInEmailFocusNode.dispose(); _signInPasswordFocusNode.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)

@mboyanna
Copy link
Author

mboyanna commented Dec 7, 2023

$ flutter --version
Flutter 3.7.0 • channel unknown • unknown source
Framework • revision b06b8b2710 (11 months ago) • 2023-01-23 16:55:55 -0800
Engine • revision b24591ed32
Tools • Dart 2.19.0 • DevTools 2.20.1

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

lrhn commented Mar 6, 2024

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.

@lrhn lrhn closed this as not planned Won't fix, can't repro, duplicate, stale Mar 6, 2024
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

2 participants