x/tools/gopls: analyzer fillstruct does not return any diagnoses #63667
Labels
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
v0.13.2
go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/arthur/.cache/go-build'
GOENV='/home/arthur/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/arthur/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/arthur/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.1'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/arthur/personal/goplstest/go.mod'
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 -ffile-prefix-map=/tmp/go-build608842351=/tmp/go-build -gno-record-gcc-switches'
What did you do?
I use this snippet below to test if the
fillstruct
analyzer works in Neovim editor:What did you expect to see?
There should be diagnostics with a message "Fill Bar"
What did you see instead?
No diagnostics appear. Also I check the log of the lsp and see empty response from
textDocument/publishDiagnostics
.Editor and settings
My Neovim lspconfig:
Logs
Some logs I capture from running
The text was updated successfully, but these errors were encountered: