dart2 vm prints absolute paths to buildtime core library files in stack traces #32087
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
customer-flutter
legacy-area-front-end
Legacy: Use area-dart-model instead.
P2
A bug or feature request we're likely to work on
Compare this two stack traces obtained by running the same program:
Note that Dart 2 VM emits file URIs pointing to build time locations of core library sources while Dart 1 VM uses
dart:...
schema:file:///Users/vegorov/src/dart/sdk/sdk/lib/async/zone.dart:1381:54
vsdart:async/zone.dart:1381
.There is code in Flutter that relies on
dart:
schema uris in the stacktraces to be able to filter and elide some frames: https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/foundation/assertions.dart#L354-L358So Dart 2 mode fails tests that check if this functionality still working:
test/foundation/stack_trace_test.dart: (2 failures)
test/foundation/error_reporting_test.dart: (6 failures)
We need to come up with the solution for this problem.
The text was updated successfully, but these errors were encountered: