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

Exception from migration tool: Unrelated types: class (redacted)<T> and abstract class FutureOr<T> #45663

Closed
stereotype441 opened this issue Apr 12, 2021 · 1 comment
Labels
area-migration (deprecated) Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool). crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. P2 A bug or feature request we're likely to work on

Comments

@stereotype441
Copy link
Member

Filed internally as https://buganizer.corp.google.com/issues/185131819

Here is the stacktrace, with redactions to avoid exposing internal IP:

Bad state: Unrelated types: class (redacted)<T> and abstract class FutureOr<T> at (redacted)

#0 DecoratedClassHierarchy.getDecoratedSupertype (package:nnbd_migration/src/decorated_class_hierarchy.dart:67:10)
#1 DecoratedClassHierarchy.asInstanceOf (package:nnbd_migration/src/decorated_class_hierarchy.dart:38:18)
#2 EdgeBuilder._decorateUpperOrLowerBound (package:nnbd_migration/src/edge_builder.dart:2105:18)
#3 EdgeBuilder.visitBinaryExpression (package:nnbd_migration/src/edge_builder.dart:495:26)
#4 BinaryExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:951:50)
#5 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
#6 EdgeBuilder._handleAssignment (package:nnbd_migration/src/edge_builder.dart:2331:20)
#7 EdgeBuilder.visitVariableDeclarationList (package:nnbd_migration/src/edge_builder.dart:1924:11)
#8 VariableDeclarationListImpl.accept (package:analyzer/src/dart/ast/ast.dart:10507:15)
#9 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
#10 EdgeBuilder.visitNode (package:nnbd_migration/src/edge_builder.dart:1340:9)
#11 GeneralizingAstVisitor.visitStatement (package:analyzer/dart/ast/visitor.dart:521:40)
#12 GeneralizingAstVisitor.visitVariableDeclarationStatement (package:analyzer/dart/ast/visitor.dart:593:7)
#13 VariableDeclarationStatementImpl.accept (package:analyzer/src/dart/ast/ast.dart:10556:15)
#14 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
#15 EdgeBuilder.visitNode (package:nnbd_migration/src/edge_builder.dart:1340:9)
#16 GeneralizingAstVisitor.visitStatement (package:analyzer/dart/ast/visitor.dart:521:40)
@stereotype441 stereotype441 added area-migration (deprecated) Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool). P1 A high priority bug; for example, a single project is unusable or has many test failures labels Apr 12, 2021
@stereotype441 stereotype441 added P2 A bug or feature request we're likely to work on and removed P1 A high priority bug; for example, a single project is unusable or has many test failures labels Aug 4, 2021
@srawlins srawlins added the crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. label Aug 23, 2022
@stereotype441
Copy link
Member Author

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). crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. P2 A bug or feature request we're likely to work on
Projects
None yet
Development

No branches or pull requests

2 participants