josa42 / coc-go

Go language server extension using gopls for coc.nvim.
MIT License
566 stars 30 forks source link

Import warnings don't disappear after go mod tidy #215

Open piersy opened 1 year ago

piersy commented 1 year ago

This is a dup of #209, but I'm opening it to bring it to your attention, since #209 was closed by the creator.

To be specific these are the steps that reproduce it for me.

  1. Add an import for a dependency that is not currently part of the project.
  2. Run go mod tidy, compilation now works from the shell
  3. The buffer in vim continues to show the error "no required module provides ...."

The only workarounds I have found are to close and reopen vim or run :CocRestart