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

Reduce dummy ranges in errors #3036

Merged
merged 6 commits into from
Aug 29, 2023
Merged

Conversation

mtzguido
Copy link
Member

Dummy ranges are pretty bad when working interactively as they usually highlight the top of the file, possible very far away from the definition one is working on.

This PR makes dummy ranges default to the range of the sigelt being checked by using a global reference that holds the "fallback" range.

This coincides with the internal dummyRange from FStar.Compiler.Range
This extension is meant to cause F* to never print an absolute path in a
range, and just print the basename. This allows us to check ranges in
tests (e.g. tests/ide) reliably.
@mtzguido mtzguido merged commit 9630316 into FStarLang:master Aug 29, 2023
@mtzguido mtzguido deleted the no-dummies branch August 29, 2023 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant