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

reproducible language server desync #6227

Closed
3 tasks done
fpvandoorn opened this issue Nov 26, 2024 · 0 comments · Fixed by #6236
Closed
3 tasks done

reproducible language server desync #6227

fpvandoorn opened this issue Nov 26, 2024 · 0 comments · Fixed by #6236
Labels
bug Something isn't working

Comments

@fpvandoorn
Copy link
Contributor

Prerequisites

Please put an X between the brackets as you perform the following steps:

Description

Step 1: copy-paste the following in an empty file:

structure Signature where
  /-- a docstring -/
  Sort : Type

This will give an expected error, since Sort is a reserved keyword.

Step 2: add the letter s to Sort, so that the line reads Sorts : Type

On Windows, the error unexpected token 'Sort' remains until the file is restarted.

Versions

I can reproduce this on 4.14.0-rc2, 4.13.0-rc3 (on Windows) and on live.lean-lang, so it doesn't seem OS specific.

Impact

Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.

@fpvandoorn fpvandoorn added the bug Something isn't working label Nov 26, 2024
github-merge-queue bot pushed a commit that referenced this issue Nov 27, 2024
This PR fixes an issue where edits to a command containing a nested
docstring fail to reparse the entire command.

Fixes #6227
@Kha Kha closed this as completed in #6236 Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant