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

Report range on diagnostics #650

Open
edusporto opened this issue Jul 30, 2024 · 0 comments
Open

Report range on diagnostics #650

edusporto opened this issue Jul 30, 2024 · 0 comments
Assignees
Labels
CLI About Bend's CLI compilation Compilation of terms and functions to HVM enhancement New feature or request

Comments

@edusporto
Copy link
Contributor

Currently, the diagnostic struct is defined as such:

pub struct Diagnostic {
  message: String,
  severity: Severity,
}

Some diagnostics can be related to code on a specific range of a file, like parsing errors for example. Currently, the location and file in which such errors occur is encoded within the message string, but that makes it difficult to get the source location of these diagnostics after they've been created.

This is especially useful to the language server for Bend we are currently developing.

@edusporto edusporto self-assigned this Jul 30, 2024
@edusporto edusporto added the enhancement New feature or request label Jul 30, 2024
@developedby developedby added compilation Compilation of terms and functions to HVM CLI About Bend's CLI labels Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI About Bend's CLI compilation Compilation of terms and functions to HVM enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants