-
Notifications
You must be signed in to change notification settings - Fork 74
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
Code Completion Appears Entirely Broken #792
Comments
+1 |
One of the students I teach and I can also reproduce this. My configuration is similar to the one above (VSCode 1.93.0, VsCoq v2.2.1, vscoq-language-server 2.2.1, Coq 8.18.0, on Linux), and my student's too (VsCoq 2.2.1, Coq 8.18.0, vscoq-language-server 2.2.1, on MacOS Sonoma 14.5). |
and I can also reproduce this with Coq 8.20.0 (and otherwise the same configuration). |
Same problem with Coq 8.20.0, vscoq 2.2.1, on MacOS |
Thanks for reporting. |
Duplicate of #571 |
I am a new user to VSCoq. In my experience, code completion from the language server does not appear to work and generates unfilterable error notifications that interfere with my use of the tool. Code completion from the language server is off by default, so this does not affect a new user in the default configuration. I'm reporting this bug, though, in case others have a similar experience and expect the feature to work correctly.
Steps to reproduce
$HOME
directory as follows:mkdir temp; cd temp
export HOME=$(pwd)
mkdir project; cd project
code .
Ctrl+,
and then navigate to "Extensions » VsCoq » Code Completion"), check "Enable completion suport from the VsCoq language server".Example.v
.)I
").Observed behavior
An error message popup appears that reads "Request textDocument/completion failed." This is VSCode's behavior whenever a code completion tool fails to produce results. The popup persists in the bottom right of the editor until the notification is cleared but will reappear when anything else is typed into the document.
Expected behavior
I expected code completion to be offered or, at the very least, no error dialog to appear.
Supplementary information
In VSCode's developer tools console, the following stack trace appears:
It is worth noting, however, that writing a full sentence and then following it up with another character generates similar behavior. For instance, typing an "
I
" at the end of the documentproduces the same error pop-up.
Environment
This example was generated using the following software:
vscoq-language-server
2.1.2)The text was updated successfully, but these errors were encountered: