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

GoKeyify looks not work as general. #3030

Closed
Shane-XB-Qian opened this issue Sep 28, 2020 · 1 comment
Closed

GoKeyify looks not work as general. #3030

Shane-XB-Qian opened this issue Sep 28, 2020 · 1 comment

Comments

@Shane-XB-Qian
Copy link

refer: dominikh/go-tools#834

or: to reproduce: had a struct:

type Rectangle struct {
	Length int
	Width  int
}

now: cursor on letter '2'
rr := Rectangle{2, 0} cur

then run :GoKeyify, it reported:
vim-go: non-zero exit code: can't find package containing '../x.go'

What did you expect to happen?

	rr := Rectangle{
		Length: 2,
		Width:  0,
	}

What happened instead?

vim-go: non-zero exit code: can't find package containing '../x.go'

Configuration (MUST fill this out):

let g:go_def_mapping_enabled = 0

vim-go version:

e8da362 (HEAD -> master, origin/master, origin/HEAD) update CHANGELOG.md for #3028

Vim version (first three lines from :version):

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 27 2020 11:52:12)
Included patches: 1-1751

Go version (go version):

go version go1.15.2 linux/amd64

Go environment

go env Output:
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/shane/.cache/go-build"
GOENV="/home/shane/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/shane/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/shane/go"
GOPRIVATE=""
GOPROXY="https://goproxy.io"
GOROOT="/snap/go/6439"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/snap/go/6439/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build270197224=/tmp/go-build -gno-record-gcc-switches"

gopls version

golang.org/x/tools/gopls v0.5.0
golang.org/x/tools/gopls@v0.5.0 h1:XEmO9RylgmaXp33iGrWfCGopVYDGBmLy+KmsIsfIo8Y=

@Shane-XB-Qian
Copy link
Author

as ticket dominikh/go-tools#834 comment, looks vim-go should be not easy to make it work also, so close this now.
looking forward gopls would integrate keyify soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant