-
Notifications
You must be signed in to change notification settings - Fork 796
Wrong inlay hints of unsafe.Sizeof(AType{}) #3146
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
Comments
@HwHgoo thanks for the report. Can you please try the gopls with |
It seems go1.22rc1 doesn't fix it as expected. I don't know if I'm doing right: I build the go1.22rc and override the path of go which originally is |
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.Describe the bug
Inlay hint shows wrong value of unsafe.Sizeof(AType{}). And it only occurs when AType has an auto padding at the end.
Steps to reproduce the behavior:
See the screenshot.
Screenshots or recordings
The text was updated successfully, but these errors were encountered: