-
-
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 error with generics #3474
Comments
Similar to #3398 but in my case I have no other plugin installed, so it's coming from vim-go. |
What does |
Oh, you're running a very old version of |
Hi! [bin (2) ]$ gopls version
golang.org/x/tools/gopls v0.10.1
golang.org/x/tools/[email protected] h1:JoHe17pdZ8Vsa24/GUO8iTVTKPh0EOBiWpPop7XJybI= go version: go version go1.19.3 linux/amd64 |
I think there's something up with my setup. When I run
But the output of
Is it possible that vim-go is using a different golang binary? Not sure how to check this. |
Ok, the
which now shows:
|
I narrowed down the problem to the use of
Removing So I'm all set here if I use the master branch. To summarize, the initial issue I reported was due to an outdated |
What did you do? (required: The issue will be closed when not provided)
Edited this go file:
What did you expect to happen?
I expected no errors since this is valid syntax.
What happened instead?
The following error is displayed on save:
Configuration (MUST fill this out):
vim-go version:
v1.26
vimrc
you used to reproduce:The bare minimum:
vim-go
is the only plugin installed.Vim version (first three lines from
:version
):vim --version
Output:Go version (
go version
):Go environment
go env
Output:gopls version
gopls version
Output:The text was updated successfully, but these errors were encountered: