Closed ahmaducg closed 1 month ago
If you're using terse
, I believe that is the expected behavior, because that's from the dart:
namespace:
8 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:377:8)
If you're not using terse, it might still be expected, I'm not sure.
This only happens in terse mode and it seems to be by design, because we have tests for it. Example: https://github.com/dart-lang/stack_trace/blob/5b829650d47c66a3b6786256fd955403cd56a169/test/trace_test.dart#L553-L572
This checks that the line/column number of future.dart
is dropped.
There are other tests as well.
If you don't want to lose any information you should use the non-terse format (the default).
When using Trace.format, some of the Stack Trace isn't being formatted right.
In the example below, "# 8" doesn't get formatted right, removing the line number and file name.
Stack :
After Trace.format(stack) :