-
Notifications
You must be signed in to change notification settings - Fork 765
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
Compilation errors / no autocompletion with gopls and Go modules #275
Comments
it doesn't work while using workspaces sometimes. It's frustrating |
@jcbritobr Sorry to hear that. Can you please share the gopls trace and the symptom when it doesn't work? https://github.com/golang/tools/blob/master/gopls/doc/troubleshooting.md#capturing-logs |
May you help me to know how to get the traces?
Em qua, 15 de jul de 2020 10:34, Hyang-Ah Hana Kim <notifications@github.com>
escreveu:
… @jcbritobr <https://github.com/jcbritobr> Sorry to hear that. Can you
please share the gopls trace and the symptom when it doesn't work?
https://github.com/golang/tools/blob/master/gopls/doc/troubleshooting.md#capturing-logs
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSGNFUQOI2OJENMHYWQQP3R3WV6ZANCNFSM4OMTZVVA>
.
|
@jcbritobr: The link @hyangah shared above (https://github.com/golang/tools/blob/master/gopls/doc/troubleshooting.md#capturing-logs) has an explanation of how to capture |
Can't reproduce it anymore. I'll close for a while, until get the data for you guys. |
This issue should be fixed by the improved error messages in |
This is a general issue to help guide users of the language server,
gopls
.If you see unexpected error messages, make sure that you are opening your directory at or below the module root (the directory containing the
go.mod
file). You can also open a directory within the module. This is a current limitation ofgopls
, which thegopls
team are working on addressing.If you are working with multiple modules, you can use VS Code's Workspace Folders feature. You can add another module to your workspace by selecting File -> Add Folder to Workspace. Note that features will not work across modules.
More context here: golang/go#32394, golang/go#36899.
For further help, see the
gopls
Troubleshooting Guide.The text was updated successfully, but these errors were encountered: