findleyr opened this issue
Jan 13, 2023
· 1 comment
Assignees
Labels
goplsIssues related to the Go language server, gopls.NeedsFixThe path to resolution is known, but the work has not been done.ToolsThis label describes issues relating to any tools in the x/tools repository.
https://go.dev/cl/455615 simplified our package APIs, but dropped the explicit filtering of intermediate test variants from snapshot.PackageForFile.
I believe as a result of this change, we may get an intermediate test variant at the call sites where we previously would not. This can cause needless type-checking.
Not yet released, but we must address this before v0.12.0
gopherbot
added
Tools
This label describes issues relating to any tools in the x/tools repository.
gopls
Issues related to the Go language server, gopls.
labels
Jan 13, 2023
The global search for references should include intermediate
test variants (ITVs), because the rdeps of every variant are disjoint.
The existing comment was mistaken.
The local search does not need them for the valid reason given in
the existing comment.
The previous call to RemoveIntermediateTestVariants had not
quite the intended effect because we forgot to use its result. (D'oh.)
The effect of the change in the test was to expose the bug
by creating an ordinary test variant.
Updates golang/go#57795
Change-Id: I1852aebf81ae0d169191834eb9a880d0ba90bc6e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/462497
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
goplsIssues related to the Go language server, gopls.NeedsFixThe path to resolution is known, but the work has not been done.ToolsThis label describes issues relating to any tools in the x/tools repository.
3 participants
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.
https://go.dev/cl/455615 simplified our package APIs, but dropped the explicit filtering of intermediate test variants from
snapshot.PackageForFile
.I believe as a result of this change, we may get an intermediate test variant at the call sites where we previously would not. This can cause needless type-checking.
Not yet released, but we must address this before v0.12.0
CC @adonovan
The text was updated successfully, but these errors were encountered: