Skip to content
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: fillstruct command is not available #64297

Closed
dashazi1806 opened this issue Nov 21, 2023 · 5 comments
Closed

x/tools/gopls: fillstruct command is not available #64297

dashazi1806 opened this issue Nov 21, 2023 · 5 comments
Labels
gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@dashazi1806
Copy link

What version of Go are you using (go version)?

$ go version

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env

What did you do?

What did you expect to see?

What did you see instead?

@gopherbot gopherbot added the gopls Issues related to the Go language server, gopls. label Nov 21, 2023
@gopherbot gopherbot added this to the Unreleased milestone Nov 21, 2023
@dashazi1806 dashazi1806 changed the title x/go/gopls fillstruct command is not available x/tools/gopls fillstruct command is not available Nov 21, 2023
@gopherbot gopherbot added the Tools This label describes issues relating to any tools in the x/tools repository. label Nov 21, 2023
@dashazi1806
Copy link
Author

I have already set

"go.editorContextMenuCommands": {
"fillStruct": true,
}
in vscode setting.json file, but the vscode editor context menu how no "Go: fillStruct" command to help me auto fill the struct field. Is anyone can help me?

my go version is go1.20.11 , and gopls version is: golang.org/x/tools/gopls v0.14.2,

@dashazi1806
Copy link
Author

image
no FillStruct command.

@hello2t
Copy link

hello2t commented Nov 21, 2023

I have the same problem

@seankhliao seankhliao changed the title x/tools/gopls fillstruct command is not available x/tools/gopls: fillstruct command is not available Nov 21, 2023
@seankhliao
Copy link
Member

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2023
@gyhlearner
Copy link

I also have the same problem, does anyone have a solution? Please..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

5 participants