You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do? (required: The issue will be closed when not provided)
Create a type like type foo []string
Try to implement an interface like :GoImpl foo flag.Value
What did you expect to happen?
An error message explaining that :GoImpl takes three arguments: a receiver name, a receiver type, and an interface, e.g. GoImpl {r} {receiver} {interface}
What happened instead?
An error message like vim-go: usage: GoImpl {receiver} {interface}. This message looks like it's telling me that it takes two arguments (receiver type and interface type), which led me to try several variations on specifying the type. Further adding to the confusion, the impl command will happily accept a bare type name as its first argument, producing code without a named receiver, e.g. func (foo) String() string {…}.
Configuration (MUST fill this out):
vim-go version:
Commit 8d7677947e0be1eecfa1bcf2c1148804963ec4f6
vimrc you used to reproduce:
vimrc
" No special configuration needed, just use the vim-go plugin
Vim version (first three lines from :version):
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Dec 12 2022 20:02:12)
macOS version - x86_64
Included patches: 1-1023
What did you do? (required: The issue will be closed when not provided)
type foo []string
:GoImpl foo flag.Value
What did you expect to happen?
An error message explaining that
:GoImpl
takes three arguments: a receiver name, a receiver type, and an interface, e.g.GoImpl {r} {receiver} {interface}
What happened instead?
An error message like
vim-go: usage: GoImpl {receiver} {interface}
. This message looks like it's telling me that it takes two arguments (receiver type and interface type), which led me to try several variations on specifying the type. Further adding to the confusion, theimpl
command will happily accept a bare type name as its first argument, producing code without a named receiver, e.g.func (foo) String() string {…}
.Configuration (MUST fill this out):
vim-go version:
Commit
8d7677947e0be1eecfa1bcf2c1148804963ec4f6
vimrc
you used to reproduce:vimrc
" No special configuration needed, just use the vim-go plugin
Vim version (first three lines from
:version
):VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Dec 12 2022 20:02:12)
macOS version - x86_64
Included patches: 1-1023
Go version (
go version
):go version go1.20 darwin/amd64
Go environment
go env
Output:gopls version
gopls version
Output:The text was updated successfully, but these errors were encountered: