-
Notifications
You must be signed in to change notification settings - Fork 645
gopls: no autoimport, no autocomplete, no hover docs #2476
Comments
same here 0.10.1 :( |
To be honest, this support was intermittent and mostly not working before |
Try the config and update the gopls "go.useLanguageServer": true,
"go.languageServerExperimentalFeatures": {
"diagnostics": true // for diagnostics as you type
},
"[go]": {
"editor.snippetSuggestions": "none",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
},
"gopls": {
"usePlaceholders": true, // add parameter placeholders when completing a function
"enhancedHover": true, // experimental to improve quality of hover (will be on by default soon)
} |
Please let me know if you encounter more issues while using that config. |
Upgrading to the latest What version of |
Hmm, scratch that: it works in some windows, not others. Reloading the window doesn't make any difference. |
Specifically, it does not work if a
|
|
Thanks @stamblerre, done! |
I'm having this problem still. No autocomplete at all with |
@divmgl hop over to golang/go#31712 😄 |
I enabled gopls.. and quite literally nothing works. Not a single feature of vscode-go. I don't know what else to say. I completely reinstalled vscode and it's showing the same behavior. Edit: Maybe this is known behavior.. I migrated a project from using dep to go modules for dependency management. My project contained a sub-project that, for the moment, I was unable to pull using 'go get' since it was on a private VCS (bitbucket), and I hadn't set up my ssh access key yet. Seemingly due to this fact, vscode-go was rendered entirely non-functioning up until the point I added the access key in bitbucket. Very strange behavior in my opinion. |
Code Version 1.33.1 (1.33.1),
vscode-go 0.10.0
Steps to reproduce:
I would expect to see an automatic
import "os"
added, but it is not.If I add it manually, I would expect to be able to hover over the
os.Exit
and see pop-up information about the function. I do not.If I delete the
Exit(1)
, place the cursor afteros.
and hit Ctrl-Space, I expect to see an auto-complete menu showing the available functions in os. Instead I see only the identifiers in the current file (func, import, main, and so on).Settings as here: https://github.com/golang/go/wiki/gopls
gopls
is running, as shown in the process list.The text was updated successfully, but these errors were encountered: