You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we have a Flutter project that's on Dart 3. We were originally on the Flutter beta channel but switched to the Master after we had some issues with compiling.
We are using the following experimental features:
- sealed-class
- patterns
- records
- class-modifiers
Now we find ourselves in a situation where we cannot compile our application after making changes to certain files, although we are yet to figure out a pattern as to which files are affected. The error message is always the same:
Unhandled exception:
Crash when compiling file:///....../body_chart_anatomy_preview.dart at character offset 941:
Not implemented
#0 TypeBuilderComputer.visitRecordType (package:front_end/src/fasta/kernel/type_builder_computer.dart:197:5)
#1 RecordType.accept (package:kernel/ast.dart:13385:14)
#2 TypeBuilderComputer.visitInterfaceType.<anonymous closure> (package:front_end/src/fasta/kernel/type_builder_computer.dart:101:65)
#3 new _List.generate (dart:core-patch/array.dart:112:28)
#4 TypeBuilderComputer.visitInterfaceType (package:front_end/src/fasta/kernel/type_builder_computer.dart:100:23)
#5 InterfaceType.accept (package:kernel/ast.dart:12085:42)
#6 DillLoader.computeTypeBuilder (package:front_end/src/fasta/dill/dill_loader.dart:345:17)
#7 computeTypeBuilder (package:front_end/src/fasta/dill/dill_class_builder.dart:248:24)
The change I made to the file in order to cause the problem was simply changing the order of elements in the list at which I pointed with the arrow in the code sample. The only way to get the app to compile again is either reverting the change or running flutter clean.
This issue seems to me like this has to have already been noticed by someone. However, I could not find any issue here or over at Flutter's GitHub.
The text was updated successfully, but these errors were encountered:
maxluchterhand1
changed the title
Crash when compiling after making a code change to a Flutter application using Dart 3 and records
Crash when compiling after making a code change to a Flutter application that uses Dart 3 and records
Mar 22, 2023
Hey,
we have a Flutter project that's on Dart 3. We were originally on the Flutter beta channel but switched to the Master after we had some issues with compiling.
We are using the following experimental features:
- sealed-class
- patterns
- records
- class-modifiers
Now we find ourselves in a situation where we cannot compile our application after making changes to certain files, although we are yet to figure out a pattern as to which files are affected. The error message is always the same:
This is the file in question:
The change I made to the file in order to cause the problem was simply changing the order of elements in the list at which I pointed with the arrow in the code sample. The only way to get the app to compile again is either reverting the change or running flutter clean.
This issue seems to me like this has to have already been noticed by someone. However, I could not find any issue here or over at Flutter's GitHub.
The text was updated successfully, but these errors were encountered: