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

Adapt to new error location type #358

Merged
merged 1 commit into from
Jun 15, 2024
Merged

Adapt to new error location type #358

merged 1 commit into from
Jun 15, 2024

Conversation

whonore
Copy link
Owner

@whonore whonore commented Jun 2, 2024

coq/coq#19040 changes the way error locations are reported in the XML protocol. Specifically, it replaces the loc_s and loc_e attributes of the fail result with an optional Loc.t field. If I understand correctly, the start and stop fields contain the same byte offsets as the old loc_s and loc_e, so it's enough to just extract and return those.

coq/coq#19040 changes the way error locations are
reported in the XML protocol. Specifically, it replaces the `loc_s` and `loc_e`
attributes of the `fail` result with an optional `Loc.t` field. If I understand
correctly, the `start` and `stop` fields contain the same byte offsets as the
old `loc_s` and `loc_e`, so it's enough to just extract and return those.
@whonore whonore merged commit a363529 into main Jun 15, 2024
19 checks passed
@whonore whonore deleted the v8.20-error-loc branch June 15, 2024 20:06
Rixxc pushed a commit to Rixxc/Coqtail that referenced this pull request Jul 2, 2024
coq/coq#19040 changes the way error locations are
reported in the XML protocol. Specifically, it replaces the `loc_s` and `loc_e`
attributes of the `fail` result with an optional `Loc.t` field. If I understand
correctly, the `start` and `stop` fields contain the same byte offsets as the
old `loc_s` and `loc_e`, so it's enough to just extract and return those.
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