testing/dart: upgrade to 2.18.2, build full SDK, add -dev and -sdk subpackages
-
AOT snapshot generation broken -
separate dev snapshots from just runtime -
dart compile jit-snapshot
runs the code after snapshooting it
while AOT snapshots are still broken, and there is a problem about JIT snapshot generation, kernel snapshots work great
AOT error
Unhandled exception:
Crash when compiling null,
at character offset null:
Bad state: No element
#0 _GrowableList.single (dart:core-patch/growable_array.dart:353:22)
#1 ClassBuilderImpl.buildAliasedTypeWithBuiltArguments (package:front_end/src/fasta/builder/class_builder.dart:331:44)
#2 ClassBuilderImpl.buildAliasedType (package:front_end/src/fasta/builder/class_builder.dart:354:12)
#3 NamedTypeBuilder._buildAliasedInternal (package:front_end/src/fasta/builder/named_type_builder.dart:417:25)
#4 NamedTypeBuilder.buildAliased (package:front_end/src/fasta/builder/named_type_builder.dart:411:12)
#5 FunctionTypeBuilder.buildAliased (package:front_end/src/fasta/builder/function_type_builder.dart:125:20)
#6 FunctionTypeBuilder._buildInternal (package:front_end/src/fasta/builder/function_type_builder.dart:115:28)
#7 _ExplicitFunctionTypeBuilder.build (package:front_end/src/fasta/builder/function_type_builder.dart:233:22)
#8 FormalParameterBuilder.build (package:front_end/src/fasta/builder/formal_parameter_builder.dart:152:34)
#9 SourceFunctionBuilderImpl.buildFunction (package:front_end/src/fasta/source/source_function_builder.dart:344:48)
#10 SourceFactoryBuilder._build (package:front_end/src/fasta/source/source_factory_builder.dart:144:5)
#11 SourceFactoryBuilder.buildOutlineNodes (package:front_end/src/fasta/source/source_factory_builder.dart:136:5)
#12 SourceClassBuilder.build.buildBuilders (package:front_end/src/fasta/source/source_class_builder.dart:185:16)
#13 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:617:13)
#14 ConstructorScope.forEach (package:front_end/src/fasta/scope.dart:604:11)
#15 SourceClassBuilder.build (package:front_end/src/fasta/source/source_class_builder.dart:214:22)
#16 SourceLibraryBuilder._buildOutlineNodes (package:front_end/src/fasta/source/source_library_builder.dart:3069:31)
#17 SourceLibraryBuilder.buildOutlineNodes (package:front_end/src/fasta/source/source_library_builder.dart:1062:7)
#18 SourceLoader.buildOutlineNodes (package:front_end/src/fasta/source/source_loader.dart:2025:32)
#19 KernelTarget.buildOutlines. (package:front_end/src/fasta/kernel/kernel_target.dart:475:14)
#20 withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)
#21 _buildInternal (package:front_end/src/kernel_generator_impl.dart:139:7)
#22 withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)
#23 kernelForProgramInternal. (package:front_end/src/api_prototype/kernel_generator.dart:62:29)
#24 kernelForProgramInternal (package:front_end/src/api_prototype/kernel_generator.dart:61:10)
#25 kernelForProgram (package:front_end/src/api_prototype/kernel_generator.dart:50:11)
#26 compileToKernel (package:vm/kernel_front_end.dart:394:22)
#27 runCompiler (package:vm/kernel_front_end.dart:297:19)
#28 main (file:///home/lauren/aports/testing/dart/src/dart-sdk-2.18.2/pkg/vm/bin/gen_kernel.dart:34:19)
Edited by LN Liberda