-
-
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
errors don't appear on save with go 1.13 #2475
Comments
The errors you're expecting to see on save would be compilation errors, and since the file isn't compiled on save, I'm not clear on why you would expect to see the errors when saving the file. What am I missing? 🤔 |
Before the upgrade, I was getting errors on save. |
@bhcleek syntax errors are presented at 1:35 in this video |
I'll see what I can do, but the errors in that video are different from what you're seeing. In the video, the errors are for an undeclared variable. In the case you've presented, it's a type that's not defined. I'll see what I can do, but it's possible that this is a result of a change to gofmt. |
Thanks, I'll take a closer look in the next couple of days. |
@gun1x I've taken another look at this. The error you were seeing on save was never from After a lot of digging, I tracked the problem you reported down to a change in Since The one bit I'm confused about though, is that I don't see |
Update gometalinter's --include value in response to Go 1.13 changes in output from `go vet`'s. Fixes fatih#2475
Despite finding a workaround for |
@bhcleek Thank you for your interest on the subject. Go 1.12Yea, downgrading back to Go 1.13On go 1.13 I get syntax errors, with proper arrows where it happens, like this: It's really hard to troubleshoot using this:
This feels like the difference between Morrowind and Oblivion. It's horrible to find quests without arrows. future solution for go 1.13If the next release of vim-go will solve the problem by using something else instead of |
That's odd. I'm not sure how you're getting this behavior with Go 1.12 🤔 In any case, I'd recommend not using You could run The
|
I should also point out that I expect v1.22 of vim-go (i.e. the release after next) to have automatic, real time support for identifying this kinds of errors, so you'll be told about these kinds of errors in real time, without even having to save. Now that I think about it, I could modify vim-go to provide it on save no pretty easily, because
Those arrows aren't coming from vim-go. Are you also using one of the lsp plugins? |
I install my plugins from AUR instead of using a vim package manager. These are the
One of them might throw the syntax errors. I suspect ale. |
both on
To get warnings at the bottom of vim: I however do not suggest it on |
What do you mean by vim-go 1.20-1? |
I don't get the question. If you ask what's up with If you are asking about the strange behavior. I was hitting |
yeah, that's weird, but since we're getting ready to release v1.21. and v1.20 is pretty old, I'm inclined to not worry about. I think we've come to an end for this conversation and should close this issue then unless there's still something unresolved for you. WDYT? |
You've been really helpful. I think anybody interested in the topic will also find all required information here. Ticket can be closed, yes. Have fun releasing v1.21! |
Ticket updateFor the people that got to this ticket via google and wonder how to get your
When you want to save and check the code, hit |
What did you do? (required: The issue will be closed when not provided)
I update to go 1.13.
What did you expect to happen?
Everything to work fine.
What happened instead?
Vim is not showing errors any more
Configuration (MUST fill this out):
vim-go version:
1.20-1
vimrc
you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):vimrc
Vim version (first three lines from
:version
):8.1.1968-1
Go version (
go version
):go1.13
Go environment
go env
Output:The text was updated successfully, but these errors were encountered: