-
-
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
Replicate Syntastic behavior, or, easier go build #876
Comments
Hi @kevinburke
We have two commands to get compile errors, one is being However we do not have automatic build on save feature. In long term I'm not thinking to add it, but I'm working on vim 8.0 integration, which provides async primitives. We can probably add that feature with it.
I'll keep this issue open so we can track both improvements, though we might add them in separate PR's in different times |
Alright |
@fatih not directly related to this but I remember you saying you would drop neovim support when vim would become async. Are you going to or will you leave it? |
@nhooyr there is still plenty of time we have support for Vim, and even if we had it, neovim support will stay for a time. I'm still using Neovim too. So for now I'll leave it. |
The vim-8.0 features are now merged and part of the autocmd BufWritePost *.go call go#cmd#Build(1) This will automatically run |
This doesn't work for EDIT: I found the answer on #1337 (comment): |
Hi,
Per the README, I've disabled Syntastic's error checking on my Go code. I mapped the following keyboard shortcut to
GoBuild
:Previously I tried building on BufWritePre and BufWritePost, but those would occasionally require two saves to clear the errorlist.
If I run
GoBuild
while a test file has build errors, vim-go immediately reports SUCCESS instead of pointing out the build failure. So I switched my command to this:Which does report on syntax problems in tests, but also dumps an executable in the test directory.
What command or invocation should I use to:
The text was updated successfully, but these errors were encountered: