dart-lang / source_maps

A package to programmatically manipulate source maps.
https://pub.dev/packages/source_maps
BSD 3-Clause "New" or "Revised" License
16 stars 14 forks source link

Span.getLocationMessage returns incorrect output for lines without trailing newlines #10

Open DartBot opened 9 years ago

DartBot commented 9 years ago

Issue by nex3 Originally opened as dart-lang/sdk#19665


If a span points to the final line in a file, and that line doesn't end in a newline, the arrows in getLocationMessage will be rendered on the same line as the source text. For example:

    Error on line 12, column 28 of pubspec.yaml: Error loading transformer: I hate these settings!       - app/src/html_rewriter: {} ^^