Closed ehrktia closed 4 years ago
Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here.
Thanks for reporting. We have a few opened issues that cover some of the bugs you mention here - https://github.com/golang/go/issues/38232, https://github.com/golang/go/issues/38383, https://github.com/golang/go/issues/38462. Does this cover everything you've encountered, or are there other issues that are missing?
BTW, make sure to set GOPRIVATE
when working with private modules in gopls
, if you haven't already.
Thanks for replying back, yes I had set GOPRIVATE in my go env. Not sure what do you mean by set goprivate in gopls.
Ok, yeah, setting GOPRIVATE in your environment is all you have to do for gopls
. Do the issues linked above cover the issues you encountered? If so, I'll go ahead and close this in favor of those issues.
Yes please 38232- covers the go mod incorrect version of dependency.
Ok thanks for confirming!
Please answer these questions before submitting your issue. Thanks!
What did you do?
using vim+coc-nvim+gopls for autocompletion,documentation,reference.
coc-settings
vimrc
Any project with issue in go.mod i.e - if the go.mod is not able to fetch all relevant dependencies from source, then gopls stops working. Gopls version
Any sample program with simple print works as expected, gopls works fine.
In case of larger project with long list of dependencies and if any one of the package is missing / version in compatable then gopls stops responding. Due to sensitivity of work the program can not be provided. Part of trace information cleansed is below.
Coc-workspace output
What did you expect to see?
jump to definition , display documentation when dohover over the funcs.show implementation list when issued corresponding command over the interface/function. gopls to work independent of gomod status.
What did you see instead?
No response/reply from gopls.
Build info
Go info
Not sure if this is issue , or expected behaviour from gopls.Is gopls depndent on gomod being successful? If you require more details please let me know.