-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Completion response says "isIncomplete": true
even when the total number of completion items is two
#7649
Comments
We set One possible consideration would be to only set it to true if import autocompletions are actually enabled, though. |
I'm concerned that 68ms is a performance regression for our users. Hitting the ycmd cache, right now, roundtrips in <6ms. |
Those 68ms are on a cold RA cache. A second invocation should be fast. |
Alright, thanks for correcting me. That doesn't sound too bad. |
I think we can close this? |
Sure! I should have closed it yesterday. |
Yesterday (so 11. 02. 2021.) I updated rust-analyzer to the latest version available in rustup. This is a part of the log that shows the completion request/response:
The project used for testing: https://github.com/ycm-core/ycmd/tree/master/ycmd/tests/rust/testdata/common
The specific file open: https://github.com/ycm-core/ycmd/blob/master/ycmd/tests/rust/testdata/common/src/main.rs#L14
The expected completions: https://github.com/ycm-core/ycmd/blob/master/ycmd/tests/rust/testdata/common/src/test.rs#L7-L8
The new rust-analyzer does work, but if it is always returning
true
forisIncomplete
, it circumvents ycmd's cache and impacts performance.On the bright side, this exposed a bug in ycmd.
The text was updated successfully, but these errors were encountered: