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
x/tools/cmd/gopls: failed to GoToDefinition for cipher package in vscode using ctrl
+ left click
#32516
Comments
Looking at the documentation for var _ cipher.Stream |
I've been having code completion issues in my project today and found this issue while searching. I can reproduce the issue above, and also a I started a new directory outside package main
import "crypto/cipher"
func main() {
var _ cipher.Stream
} which produces the same series of errors:
Adding parentheses after
The only non-default setting for the above is |
I have tried |
Change https://golang.org/cl/181578 mentions this issue: |
We weren't comparing the right values when checking to see if a file's import statements had changed. This was causing us to not refetch a package's metadata when needed in certain cases. In particular, if you typed out an import path by hand you would get stuck with "no metadata for package" until you added or deleted another import line to trigger metadata refresh. Updates golang/go#32516, golang/go#32232 Change-Id: I1c99e9ee56d18f02c44c749d33679aa4e561c620 GitHub-Last-Rev: 20d46b3 GitHub-Pull-Request: #112 Reviewed-on: https://go-review.googlesource.com/c/tools/+/181578 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org>
@hujianxin @cee-dub can you rebuild gopls off master and see if the error is fixed? |
The change in https://golang.org/cl/181578 has drastically increased stability of |
@muirrn I upgraded gopls to the latest version, and checked, this issue has gone away, thanks |
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?
$GOROOT/src/crypto/cipher/cipher.go
, that is nessearyWhat did you expect to see?
jump to definition of Stream method
What did you see instead?
The text was updated successfully, but these errors were encountered: