Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error output should use monospace font #2933

Open
lrhn opened this issue Apr 23, 2024 · 0 comments
Open

Error output should use monospace font #2933

lrhn opened this issue Apr 23, 2024 · 0 comments

Comments

@lrhn
Copy link
Member

lrhn commented Apr 23, 2024

The error output from the compiler is displayed in a proportional font.
Since it contains lines with "^"s that point into the prior line, that information is lost.
Compare:

main.dart:20:20: Error: Property 'y' cannot be accessed on '({int x, int y})?' because it is potentially null.
Try accessing using ?. instead.
    print((a!.x, a.y, n3: 0)); // ERR
                   ^

with

main.dart:20:20: Error: Property 'y' cannot be accessed on '({int x, int y})?' because it is potentially null.
Try accessing using ?. instead.
    print((a!.x, a.y, n3: 0)); // ERR
                   ^

In the latter, it's possible to see that the ^ is on the y.

@lrhn lrhn changed the title Error output should use monospace fon,t Error output should use monospace font Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant