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

fix: avoid new term info around def bodies #6031

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

Kha
Copy link
Member

@Kha Kha commented Nov 11, 2024

This PR fixes a regression with go-to-definition and document highlight misbehaving on tactic blocks.

We explicitly avoid creating term info nodes around by blocks, which #5338 might accidentally do; as the new info is not relevant for the server, it is instead moved into a custom info.

Reported at https://leanprover.zulipchat.com/#narrow/channel/270676-lean4/topic/Go-to-def.20for.20tactics.20broken.20on.20v4.2E14.2E0-rc1.

@Kha Kha added the changelog-server Language server, widgets, and IDE extensions label Nov 11, 2024
@Kha Kha enabled auto-merge November 11, 2024 10:09
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Nov 11, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Nov 11, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Nov 11, 2024
@leanprover-community-bot leanprover-community-bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Nov 11, 2024
@leanprover-community-bot
Copy link
Collaborator

leanprover-community-bot commented Nov 11, 2024

Mathlib CI status (docs):

@Kha Kha added this pull request to the merge queue Nov 11, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Nov 11, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Nov 11, 2024
Merged via the queue into leanprover:master with commit 004430b Nov 11, 2024
15 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 11, 2024
This PR fixes a regression with go-to-definition and document highlight
misbehaving on tactic blocks.

We explicitly avoid creating term info nodes around `by` blocks, which
#5338 might accidentally do; as the new info is not relevant for the
server, it is instead moved into a custom info.

Reported at
https://leanprover.zulipchat.com/#narrow/channel/270676-lean4/topic/Go-to-def.20for.20tactics.20broken.20on.20v4.2E14.2E0-rc1.

(cherry picked from commit 004430b)
@Kha Kha deleted the push-prtortrmqpoy branch November 12, 2024 13:21
Kha added a commit that referenced this pull request Nov 15, 2024
This PR fixes a regression with go-to-definition and document highlight
misbehaving on tactic blocks.

We explicitly avoid creating term info nodes around `by` blocks, which
#5338 might accidentally do; as the new info is not relevant for the
server, it is instead moved into a custom info.

Reported at
https://leanprover.zulipchat.com/#narrow/channel/270676-lean4/topic/Go-to-def.20for.20tactics.20broken.20on.20v4.2E14.2E0-rc1.

(cherry picked from commit 004430b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport releases/v4.14.0 builds-mathlib CI has verified that Mathlib builds against this PR changelog-server Language server, widgets, and IDE extensions toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants