tweag / nickel

Better configuration for less
https://nickel-lang.org/
MIT License
2.24k stars 84 forks source link

Improve diagnostic location in nls #1856

Closed jneem closed 3 months ago

jneem commented 4 months ago

This adds a better heuristic for the "main" location of a diagnostic: we take the first label with the "primary" style, instead of just the first label.

In practice, this means that contract errors point first to the location of the value that violates the contract (whereas previously they were pointing to the contract itself).