-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/gopls: add ability to set deep completion Budget via LSP Configuration #36142
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
Comments
It might be the completion budget. If it runs out of the (default) 100ms budget, it will give up on deep completions. You can try disabling the "Budget" completion option by setting it to 0, but it isn't currently exposed over LSP. |
The log files attached to the initial comment were incorrect: now fixed. Also worth noting is that if the initial More explicitly, if the initial
Then the test fails as reported above. However if it is:
it has not yet failed. |
Thanks @muirdm - hadn't thought about that. Will try now. |
@muirdm - brilliant observation, thank you. Setting the I'll change the title of this description to instead be a request to expose |
Change https://golang.org/cl/211584 mentions this issue: |
@myitcv: does the above CL work for you? |
Re-opening until https://go-review.googlesource.com/c/tools/+/211759 lands |
All fixes for this have now landed. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
See below for background. We very quickly established this is related to the deep completion
Budget
being exceeded. Hence #36142 (comment) and the updated title.Background
In
govim
testcomplete_deep_fuzzy
we verify that deep fuzzy completions work.The test is as simple as ensuring that the input file:
when completed after
a.ck
results in:However, over 50% of the time we're seeing this test fail because no completion items are returned.
Here are the
gopls
logs from a failing and passing run:Much like #35638 this is a timing/race related issue and hard to reproduce standalone. Generally I find this fails when my machine is under high stress.
The test can be run on a machine that uses Docker via:
(download of Docker image may initially take some time)
What did you expect to see?
A consistently passing test.
What did you see instead?
Intermittent failures.
cc @stamblerre @muirdm
The text was updated successfully, but these errors were encountered: