-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Syntax checking/diagnostics doesn't seems to work when using go version with format 1.X.X in go.mod file #3677
Comments
Note that in general your two examples show that the syntax highlighting provided by vim-go is working in general. The problem you're experiencing seems to be related to diagnostics by What version of Go did you build |
Here is the $ gopls version
golang.org/x/tools/gopls v0.15.3 and my Go version is: $ go version
go version go1.22.6 linux/amd64 Running I've started vim with the
It seems there is no error from gopls here but it seems there is still no diagnostics when i open some Go files. I'm new to debugging vim plugins. So, if there is some option or logs files I can start vim with or send to facilitate discovering what is going on, please, be pleased to ask for more. As @bhcleek seems to say it may be an issue with the |
I don't think it's actually an issue with Can you:
Provide the contents of the two |
It seems you are right, Here is the logs I have when I use the 1.X format in the go mod and it highlight the undefined method:
Here is the log file when I use the 1.X.X format in the go mod file and i have no highlight on the undefined method:
|
I'm not sure what's going on yet. Clearly, |
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
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:gopls version
gopls version
Output:vim-go configuration:
vim-go configuration
filetype detection configuration:
filetype detection
The text was updated successfully, but these errors were encountered: