x/tools/gopls: Completion not working in modules with "vendor" as their name #54071
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
go env
What did you do?
There's a repo to reproduce this issue: https://github.com/chenaoxd/gopls-bug, the
gopls
will simply not work in files that are in a module with "vendor" as the module name. Such as in thedemo/vendor/test.go
.Some screenshots:
What did you expect to see?
The
gopls
completion work as normal.What did you see instead?
It breaks, and always give the same completion candidates.
Editor and settings
Editor: Neovim + coc.neovim
Config:
Logs
The text was updated successfully, but these errors were encountered: