x/tools/gopls: intellisense for CGO function or data type #43919
Comments
/cc @heschik |
Please follow the VS Code troubleshooting guide, and then upload a log of the problem, following the "Collect gopls information" section. |
Logs from gopls(server)
|
The folder containing your cgo code is missing a go.mod and so can't be loaded. Please add a valid go.mod and try again? |
I didn't have go.mod in this folder. Just |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Go are you using (
go version
)?1.14.6
Does this issue reproduce with the latest release?
Write some CGO in Golang files.
What did you expect to see?
Should not show warning
not declared by package C
for C type or C exported function.Not sure is it belong to gopls issue or others.
The text was updated successfully, but these errors were encountered: