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

Migration tool exception SDk 2.19.2 #51419

Closed
Mmisiek opened this issue Feb 14, 2023 · 1 comment
Closed

Migration tool exception SDk 2.19.2 #51419

Mmisiek opened this issue Feb 14, 2023 · 1 comment

Comments

@Mmisiek
Copy link

Mmisiek commented Feb 14, 2023

Exception details:

type 'Null' is not a subtype of type 'GenericFunctionTypeElement' in type cast at offset 337 in /Users/michal/Development/PEST_SCOPE/pest_scope/lib/classes/field_data_cache.dart (Id)

#0 EdgeBuilder.visitNamedType (package:nnbd_migration/src/edge_builder.dart:1488:36)
#1 NamedTypeImpl.accept (package:analyzer/src/dart/ast/ast.dart:9003:50)
#2 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2375:24)
#3 EdgeBuilder.visitVariableDeclarationList (package:nnbd_migration/src/edge_builder.dart:2019:5)
#4 VariableDeclarationListImpl.accept (package:analyzer/src/dart/ast/ast.dart:13543:15)
#5 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2375:24)
#6 EdgeBuilder.visitNode (package:nnbd_migration/src/edge_builder.dart:1567:9)
#7 GeneralizingAstVisitor.visitAnnotatedNode (package:analyzer/dart/ast/visitor.dart:135:48)
#8 GeneralizingAstVisitor.visitDeclaration (package:analyzer/dart/ast/visitor.dart:257:44)
#9 GeneralizingAstVisitor.visitClassMember (package:analyzer/dart/ast/visitor.dart:200:44)
#10 GeneralizingAstVisitor.visitFieldDeclaration (package:analyzer/dart/ast/visitor.dart:318:54)
#11 FieldDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:4778:50)
#12 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2375:24)
#13 EdgeBuilder._dispatchList (package:nnbd_migration/src/edge_builder.dart:2393:7)
#14 EdgeBuilder.visitClassOrMixinOrExtensionDeclaration (package:nnbd_migration/src/edge_builder.dart:717:7)
#15 EdgeBuilder.visitClassDeclaration (package:nnbd_migration/src/edge_builder.dart:676:5)
#16 ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:2000:50)
#17 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2375:24)
#18 EdgeBuilder.visitNode (package:nnbd_migration/src/edge_builder.dart:1567:9)
#19 GeneralizingAstVisitor.visitCompilationUnit (package:analyzer/dart/ast/visitor.dart:216:52)
#20 CompletenessTracker.visitCompilationUnit. (package:nnbd_migration/src/utilities/completeness_tracker.dart:52:24)
#21 PermissiveModeVisitor.reportExceptionsIfPermissive (package:nnbd_migration/src/utilities/permissive_mode.dart:26:24)
#22 CompletenessTracker.visitCompilationUnit (package:nnbd_migration/src/utilities/completeness_tracker.dart:43:5)
#23 CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2501:50)
#24 NullabilityMigrationImpl.processInput (package:nnbd_migration/src/nullability_migration_impl.dart:224:12)
#25 NonNullableFix.processUnit (package:nnbd_migration/src/front_end/non_nullable_fix.dart:162:16)
#26 _FixCodeProcessor.runLaterPhases. (package:nnbd_migration/migration_cli.dart:1088:19)
#27 _FixCodeProcessor.processResources (package:nnbd_migration/migration_cli.dart:1020:26)

#28 _FixCodeProcessor.runLaterPhases (package:nnbd_migration/migration_cli.dart:1086:5)

#29 MigrationCliRunner.run (package:nnbd_migration/migration_cli.dart:695:24)

#30 MigrateCommand.run (package:dartdev/src/commands/migrate.dart:37:7)

#31 CommandRunner.runCommand (package:args/command_runner.dart:212:13)

#32 DartdevRunner.runCommand (package:dartdev/dartdev.dart:241:18)

#33 runDartdev (package:dartdev/dartdev.dart:65:18)

#34 main (file:///opt/s/w/ir/x/w/sdk/pkg/dartdev/bin/dartdev.dart:11:3)

@mraleph
Copy link
Member

mraleph commented Feb 15, 2023

Duplicate of #49690

@mraleph mraleph marked this as a duplicate of #49690 Feb 15, 2023
@mraleph mraleph closed this as completed Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants