-
Notifications
You must be signed in to change notification settings - Fork 752
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
testing: Completion middleware testing fails with gopls v0.5.0 #649
Labels
Milestone
Comments
cc @stamblerre |
Change https://golang.org/cl/255119 mentions this issue: |
hyangah
added
the
NeedsFix
The path to resolution is known, but the work has not been done.
label
Sep 16, 2020
Change https://golang.org/cl/255120 mentions this issue: |
gopherbot
pushed a commit
that referenced
this issue
Sep 16, 2020
gopls v0.5.0 seems to change the completion result ranking, so the test that checked a specific entry for the most plausible result is broken. This CL made the test use a more specific query (fmt.P<> instead of fmt.<>) so the test can pass with gopls 0.4.x and 0.5.0. Probably, it's better to just check whether the desirable entry is in one of the top k results where k is a reasonablly small but larger than 1. I don't know what's a good number yet. Fixes #649 Change-Id: I805b2f1b2c4ae6dde19f6a931434b46fb0954510 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/255119 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> (cherry picked from commit 5879a3e) Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/255120
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
kokoro CI started to fail with
1 failing
gopls log:
The text was updated successfully, but these errors were encountered: