Closed insinfo closed 11 months ago
This looks like the error occurs inside package:nnbd_migration/src/edge_builder.dart
.
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.
RangeError (index): Invalid value: Valid value range is empty: 0 at offset 5157 in C:\MyDartProjects\appjazz\flutter_advanced_networkimage\lib\src\utils.dart (crc >> 8)
PS C:\MyDartProjects\appjazz\flutter_advanced_networkimage> dart migrate ╔════════════════════════════════════════════════════════════════════════════╗ ║ The Dart tool uses Google Analytics to anonymously report feature usage ║ ║ statistics and to send basic crash reports. This data is used to help ║ ║ improve the Dart platform and tools over time. ║ ║ ║ ║ To disable reporting of anonymous analytics, run: ║ ║ ║ ║ dart --disable-analytics ║ ║ ║ ╚════════════════════════════════════════════════════════════════════════════╝
Migrating C:\MyDartProjects\appjazz\flutter_advanced_networkimage
See https://dart.dev/go/null-safety-migration for a migration guide.
Note: more than one project found; migrating the top-level project.
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.12.4) in your bug report.
To attempt to perform migration anyway, you may re-run with --ignore-exceptions.
Exception details:
RangeError (index): Invalid value: Valid value range is empty: 0 at offset 5157 in C:\MyDartProjects\appjazz\flutter_advanced_networkimage\lib\src\utils.dart (crc >> 8)
0 List.[] (dart:core-patch/growable_array.dart:254:60)
1 EdgeBuilder.visitBinaryExpression (package:nnbd_migration/src/edge_builder.dart:517:61)
2 BinaryExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:967:49)
3 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
4 EdgeBuilder.visitParenthesizedExpression (package:nnbd_migration/src/edge_builder.dart:1358:18)
5 ParenthesizedExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:7964:15)
6 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
7 EdgeBuilder._handleAssignment (package:nnbd_migration/src/edge_builder.dart:2329:20)
8 EdgeBuilder.visitBinaryExpression (package:nnbd_migration/src/edge_builder.dart:516:9)
9 BinaryExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:967:49)
10 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
11 EdgeBuilder._handleAssignment (package:nnbd_migration/src/edge_builder.dart:2329:20)
12 EdgeBuilder.visitAssignmentExpression (package:nnbd_migration/src/edge_builder.dart:409:26)
13 AssignmentExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:715:49)
14 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
15 EdgeBuilder.visitExpressionStatement (package:nnbd_migration/src/edge_builder.dart:801:25)
16 ExpressionStatementImpl.accept (package:analyzer/src/dart/ast/ast.dart:3676:49)
17 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
18 EdgeBuilder.visitNode (package:nnbd_migration/src/edge_builder.dart:1340:9)
19 GeneralizingAstVisitor.visitStatement (package:analyzer/dart/ast/visitor.dart:517:39)
20 GeneralizingAstVisitor.visitBlock (package:analyzer/dart/ast/visitor.dart:165:31)
21 BlockImpl.accept (package:analyzer/src/dart/ast/ast.dart:1083:49)
22 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
23 EdgeBuilder.visitForStatement. (package:nnbd_migration/src/edge_builder.dart:854:55)
24 EdgeBuilder._handleForLoopParts. (package:nnbd_migration/src/edge_builder.dart:2772:18)
25 ScopedSet.doScoped (package:nnbd_migration/src/utilities/scoped_set.dart:44:13)
26 EdgeBuilder._handleForLoopParts (package:nnbd_migration/src/edge_builder.dart:2771:26)
27 EdgeBuilder.visitForStatement (package:nnbd_migration/src/edge_builder.dart:853:5)
28 ForStatementImpl.accept (package:analyzer/src/dart/ast/ast.dart:4707:49)
29 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
30 EdgeBuilder.visitNode (package:nnbd_migration/src/edge_builder.dart:1340:9)
31 GeneralizingAstVisitor.visitStatement (package:analyzer/dart/ast/visitor.dart:517:39)
32 GeneralizingAstVisitor.visitBlock (package:analyzer/dart/ast/visitor.dart:165:31)
33 BlockImpl.accept (package:analyzer/src/dart/ast/ast.dart:1083:49)
34 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
35 EdgeBuilder.visitNode (package:nnbd_migration/src/edge_builder.dart:1340:9)
36 GeneralizingAstVisitor.visitFunctionBody (package:analyzer/dart/ast/visitor.dart:324:45)
37 GeneralizingAstVisitor.visitBlockFunctionBody (package:analyzer/dart/ast/visitor.dart:168:55)
38 BlockFunctionBodyImpl.accept (package:analyzer/src/dart/ast/ast.dart:1038:49)
39 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
40 EdgeBuilder.visitFunctionExpression. (package:nnbd_migration/src/edge_builder.dart:937:25)
41 ScopedSet.doScoped (package:nnbd_migration/src/utilities/scoped_set.dart:44:13)
42 EdgeBuilder.visitFunctionExpression (package:nnbd_migration/src/edge_builder.dart:935:28)
43 FunctionExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:5004:49)
44 EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
45 EdgeBuilder.visitFunctionDeclaration (package:nnbd_migration/src/edge_builder.dart:886:9)