dart2 vm prints absolute paths to buildtime core library files in stack traces #32087
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
area-vm
Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends.
customer-flutter
P2
A bug or feature request we're likely to work on
Projects
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: