VM error information is being truncated #414
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
closed-duplicate
Closed in favor of an existing report
P1
A high priority bug; for example, a single project is unusable or has many test failures
This issue was originally filed by [email protected]
I try to run a dart program ('MyClass') in the VM. The program imports a library (call it 'library1'), which imports another library (call it 'library2'), which sources a file with an error (in this case, a function incorrectly marked 'abstract' that has a function body). The error message is unhelpful, since it cuts off before the actual error.
$ dart MyClass.dart
Errors encountered while loading script: '../MyClass.dart': Error: line 7 pos 1: library handler failed: '.../library1.dart': Error: line 2 pos 1: library handler failed: '../library2.dart': Error: line 3 pos 1: library handler failed: '...<only a partial path appears here>
import("library1.dart");
^
I was eventually able to find the error by doing 'dart Library2.dart', but I should not need to play detective. Please ensure that a full error message is generated, to an arbitrary level of nesting.
The text was updated successfully, but these errors were encountered: