Open
Description
What did you do? (required: The issue will be closed when not provided)
I've put the go version with the format 1.22.4 (instead of 1.22) in my go.mod file.
What did you expect to happen?
I expect to still get syntax checking and highlight after doing so. Here is what I want:
What happened instead?
The highlight is not present:
Configuration (MUST fill this out):
vim-go version:
I'm using the latest master version (commit a64d097a1af1772c24d13f34529b9be2a34b7721
)
vimrc
you used to reproduce:
vimrc
" Turn off filetype detection (to avoid errors)
filetype off
" Turn on color syntax
if has("syntax")
syntax on
endif
" Load plugins, indent, and filetype of the opened file
if has("autocmd")
filetype plugin indent on
endif
Vim version (first three lines from :version
):
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled May 03 2024 02:37:51)
Included patches: 1-579, 1969, 580-1848, 4975, 5016, 5023, 5072, 2068, 1849-1854, 1857, 1855-1857, 1331, 1858, 1858-1859, 1873, 1860-1969, 1992, 1970-1992, 2010, 1993-2068, 2106, 2069-2106, 2108, 2107-2109, 2109-3995, 4563, 4646, 4774, 4895, 4899, 4901, 4919, 213, 1840, 1846-1847, 2110-2112, 2121
Modified by [email protected]
Go version (go version
):
go version go1.22.6 linux/amd64
Go environment
go env
Output:
GO111MODULE='' GOARCH='amd64' GOBIN='' GOCACHE='/home/alban/.cache/go-build' GOENV='/home/alban/.config/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='amd64' GOHOSTOS='linux' GOINSECURE='' GOMODCACHE='/home/alban/prg/go/pkg/mod' GONOPROXY='github.com/figarocms' GONOSUMDB='github.com/figarocms' GOOS='linux' GOPATH='/home/alban/prg/go' GOPRIVATE='github.com/figarocms' GOPROXY='https://proxy.golang.org,direct' GOROOT='/usr/lib/go' GOSUMDB='sum.golang.org' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/usr/lib/go/pkg/tool/linux_amd64' GOVCS='' GOVERSION='go1.22.6' GCCGO='gccgo' GOAMD64='v1' AR='ar' CC='gcc' CXX='g++' CGO_ENABLED='1' GOMOD='/home/alban/prg/go/src/github.com/figarocms/fi-alert-batch/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-build536275403=/tmp/go-build -gno-record-gcc-switches'
gopls version
gopls version
Output:
golang.org/x/tools/gopls v0.15.3
vim-go configuration:
vim-go configuration
g:go_loaded_gosnippets = 1 g:go_jump_to_error = 1 g:go_loaded_install = 1
filetype detection configuration:
filetype detection
filetype detection:ON plugin:ON indent:ON
Metadata
Metadata
Assignees
Labels
No labels