RangeError (index): Invalid value: Valid value range is empty: 0 at offset 5157 in ...utils.dart (crc >> 8) #47555
Labels
area-migration (deprecated)
Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool).
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)
#61 MigrateCommand.run (package:nnbd_migration/migration_cli.dart:185:7)
#62 CommandRunner.runCommand (package:args/command_runner.dart:196:13)
#63 DartdevRunner.runCommand (package:dartdev/dartdev.dart:199:18)
#64 runDartdev (package:dartdev/dartdev.dart:53:16)
#65 main (file:///C:/b/s/w/ir/cache/builder/sdk/pkg/dartdev/bin/dartdev.dart:11:3)
failed on migrate this
https://github.com/insinfo/flutter_advanced_networkimage
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, 2.6.0-11.0.pre, on Microsoft Windows [versão 10.0.22000.258], locale pt-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.3)
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.61.2)
[✓] Connected device (4 available)
• No issues found!
The text was updated successfully, but these errors were encountered: