-
-
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
Using metalinter autosave and gopls is slow #2958
Comments
The gopls logs will be the most useful here. Can you open the file, execute |
Absolutely, I had to add FWIW the following steps recreates a minimal module that I'm using to test this.
|
FWIW, In any case, I think I see what's going on here. I should have some time improve the experience next weekend. |
What did you do? (required: The issue will be closed when not provided)
Open a Go source file in a module, then save the file with
g:go_metalinter_command=gopls
andg:go_metalinter_autosave=1
.What did you expect to happen?
That it would take <1s or that the linter runs asyncronously.
What happened instead?
Input is frozen until the linter passes or fails. This takes ~10s (see profile.log). Manually running
:GoMetaLinter
takes a fraction of a second.Configuration (MUST fill this out):
vim-go version: 7b43988 (master)
vimrc
you used to reproduce:vimrc
Vim version (first three lines from
:version
):NVIM v0.4.3
Build type: Release
LuaJIT 2.0.5
Go version (
go version
):go version go1.14.4 linux/amd64
Go environment
go env
Output:gopls version
gopls version
Output:The text was updated successfully, but these errors were encountered: