Skip to content

Bad error reporting. #1846

Closed
Closed
@floitschG

Description

@floitschG

When a syntax error is detected the VM prints a list of library-imports first.
Since the error-buffer seems to be limited to some arbitrary limit the real error is often not shown.
Example:
===
$ cat bug1.dart

library("bug1");

import("bug2.dart");

$ cat bug2.dart

library("bug2");

import("bug3.dart");

$ cat bug3.dart

library("bug3");

abstract class A { }
$ out/Release_ia32/dart bug1.dart
'/tmp/bug1.dart': Error: line 2 pos 1: library handler failed: '/tmp/bug2.dart': Error: line 2 pos 1: library handler failed: '/tmp/bug3.dart': Error: line 3 pos 1: unexpected token 'abstract'
abstract class A { }
^

import("bug3.dart");

^

import("bug2.dart");

^
===

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions