Closed longintlong closed 6 months ago
i used neovim and installed the vim-go, but i met an error when open a file (or use g + D jump to a another func in a new file)
g
D
no error
i met an error like the following:
master and the head is 425784a
vimrc
:version
go version
go1.20.10
go env
GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/root/.cache/go-build" GOENV="/root/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/root/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/root/go" GOPRIVATE="" GOPROXY="direct" GOROOT="/usr/lib/golang" GOSUMDB="off" GOTMPDIR="" GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.20.10" GCCGO="gccgo" GOAMD64="v1" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/dev/null" GOWORK="" CGO_CFLAGS="-O2 -g" CGO_CPPFLAGS="" CGO_CXXFLAGS="-O2 -g" CGO_FFLAGS="-O2 -g" CGO_LDFLAGS="-O2 -g" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2946499733=/tmp/go-build -gno-record-gcc-switches"
gopls version
golang.org/x/tools/gopls v0.14.1 golang.org/x/tools/gopls@v0.14.1 h1:XaTETpi7Q67XO8nftquJitcx+9c2bPclO8Kz2sBVvec=
This was fixed shortly after it was introduced in #3620.
What did you do? (required: The issue will be closed when not provided)
i used neovim and installed the vim-go, but i met an error when open a file (or use
g
+D
jump to a another func in a new file)What did you expect to happen?
no error
What happened instead?
i met an error like the following:
Configuration (MUST fill this out):
vim-go version:
master and the head is 425784a
vimrc
you used to reproduce:vimrc
```vim ```Vim version (first three lines from
:version
):Go version (
go version
):go1.20.10
Go environment
go env
Output:gopls version
gopls version
Output: