Closed antoineco closed 4 years ago
Thank you for reporting. I've also seen this and will get a PR up this weekend to resolve it. Would you be wiling to help test it since there isn't a reliable reproduction path?
Sure, happy to help however I can, I usually run from master
anyway.
https://github.com/fatih/vim-go/pull/2892 is ready for you to try. I'll be using it over the next week, too, to make sure it resolves the problem as expected.
So far so good @bhcleek
What did you do?
Ran
:GoImports
on the following file:The expected import is
github.com/aws/aws-sdk-go/service/eventbridge
. The module is already present ingo.mod
and pre-cached.What did you expect to happen?
:GoImports
runs silently and without error.What happened instead?
Upon calling
:GoImports
, the following error message is printedAfter pressing ENTER, the buffer is refreshed and the import is added despite the error.
It does not happen consistently, but often enough, more often(?) on new files.
Configuration:
vim-go version:
7fef39e
vimrc
you used to reproduce:vimrc
Vim version:
Go version:
go version go1.14.2 linux/amd64
Go environment
go env
Output:gopls version
gopls version
Output: