Skip to content

fix: avoid new term info around def bodies#6031

Merged
Kha merged 2 commits intoleanprover:masterfrom
Kha:push-prtortrmqpoy
Nov 11, 2024
Merged

fix: avoid new term info around def bodies#6031
Kha merged 2 commits intoleanprover:masterfrom
Kha:push-prtortrmqpoy

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
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Nov 11, 2024
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Nov 11, 2024
@ghost ghost added the builds-mathlib CI has verified that Mathlib builds against this PR label Nov 11, 2024
@ghost
Copy link

ghost commented Nov 11, 2024

Mathlib CI status (docs):

@Kha Kha added this pull request to the merge queue Nov 11, 2024
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Nov 11, 2024
ghost pushed 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
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)
JovanGerb pushed a commit to JovanGerb/lean4 that referenced this pull request Jan 21, 2025
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
leanprover#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants