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

No autocompletion when typing even number of characters in VSCode #1858

Closed
1 task done
tydeu opened this issue Nov 19, 2022 · 1 comment · Fixed by #1885
Closed
1 task done

No autocompletion when typing even number of characters in VSCode #1858

tydeu opened this issue Nov 19, 2022 · 1 comment · Fixed by #1885
Assignees
Labels
bug Something isn't working server Affects the Lean server code

Comments

@tydeu
Copy link
Member

tydeu commented Nov 19, 2022

Prerequisites

  • Put an X between the brackets on this line if you have done all of the following:
    • Checked that your issue isn't already filed.
    • Reduced the issue to a self-contained, reproducible test case.

Description

With VSCode, typing an even number of characters does not trigger autocompletion (the Lean 4 server produces no results). If the user has "Word Based Suggestions" in VSCode enabled, the editor will fall back to such suggestions, preventing any further attempts at intelligent autocompletion from the Lean 4 server.

Steps to Reproduce

#check B -- completion results on typing 'B'
#check Ba -- if typed together, no results; if typed as 'B' then after results, 'a', then results
#check Bas --  if typed together, results; if typed as 'B' then 'as', no results
#check Base -- if typed together or as 'Ba' then 'se', no results; if typed as 'B' then 'ase' or  'Bas' then 'e', results

Expected behavior:

Autocompletion regardless of the number of characters typed.

Actual behavior:

No autocompletion when typing an even number of characters.

Reproduces how often:

Always.

Versions

VSCode 1.73.1
Windows 10 20H2
Lean (version 4.0.0-nightly-2022-11-10, commit 2386c401d231, Release)

Additional Information

Bug first reported on Zulip and confirmed by @Kha and Kevin Buzzard.

@Kha Kha added server Affects the Lean server code bug Something isn't working labels Nov 24, 2022
@Kha
Copy link
Member

Kha commented Nov 24, 2022

Kha added a commit to Kha/lean4 that referenced this issue Nov 26, 2022
Kha added a commit to Kha/lean4 that referenced this issue Nov 26, 2022
gebner pushed a commit to Kha/lean4 that referenced this issue Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server Affects the Lean server code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants