x/tools/gopls: missing complete entry when using gopls 0.12.0 #60835
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
golang.org/x/tools/gopls v0.12.0
golang.org/x/tools/[email protected] h1:O8KGdGuvu3YmAwim3KYmV2l20Cce5VMS74LayO2cDw8=
go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN="/Users/bingjia.chen/go/bin"
GOCACHE="/Users/bingjia.chen/Library/Caches/go-build"
GOENV="/Users/bingjia.chen/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/bingjia.chen/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/bingjia.chen/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.19.9"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/cn/yf347khx1k1fh7ctyx6sdjgm0000gy/T/go-build9472372=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do?
After upgrading the gopls from 0.10.0 to 0.12.0, I found that when I trigger the completion for a struct with a lof of fields and methods, some of the fields/methods in the completion entry list were missing. However after I downgrade the gopls to 0.10.0, I can see the whole completion entry list again.
What did you expect to see?
Completion list contains all the fields and methods of a struct variable.
What did you see instead?
Some of the fields/methods in the completion entry list were missing
Editor and settings
Editor: nvim v0.9.1
Pluigins:ray-x/go.nvim
Lsp Config:
Logs
I think it has something do with the error "re-parsing: context deadline exceeded", because I can see this log when I am using goplsv0.10.0
The text was updated successfully, but these errors were encountered: