-
-
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
'await' function in autoload/go/promise.vim takes a lot of time while saving a file #3286
Comments
How large is your GOPATH? Is it always slow, or only when you save shortly after starting up Vim? |
FWIW, I suspect this is due to vim-go waiting on Until that issue is fully resolved, there are a few things you can do to workaround this problem or at least improve the experience if I'm right about
|
Using 'goimports' for go_fmt_command worked. So what do I miss if my go_fmt_command is goimports instead of gopls? |
The implementation when using |
I had this issue and performing the update |
What did you do? (required: The issue will be closed when not provided)
I have installed vim-go as a plugin for my vim. After I edit any go files, and save and quit vim, it takes very long time to close.
What did you expect to happen?
I expected it to close immediately
What happened instead?
It takes lot of time as long as 44 seconds to quit
This was the log printed in the vim profile I created. We can see that await functions runs for 17 seconds.
How can I resolve this?
Configuration (MUST fill this out):
vim-go version: v1.25
vimrc
you used to reproduce:vimrc
Vim version (first three lines from
:version
):VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Mar 8 2021 09:58:42)
Go version (
go version
):go version go1.13.7 linux/amd64
Go environment
go env
Output:gopls version
gopls version
Output:The text was updated successfully, but these errors were encountered: