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/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 |
@linlinlinlin: |
Closing, as there hasn't been any activity on this for quite some time. |
the same issue ... |
Same for me . . . |
Same :C |
Same for me . . . |
Hi @shuxiao9058 @scaszoo @zandercodes @onewesong Do you mind creating new issues so we can understand how to improve? From reading the comment, the cause of this issue was partly due to the absence of |
the same issue... |
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: