elm / error-message-catalog

A catalog of broken Elm programs / data to improve error messages
BSD 3-Clause "New" or "Revised" License
173 stars 17 forks source link

^^^'s are misaligned when line contains emojis #277

Open harrysarson opened 5 years ago

harrysarson commented 5 years ago

SSCCE: https://ellie-app.com/3CZQLzL9fVKa1

module Main exposing (main)

x = ['🙈', '🙉', invalid]

The compiler gives an error in column 16 (which is correct) but the ^^^^'s are misaligned. Even when using a monospace font the emojis are wider than other characters which I believe causes this misalignment.

Full error message:

Line 3, Column 16
I cannot find a `invalid` variable:

3| x = ['🙈', '🙉', invalid]
                  ^^^^^^^
These names seem close though:

    asin
    isNaN
    List.all
    abs

Hint: Read <https://elm-lang.org/0.19.0/imports> to see how `import`
declarations work in Elm.