-
Notifications
You must be signed in to change notification settings - Fork 645
v0.14.1 does not seem to install gopls anymore #3194
Comments
I could reproduce this. https://github.com/microsoft/vscode-go/blob/master/src/goLanguageServer.ts#L302 |
Also, update getMissingTools to check the tool's existence by simply checking whether the resolved tool path is absolute. getBinPath already ran the existence check before returning the absolute path for the tool. Fixes microsoft#3194
Also, update getMissingTools to check the tool's existence by simply checking whether the resolved tool path is absolute. getBinPath already ran the existence check before returning the absolute path for the tool. Fixes microsoft#3194
Is this the reason for code auto completion, code navigation (IntelliSense) is not working while using modules (go.mod)? |
@rmuddana It's unlikely to be related. This bug affects only the gopls auto-upgrade functionality. Please file a separate issue (remember to include the related settings (those starting with "go", "gopls", "[go]" prefixes), enough details to reproduce the issue, gopls version, and if possible, the gopls trace (https://github.com/golang/tools/blob/master/gopls/doc/troubleshooting.md#vs-code) |
* src/goLanguageServer: fix missing gopls detection logic Also, update getMissingTools to check the tool's existence by simply checking whether the resolved tool path is absolute. getBinPath already ran the existence check before returning the absolute path for the tool. Fixes #3194 * delete debug log message
The latest update 0.14.2 has the fix for this, Thanks @hyangah |
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Gocode -v
orcode-insiders -v
to get version of VS Code or VS Code Insidersgo env GOOS GOARCH
to 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
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 installgopls
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:
The text was updated successfully, but these errors were encountered: