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

Improve error message display #1763

Open
yav opened this issue Oct 28, 2024 · 0 comments
Open

Improve error message display #1763

yav opened this issue Oct 28, 2024 · 0 comments
Labels
command-line-repl Related to Cryptol's text-based UI UX Issues related to the user experience (e.g., improved error messages)

Comments

@yav
Copy link
Member

yav commented Oct 28, 2024

It has become pretty common for compiler to show some context and underline the location of the error in error messages. Cryptol is pretty good about keeping track of the locations of things, so it should be fairly simple to also show this.

Here's an example of the kind of thing we want:

Cryptol> `Integer

[error] at <interactive>:1:2--1:9:
  Incorrect type form.
    Expected: a numeric type
    Inferred: a value type
|
| `Integer
|  ^^^^^^^
Cryptol> 
@yav yav added command-line-repl Related to Cryptol's text-based UI UX Issues related to the user experience (e.g., improved error messages) labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command-line-repl Related to Cryptol's text-based UI UX Issues related to the user experience (e.g., improved error messages)
Projects
None yet
Development

No branches or pull requests

1 participant