What version of Go, VS Code & VS Code Go extension are you using?
- Run
go version to get version of Go
- go version go1.14.2 linux/amd64
- Run
code -v or code-insiders -v to get version of VS Code or VS Code Insiders
- 1.44.2 ff915844119ce9485abfe8aa9076ec76b5300ddd x64 (Windows 10)
- Check your installed extensions to get the version of the VS Code Go extension
- Run
go env GOOS GOARCH to get the operating system and processor architecture details
Share the Go related settings you have added/edited
Run Preferences: Open Settings (JSON) command to open your settings.json file.
Share all the settings with the go. or ["go"] prefixes.
{
"go.useLanguageServer": true,
"[go]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
"editor.snippetSuggestions": "none",
},
"[go.mod]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
},
"gopls": {
"usePlaceholders": true,
"staticcheck": false,
},
"go.autocompleteUnimportedPackages": true,
"go.lintTool": "golangci-lint",
"go.lintFlags": [
"--fast"
],
"go.testFlags": [
"-cover",
"-race",
"-count=1",
"-v"
]
}
Describe the bug
I am using a Devcontainer setup for Go, running an golang:1.14.2 Docker image on a Windows 10 host. After updating to the latest version of vscode-go (0.14.1), the extension doesn't seem to install gopls in the devcontainer anymore and no prompt to install/update it is shown.
Using the "go.useLanguageServer": true setting as described here, I expected the extension to install gopls as required.
Manually downgrading vscode-go to version 0.13.1 and reloading the window prompts for a gopls install as it was detected missing.
Steps to reproduce the behavior:
- Install vscode-go 0.14.1
- Setup devcontainer environment with golang:1.14.2 image
- Re-open project in container, no prompt to install gopls appears
What version of Go, VS Code & VS Code Go extension are you using?
go versionto get version of Gocode -vorcode-insiders -vto get version of VS Code or VS Code Insidersgo env GOOS GOARCHto get the operating system and processor architecture detailsShare the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)command to open your settings.json file.Share all the settings with the
go.or["go"]prefixes.Describe the bug
I am using a Devcontainer setup for Go, running an golang:1.14.2 Docker image on a Windows 10 host. After updating to the latest version of vscode-go (0.14.1), the extension doesn't seem to install
goplsin the devcontainer anymore and no prompt to install/update it is shown.Using the
"go.useLanguageServer": truesetting as described here, I expected the extension to installgoplsas required.Manually downgrading vscode-go to version 0.13.1 and reloading the window prompts for a
goplsinstall as it was detected missing.Steps to reproduce the behavior: